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
2e4c4a80
Commit
2e4c4a80
authored
Jul 12, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'base-modify' of
http://113.105.137.151:22280/youjj/cloud-platform
into base-modify
parents
dfb3f7ea
389e88f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
MyWalletDetail.java
.../github/wxiaoqi/security/admin/entity/MyWalletDetail.java
+5
-5
AppUserSellingWaterBiz.java
...ub/wxiaoqi/security/admin/biz/AppUserSellingWaterBiz.java
+14
-0
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/entity/MyWalletDetail.java
View file @
2e4c4a80
...
@@ -26,14 +26,14 @@ public class MyWalletDetail implements Serializable {
...
@@ -26,14 +26,14 @@ public class MyWalletDetail implements Serializable {
@Id
@Id
@GeneratedValue
(
generator
=
"JDBC"
)
@GeneratedValue
(
generator
=
"JDBC"
)
@ApiModelProperty
(
"主键ID"
)
@ApiModelProperty
(
"主键ID"
)
private
Long
id
;
private
Integer
id
;
/**
/**
* 用户ID
* 用户ID
*/
*/
@Column
(
name
=
"user_id"
)
@Column
(
name
=
"user_id"
)
@ApiModelProperty
(
value
=
"用户ID"
)
@ApiModelProperty
(
value
=
"用户ID"
)
private
String
userId
;
private
Integer
userId
;
/**
/**
* 来源:0-活动,1-佣金,2-会员充值,10-提现,11-转账,12-购买
* 来源:0-活动,1-佣金,2-会员充值,10-提现,11-转账,12-购买
...
@@ -75,7 +75,7 @@ public class MyWalletDetail implements Serializable {
...
@@ -75,7 +75,7 @@ public class MyWalletDetail implements Serializable {
*/
*/
@Column
(
name
=
"cono"
)
@Column
(
name
=
"cono"
)
@ApiModelProperty
(
value
=
"单号"
)
@ApiModelProperty
(
value
=
"单号"
)
private
String
cono
;
private
Integer
cono
;
/**
/**
* 加上当时的收入的余额
* 加上当时的收入的余额
...
@@ -87,9 +87,9 @@ public class MyWalletDetail implements Serializable {
...
@@ -87,9 +87,9 @@ public class MyWalletDetail implements Serializable {
/**
/**
* 操作者ID(如果系统操作,-1)
* 操作者ID(如果系统操作,-1)
*/
*/
@Column
(
name
=
"
oper
_user"
)
@Column
(
name
=
"
crt
_user"
)
@ApiModelProperty
(
value
=
"操作者ID(如果系统操作,-1)"
)
@ApiModelProperty
(
value
=
"操作者ID(如果系统操作,-1)"
)
private
Integer
oper
User
;
private
Integer
crt
User
;
/**
/**
* 操作时间
* 操作时间
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserSellingWaterBiz.java
View file @
2e4c4a80
...
@@ -4,6 +4,7 @@ import com.github.wxiaoqi.security.admin.bo.UserIncomeBo;
...
@@ -4,6 +4,7 @@ import com.github.wxiaoqi.security.admin.bo.UserIncomeBo;
import
com.github.wxiaoqi.security.admin.dto.OrderGoodsDTO
;
import
com.github.wxiaoqi.security.admin.dto.OrderGoodsDTO
;
import
com.github.wxiaoqi.security.admin.dto.OrderWaterDTO
;
import
com.github.wxiaoqi.security.admin.dto.OrderWaterDTO
;
import
com.github.wxiaoqi.security.admin.entity.AppUserRelation
;
import
com.github.wxiaoqi.security.admin.entity.AppUserRelation
;
import
com.github.wxiaoqi.security.admin.entity.MyWalletDetail
;
import
com.github.wxiaoqi.security.admin.vo.AppUserVo
;
import
com.github.wxiaoqi.security.admin.vo.AppUserVo
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
...
@@ -129,9 +130,11 @@ public class AppUserSellingWaterBiz extends BaseBiz<AppUserSellingWaterMapper,Ap
...
@@ -129,9 +130,11 @@ public class AppUserSellingWaterBiz extends BaseBiz<AppUserSellingWaterMapper,Ap
}
}
List
<
AppUserSellingWater
>
list
=
getWaterList
(
orderId
);
List
<
AppUserSellingWater
>
list
=
getWaterList
(
orderId
);
BigDecimal
amount
=
new
BigDecimal
(
"0.00"
);
BigDecimal
amount
=
new
BigDecimal
(
"0.00"
);
Integer
userId
=
0
;
if
(
list
.
size
()>
0
){
if
(
list
.
size
()>
0
){
for
(
AppUserSellingWater
sellingWater:
list
){
for
(
AppUserSellingWater
sellingWater:
list
){
Integer
id
=
sellingWater
.
getId
();
Integer
id
=
sellingWater
.
getId
();
userId
=
sellingWater
.
getUserId
();
sellingWater
.
setWaiting
(
1
);
sellingWater
.
setWaiting
(
1
);
updateById
(
sellingWater
);
updateById
(
sellingWater
);
BigDecimal
commission
=
sellingWater
.
getCommission
();
BigDecimal
commission
=
sellingWater
.
getCommission
();
...
@@ -139,8 +142,19 @@ public class AppUserSellingWaterBiz extends BaseBiz<AppUserSellingWaterMapper,Ap
...
@@ -139,8 +142,19 @@ public class AppUserSellingWaterBiz extends BaseBiz<AppUserSellingWaterMapper,Ap
amount
.
add
(
commission
);
amount
.
add
(
commission
);
}
}
}
}
log
.
info
(
"订单完成计算用户拥金----finishOrderWater----orderId===="
+
orderId
+
"---amount=="
+
amount
);
int
r
=
amount
.
compareTo
(
BigDecimal
.
ZERO
);
if
(
r
==
1
&&
userId
>
0
){
MyWalletDetail
walletDetail
=
new
MyWalletDetail
();
walletDetail
.
setUserId
(
userId
);
walletDetail
.
setSource
(
1
);
walletDetail
.
setCono
(
orderId
);
walletDetail
.
setItype
(
1
);
walletDetail
.
setAmount
(
amount
);
}
}
}
...
...
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