Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
91216ed4
Commit
91216ed4
authored
Oct 29, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
ec701597
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
UserInfoDTO.java
...va/com/github/wxiaoqi/security/admin/dto/UserInfoDTO.java
+4
-0
AppUserCollectBiz.java
.../github/wxiaoqi/security/admin/biz/AppUserCollectBiz.java
+8
-0
MyWaterBiz.java
...ava/com/github/wxiaoqi/security/admin/biz/MyWaterBiz.java
+6
-0
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/UserInfoDTO.java
View file @
91216ed4
...
@@ -35,6 +35,10 @@ public class UserInfoDTO {
...
@@ -35,6 +35,10 @@ public class UserInfoDTO {
private
BigDecimal
balance
;
private
BigDecimal
balance
;
@ApiModelProperty
(
value
=
"用户收藏总数"
)
private
Integer
userCollectNumber
;
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserCollectBiz.java
View file @
91216ed4
...
@@ -142,4 +142,12 @@ public class AppUserCollectBiz extends BaseBiz<AppUserCollectMapper, AppUserColl
...
@@ -142,4 +142,12 @@ public class AppUserCollectBiz extends BaseBiz<AppUserCollectMapper, AppUserColl
List
<
AppUserCollect
>
collect
=
mapper
.
select
(
appUserCollect
);
List
<
AppUserCollect
>
collect
=
mapper
.
select
(
appUserCollect
);
return
CollectionUtils
.
isNotEmpty
(
collect
);
return
CollectionUtils
.
isNotEmpty
(
collect
);
}
}
public
Integer
getUserCollectNumber
(
Integer
userId
){
Example
example
=
new
Example
(
AppUserCollect
.
class
);
Example
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andEqualTo
(
"userId"
,
userId
).
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
0
);
return
selectCountByExample
(
example
);
}
}
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/MyWaterBiz.java
View file @
91216ed4
...
@@ -40,6 +40,9 @@ public class MyWaterBiz extends BaseBiz<MyWalletMapper, MyWallet>{
...
@@ -40,6 +40,9 @@ public class MyWaterBiz extends BaseBiz<MyWalletMapper, MyWallet>{
@Autowired
@Autowired
ActivityFeign
activityFeign
;
ActivityFeign
activityFeign
;
@Autowired
AppUserCollectBiz
userCollectBiz
;
//我的钱包入账
//我的钱包入账
public
void
updMyWater
(
MyWalletDetail
walletDetail
){
public
void
updMyWater
(
MyWalletDetail
walletDetail
){
...
@@ -174,6 +177,9 @@ public class MyWaterBiz extends BaseBiz<MyWalletMapper, MyWallet>{
...
@@ -174,6 +177,9 @@ public class MyWaterBiz extends BaseBiz<MyWalletMapper, MyWallet>{
}
else
{
}
else
{
dto
.
setBalance
(
BigDecimal
.
ZERO
);
dto
.
setBalance
(
BigDecimal
.
ZERO
);
}
}
Integer
userCollectNumber
=
userCollectBiz
.
getUserCollectNumber
(
userId
);
userCollectNumber
=
userCollectNumber
==
null
?
0
:
userCollectNumber
;
dto
.
setUserCollectNumber
(
userCollectNumber
);
return
ObjectRestResponse
.
succ
(
dto
);
return
ObjectRestResponse
.
succ
(
dto
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
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