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
f235fc64
Commit
f235fc64
authored
Jan 05, 2021
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-tiande' into dev-tiande
parents
17c3cccd
a71f3752
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
11 deletions
+22
-11
OrderWaterDTO.java
.../com/github/wxiaoqi/security/admin/dto/OrderWaterDTO.java
+4
-0
AppUserSellingWaterBiz.java
...ub/wxiaoqi/security/admin/biz/AppUserSellingWaterBiz.java
+6
-8
WaterMQHandler.java
...github/wxiaoqi/security/admin/handler/WaterMQHandler.java
+1
-0
AppActivityInfoController.java
...xfc/platform/activity/rest/AppActivityInfoController.java
+2
-1
OrderActivityDetail.java
...a/com/xxfc/platform/order/entity/OrderActivityDetail.java
+5
-0
OrderActivityInfoService.java
...xxfc/platform/order/service/OrderActivityInfoService.java
+4
-2
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/OrderWaterDTO.java
View file @
f235fc64
...
@@ -45,5 +45,9 @@ public class OrderWaterDTO {
...
@@ -45,5 +45,9 @@ public class OrderWaterDTO {
private
List
<
OrderGoodsDTO
>
goodsDTOList
;
private
List
<
OrderGoodsDTO
>
goodsDTOList
;
@ApiModelProperty
(
value
=
"父id"
)
private
Integer
parentId
;
}
}
\ No newline at end of file
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserSellingWaterBiz.java
View file @
f235fc64
...
@@ -192,20 +192,18 @@ public class AppUserSellingWaterBiz extends BaseBiz<AppUserSellingWaterMapper, A
...
@@ -192,20 +192,18 @@ public class AppUserSellingWaterBiz extends BaseBiz<AppUserSellingWaterMapper, A
String
orderNo
=
orderWaterDTO
.
getOrderNo
();
String
orderNo
=
orderWaterDTO
.
getOrderNo
();
//用户id
//用户id
Integer
userId
=
orderWaterDTO
.
getUserId
();
Integer
userId
=
orderWaterDTO
.
getUserId
();
Integer
parentId
=
orderWaterDTO
.
getParentId
()
==
null
?
0
:
orderWaterDTO
.
getParentId
();
log
.
info
(
"活动计算用户拥金----payOrderWater--------userId==="
+
userId
+
"---parentId==="
+
parentId
);
if
(
parentId
==
0
)
return
;
List
<
OrderGoodsDTO
>
goodsDTOList
=
orderWaterDTO
.
getGoodsDTOList
();
List
<
OrderGoodsDTO
>
goodsDTOList
=
orderWaterDTO
.
getGoodsDTOList
();
log
.
info
(
"活动计算用户拥金----payOrderWater----userId===="
+
userId
+
"---orderId==="
+
orderId
+
"---orderNo==="
+
orderNo
);
log
.
info
(
"活动计算用户拥金----payOrderWater----userId===="
+
userId
+
"---orderId==="
+
orderId
+
"---orderNo==="
+
orderNo
);
if
(
orderId
==
null
||
orderId
==
0
||
userId
==
null
||
userId
==
0
|
CollectionUtils
.
isEmpty
(
goodsDTOList
))
{
if
(
orderId
==
null
||
orderId
==
0
||
userId
==
null
||
userId
==
0
|
CollectionUtils
.
isEmpty
(
goodsDTOList
))
{
log
.
info
(
"购买计算用户拥金----payOrderWater----参数不能为空----orderId==="
+
orderId
);
log
.
info
(
"购买计算用户拥金----payOrderWater----参数不能为空----orderId==="
+
orderId
);
return
;
return
;
}
}
AppUserRelation
relation
=
relationBiz
.
getRelationByIdUserIdAndTime
(
userId
);
if
(
relation
==
null
||
relation
.
getParentId
()
==
null
||
relation
.
getParentId
()
==
0
)
{
log
.
info
(
"活动计算用户拥金----payOrderWater--------userId==="
+
userId
+
"---无有效上线"
);
return
;
}
Integer
parentId
=
relation
.
getParentId
();
log
.
info
(
"活动计算用户拥金----payOrderWater--------userId==="
+
userId
+
"---parentId==="
+
parentId
);
BigDecimal
amount
=
new
BigDecimal
(
"0.00"
);
BigDecimal
amount
=
new
BigDecimal
(
"0.00"
);
for
(
OrderGoodsDTO
goodsDto
:
goodsDTOList
)
{
for
(
OrderGoodsDTO
goodsDto
:
goodsDTOList
)
{
//商品id
//商品id
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/handler/WaterMQHandler.java
View file @
f235fc64
...
@@ -125,6 +125,7 @@ public class WaterMQHandler {
...
@@ -125,6 +125,7 @@ public class WaterMQHandler {
);
);
break
;
break
;
case
ACTIVITY:
case
ACTIVITY:
orderWaterDTO
.
setParentId
(
orderMQDTO
.
getOrderActivityDetail
().
getParentUserId
());
orderWaterDTO
.
setGoodsDTOList
(
orderWaterDTO
.
setGoodsDTOList
(
new
ArrayList
<
OrderGoodsDTO
>()
{{
new
ArrayList
<
OrderGoodsDTO
>()
{{
add
(
new
OrderGoodsDTO
()
{{
add
(
new
OrderGoodsDTO
()
{{
...
...
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/rest/AppActivityInfoController.java
View file @
f235fc64
...
@@ -38,7 +38,8 @@ public class AppActivityInfoController extends BaseController<ActivityInfoUserBi
...
@@ -38,7 +38,8 @@ public class AppActivityInfoController extends BaseController<ActivityInfoUserBi
@RequestMapping
(
value
=
"/app/unauth/H5"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/app/unauth/H5"
,
method
=
RequestMethod
.
GET
)
@IgnoreUserToken
@IgnoreUserToken
public
ObjectRestResponse
H5
(
ActivityInfoUser
activityInfoUser
){
public
ObjectRestResponse
H5
(
ActivityInfoUser
activityInfoUser
){
activityInfoUser
.
setUserId
(
getCurrentUserIdInt
());
Integer
userId
=
getCurrentUserIdInt
()
==
null
?
0
:
getCurrentUserIdInt
();
activityInfoUser
.
setUserId
(
userId
);
return
ObjectRestResponse
.
succ
(
baseBiz
.
getInfo
(
activityInfoUser
));
return
ObjectRestResponse
.
succ
(
baseBiz
.
getInfo
(
activityInfoUser
));
}
}
...
...
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/entity/OrderActivityDetail.java
View file @
f235fc64
...
@@ -52,6 +52,11 @@ public class OrderActivityDetail implements Serializable {
...
@@ -52,6 +52,11 @@ public class OrderActivityDetail implements Serializable {
private
Integer
rentFreeNum
;
private
Integer
rentFreeNum
;
@Column
(
name
=
"parent_user_id"
)
@ApiModelProperty
(
value
=
"父用户id"
)
private
Integer
parentUserId
;
@Column
(
name
=
"parent_comisson"
)
@Column
(
name
=
"parent_comisson"
)
@ApiModelProperty
(
value
=
"上级拥金"
)
@ApiModelProperty
(
value
=
"上级拥金"
)
private
BigDecimal
parentComisson
;
private
BigDecimal
parentComisson
;
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/service/OrderActivityInfoService.java
View file @
f235fc64
...
@@ -2,6 +2,7 @@ package com.xxfc.platform.order.service;
...
@@ -2,6 +2,7 @@ package com.xxfc.platform.order.service;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO
;
import
com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface
;
import
com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface
;
import
com.github.wxiaoqi.security.auth.client.config.UserAuthConfig
;
import
com.github.wxiaoqi.security.auth.client.config.UserAuthConfig
;
import
com.xxfc.platform.activity.entity.ActivityInfo
;
import
com.xxfc.platform.activity.entity.ActivityInfo
;
...
@@ -108,8 +109,9 @@ public class OrderActivityInfoService extends AbstractOrderHandle<OrderActivityI
...
@@ -108,8 +109,9 @@ public class OrderActivityInfoService extends AbstractOrderHandle<OrderActivityI
bo
.
setParentComisson
(
activityInfoRuleVo
.
getParentComisson
());
bo
.
setParentComisson
(
activityInfoRuleVo
.
getParentComisson
());
}
}
}
}
AppUserDTO
appUserDTO
=
bo
.
getAppUserDTO
();
if
(
appUserDTO
!=
null
&&
appUserDTO
.
getParentId
()
!=
null
)
bo
.
setParentUserId
(
appUserDTO
.
getParentId
());
super
.
handleDetail
(
bo
);
super
.
handleDetail
(
bo
);
//发送定时取消订单(30分钟)
//发送定时取消订单(30分钟)
...
...
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