Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
Project
Project
Details
Activity
Releases
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
李伟
cust-api
Commits
5cb44bee
Commit
5cb44bee
authored
Mar 24, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了留言和点赞
parent
45672db0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
MemInfoServiceImpl.java
...oft/business/memInfo/service/impl/MemInfoServiceImpl.java
+1
-1
MemLeaveMessageServiceImpl.java
...LeaveMessage/service/impl/MemLeaveMessageServiceImpl.java
+1
-1
No files found.
src/main/java/org/rcisoft/business/memInfo/service/impl/MemInfoServiceImpl.java
View file @
5cb44bee
...
@@ -835,7 +835,7 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
...
@@ -835,7 +835,7 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
//扣除该用户的金币数量
//扣除该用户的金币数量
DictData
dictData4
=
userLikeConfig
.
stream
().
filter
(
item
->
item
.
getDictLabel
().
equals
(
"pay_count"
)).
findFirst
().
orElse
(
null
);
DictData
dictData4
=
userLikeConfig
.
stream
().
filter
(
item
->
item
.
getDictLabel
().
equals
(
"pay_count"
)).
findFirst
().
orElse
(
null
);
Integer
payCount
=
Integer
.
valueOf
(
dictData4
.
getDictValue
());
Integer
payCount
=
Integer
.
valueOf
(
dictData4
.
getDictValue
());
MemInfo
memInfo
=
memInfoRepository
.
selectBy
OpenId
(
likeDTO
.
getWxOpenid
()
);
MemInfo
memInfo
=
memInfoRepository
.
selectBy
UserId
(
userId
);
if
(
memInfo
.
getGoldCoinsCount
()
-
payCount
<
0
){
if
(
memInfo
.
getGoldCoinsCount
()
-
payCount
<
0
){
throw
new
CyServiceException
(
1003
,
"金币不足,请先充值"
);
throw
new
CyServiceException
(
1003
,
"金币不足,请先充值"
);
}
}
...
...
src/main/java/org/rcisoft/business/memLeaveMessage/service/impl/MemLeaveMessageServiceImpl.java
View file @
5cb44bee
...
@@ -359,7 +359,7 @@ public class MemLeaveMessageServiceImpl extends ServiceImpl<MemLeaveMessageRepos
...
@@ -359,7 +359,7 @@ public class MemLeaveMessageServiceImpl extends ServiceImpl<MemLeaveMessageRepos
//扣除该用户的金币数量
//扣除该用户的金币数量
DictData
dictData4
=
leaveMessageConfig
.
stream
().
filter
(
item
->
item
.
getDictLabel
().
equals
(
"pay_count"
)).
findFirst
().
orElse
(
null
);
DictData
dictData4
=
leaveMessageConfig
.
stream
().
filter
(
item
->
item
.
getDictLabel
().
equals
(
"pay_count"
)).
findFirst
().
orElse
(
null
);
Integer
payCount
=
Integer
.
valueOf
(
dictData4
.
getDictValue
());
Integer
payCount
=
Integer
.
valueOf
(
dictData4
.
getDictValue
());
MemInfo
memInfo
=
memInfoRepository
.
selectBy
OpenId
(
memLeaveMessage
.
getWxOpenid
()
);
MemInfo
memInfo
=
memInfoRepository
.
selectBy
UserId
(
userId
);
if
(
memInfo
.
getGoldCoinsCount
()
-
payCount
<
0
){
if
(
memInfo
.
getGoldCoinsCount
()
-
payCount
<
0
){
throw
new
CyServiceException
(
1003
,
"金币不足,请先充值!"
);
throw
new
CyServiceException
(
1003
,
"金币不足,请先充值!"
);
}
}
...
...
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