Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppTag
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
AppTag
Commits
770121d9
Commit
770121d9
authored
Aug 20, 2019
by
jinfeng.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
cab8f76d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
ResultDao.java
src/main/java/com/mobvista/apptag/mapper/ResultDao.java
+3
-0
ResultServiceImpl.java
...a/com/mobvista/apptag/service/impl/ResultServiceImpl.java
+3
-0
No files found.
src/main/java/com/mobvista/apptag/mapper/ResultDao.java
View file @
770121d9
...
...
@@ -15,6 +15,9 @@ public interface ResultDao {
@Insert
(
"REPLACE INTO tag_result(package_name,app_name,platform,feat_id,comment,user_id,update_time) VALUES(#{packageName}, #{appName}, #{platform}, #{featId}, #{comment}, #{userId}, #{updateTime})"
)
boolean
save
(
TagResult
tagResult
);
@Delete
(
"DELETE FROM tag_result WHERE package_name = #{packageName}"
)
boolean
delete
(
String
packageName
);
@Select
(
"SELECT * FROM tag_result WHERE package_name = #{packageName} AND user_id = #{userId}"
)
@Results
({
@Result
(
property
=
"packageName"
,
column
=
"package_name"
),
@Result
(
property
=
"appName"
,
column
=
"app_name"
),
...
...
src/main/java/com/mobvista/apptag/service/impl/ResultServiceImpl.java
View file @
770121d9
...
...
@@ -54,6 +54,9 @@ public class ResultServiceImpl implements ResultService {
tagResult
.
setComment
(
"comment"
);
tagResult
.
setUserId
(
user
.
getUserId
());
tagResult
.
setUpdateTime
(
new
Date
());
if
(
user
.
getRole
()
==
1
)
{
resultDao
.
delete
(
packageName
);
}
return
this
.
resultDao
.
save
(
tagResult
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment