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
71abd114
Commit
71abd114
authored
Oct 29, 2020
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev-chw' into dev-chw
parents
7f18b293
91216ed4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
1 deletion
+23
-1
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
ActivityCouponVo.java
.../java/com/xxfc/platform/activity/vo/ActivityCouponVo.java
+3
-0
CouponMapper.xml
...ctivity-server/src/main/resources/mapper/CouponMapper.xml
+2
-1
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/UserInfoDTO.java
View file @
71abd114
...
@@ -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 @
71abd114
...
@@ -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 @
71abd114
...
@@ -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
);
...
...
xx-activity/xx-activity-api/src/main/java/com/xxfc/platform/activity/vo/ActivityCouponVo.java
View file @
71abd114
...
@@ -16,4 +16,7 @@ public class ActivityCouponVo extends Coupon {
...
@@ -16,4 +16,7 @@ public class ActivityCouponVo extends Coupon {
@ApiModelProperty
(
"是否使用"
)
@ApiModelProperty
(
"是否使用"
)
private
Integer
isUsd
;
private
Integer
isUsd
;
@ApiModelProperty
(
"到期时间"
)
private
Long
ledExpireTime
;
}
}
xx-activity/xx-activity-server/src/main/resources/mapper/CouponMapper.xml
View file @
71abd114
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
<result
property=
"updTime"
column=
"upd_time"
/>
<result
property=
"updTime"
column=
"upd_time"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"isLed"
column=
"isLed"
/>
<result
property=
"isLed"
column=
"isLed"
/>
<result
property=
"ledExpireTime"
column=
"ledExpireTime"
/>
</resultMap>
</resultMap>
<select
id=
"selectTitles"
resultType=
"com.xxfc.platform.activity.vo.CouponTitleVo"
>
<select
id=
"selectTitles"
resultType=
"com.xxfc.platform.activity.vo.CouponTitleVo"
>
...
@@ -69,7 +70,7 @@
...
@@ -69,7 +70,7 @@
</select>
</select>
<select
id=
"selectList"
resultMap=
"couponMap"
parameterType=
"com.xxfc.platform.activity.dto.CouponFindDTO"
>
<select
id=
"selectList"
resultMap=
"couponMap"
parameterType=
"com.xxfc.platform.activity.dto.CouponFindDTO"
>
select c.*,IF(COUNT(uc.id) >0 ,1,0) as isLed from `coupon` c
select c.*,IF(COUNT(uc.id) >0 ,1,0) as isLed
,IFNULL(uc.expire_time,0) as ledExpireTime
from `coupon` c
LEFT JOIN (SELECT * FROM user_coupon
LEFT JOIN (SELECT * FROM user_coupon
WHERE 1=1
WHERE 1=1
<if
test=
"userId != null and userId >= 0"
>
<if
test=
"userId != null and userId >= 0"
>
...
...
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