Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
1b039f01
Commit
1b039f01
authored
Jan 15, 2025
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除笔记,打开记录设置为无效
parent
ceb3ab91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/qiandao/QdUserSignInNoteServiceImpl.java
.../wwdz/ch/wx/impl/qiandao/QdUserSignInNoteServiceImpl.java
+9
-0
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/qiandao/QdUserSignInNoteServiceImpl.java
View file @
1b039f01
...
...
@@ -5,6 +5,7 @@ import com.wwdz.ch.core.type.PageSearchResult;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dao.qiandao.*
;
import
com.wwdz.ch.db.domain.qiandao.QdUser
;
import
com.wwdz.ch.db.domain.qiandao.QdUserSignIn
;
import
com.wwdz.ch.db.domain.qiandao.QdUserSignInNote
;
import
com.wwdz.ch.db.domain.qiandao.SignInTask
;
import
com.wwdz.ch.db.dto.request.qiandao.QdUserSignInNoteRequestDto
;
...
...
@@ -153,6 +154,14 @@ public class QdUserSignInNoteServiceImpl implements QdUserSignInNoteService {
qdUserSignInNote
.
setUpdateTime
(
new
Date
());
qdUserSignInNote
.
setIsDeleted
(
true
);
qdUserSignInNoteDao
.
updateByPrimaryKey
(
qdUserSignInNote
);
//打开记录设置为无效
QdUserSignInNote
signInNote
=
qdUserSignInNoteDao
.
findByNoteId
(
dto
.
getId
());
QdUserSignIn
qdUserSignIn
=
new
QdUserSignIn
();
qdUserSignIn
.
setId
(
signInNote
.
getRecordId
());
qdUserSignIn
.
setIsValid
(
false
);
qdUserSignIn
.
setUpdateTime
(
new
Date
());
qdUserSignInDao
.
updateByPrimaryKey
(
qdUserSignIn
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"删除笔记 error:{}"
,
e
);
...
...
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