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
5cbdd40e
Commit
5cbdd40e
authored
Sep 14, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-vehicle-price' into dev-tiande
parents
16a7c29c
0eea3127
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
WalletCathApplyDTO.java
.../com/xxfc/platform/order/pojo/dto/WalletCathApplyDTO.java
+2
-1
CompanyWalletCathBiz.java
...ava/com/xxfc/platform/order/biz/CompanyWalletCathBiz.java
+5
-3
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/dto/WalletCathApplyDTO.java
View file @
5cbdd40e
package
com
.
xxfc
.
platform
.
order
.
pojo
.
dto
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.wxiaoqi.security.common.vo.DataInter
;
import
com.github.wxiaoqi.security.common.vo.PageParam
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -27,7 +28,7 @@ public class WalletCathApplyDTO {
@ApiModelProperty
(
"门店"
)
private
List
<
Integer
>
companyIds
;
private
List
<
JSONObject
>
companyIds
;
@ApiModelProperty
(
"提现金额"
)
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/CompanyWalletCathBiz.java
View file @
5cbdd40e
...
...
@@ -2,6 +2,7 @@ package com.xxfc.platform.order.biz;
import
cn.hutool.core.lang.Snowflake
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.wxiaoqi.security.admin.constant.WithDrawStatusEnum
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.exception.BaseException
;
...
...
@@ -68,11 +69,12 @@ public class CompanyWalletCathBiz extends BaseBiz<CompanyWalletCathMapper, Compa
if
(
walletCathApplyDTO
==
null
)
{
throw
new
BaseException
(
"参数不能为空"
,
ResultCode
.
NULL_CODE
);
}
List
<
Integer
>
companyIds
=
walletCathApplyDTO
.
getCompanyIds
();
for
(
Integer
companyId
:
companyIds
){
List
<
JSONObject
>
companyIds
=
walletCathApplyDTO
.
getCompanyIds
();
for
(
JSONObject
object
:
companyIds
){
CompanyWalletCath
walletCathDTO
=
new
CompanyWalletCath
();
BeanUtils
.
copyProperties
(
walletCathApplyDTO
,
walletCathDTO
);
walletCathDTO
.
setCompanyId
(
companyId
);
walletCathDTO
.
setCompanyId
(
object
.
getInteger
(
"companyId"
));
walletCathDTO
.
setAmount
(
object
.
getBigDecimal
(
"amount"
));
applyCath
(
walletCathDTO
);
}
}
...
...
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