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
5e076d76
Commit
5e076d76
authored
Dec 17, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下架商品取消最新的一条签到记录
parent
87f44acf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
...va/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
+5
-5
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
View file @
5e076d76
...
@@ -628,14 +628,14 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
...
@@ -628,14 +628,14 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
supplierItemRequestDto
.
setEndCreateTime
(
endDate
);
supplierItemRequestDto
.
setEndCreateTime
(
endDate
);
supplierItemRequestDto
.
setCreatorId
(
oldItem
.
getCreatorId
());
supplierItemRequestDto
.
setCreatorId
(
oldItem
.
getCreatorId
());
if
(!
supplierItemDao
.
isUploadItem
(
supplierItemRequestDto
))
{
if
(!
supplierItemDao
.
isUploadItem
(
supplierItemRequestDto
))
{
//没有其它发布的商品,
如果用户今天签到了,则取消
签到记录
//没有其它发布的商品,
则取消用户最新的
签到记录
UserSignIn
todaySignIn
=
userSignInDao
.
findToday
Record
(
oldItem
.
getCreatorId
());
UserSignIn
lastedRecord
=
userSignInDao
.
findLasted
Record
(
oldItem
.
getCreatorId
());
if
(
todaySignIn
!=
null
)
{
if
(
lastedRecord
!=
null
)
{
UserSignIn
updateDto
=
new
UserSignIn
();
UserSignIn
updateDto
=
new
UserSignIn
();
updateDto
.
setId
(
todaySignIn
.
getId
());
updateDto
.
setId
(
lastedRecord
.
getId
());
updateDto
.
setIsValid
(
false
);
updateDto
.
setIsValid
(
false
);
userSignInDao
.
updateByPrimaryKey
(
updateDto
);
userSignInDao
.
updateByPrimaryKey
(
updateDto
);
msg
=
"您发布的"
+
oldItem
.
getName
()
+
",
内容涉嫌违反平台规定,已被平台下架,并取消了今天
的签到记录,请前往"
+
url
+
"查看"
;
msg
=
"您发布的"
+
oldItem
.
getName
()
+
",
因质量过差无法达到平台要求,已被平台下架,并作废最新
的签到记录,请前往"
+
url
+
"查看"
;
}
}
aliSmsSender
.
sendSms
(
oldItem
.
getCreatorId
(),
msg
);
aliSmsSender
.
sendSms
(
oldItem
.
getCreatorId
(),
msg
);
}
}
...
...
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