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
8092209d
Commit
8092209d
authored
Sep 12, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改批量提交审核
parent
db4e66d6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
0 deletions
+77
-0
WalletCathApplyDTO.java
.../com/xxfc/platform/order/pojo/dto/WalletCathApplyDTO.java
+49
-0
CompanyWalletCathBiz.java
...ava/com/xxfc/platform/order/biz/CompanyWalletCathBiz.java
+19
-0
AdminCompanyWalletDetailController.java
...r/rest/background/AdminCompanyWalletDetailController.java
+9
-0
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/dto/WalletCathApplyDTO.java
0 → 100644
View file @
8092209d
package
com
.
xxfc
.
platform
.
order
.
pojo
.
dto
;
import
com.github.wxiaoqi.security.common.vo.DataInter
;
import
com.github.wxiaoqi.security.common.vo.PageParam
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.math.BigDecimal
;
import
java.util.List
;
/**
* 提现申请DTO
* @author libin
* @version 1.0
* @description
* @data 2019/12/25 14:53
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public
class
WalletCathApplyDTO
{
@ApiModelProperty
(
"门店"
)
private
List
<
Integer
>
companyIds
;
@ApiModelProperty
(
"提现金额"
)
private
BigDecimal
amount
;
@ApiModelProperty
(
"提现账号"
)
private
String
accountNumber
;
@ApiModelProperty
(
"账号名称"
)
private
String
accountName
;
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/CompanyWalletCathBiz.java
View file @
8092209d
...
...
@@ -10,6 +10,7 @@ import com.github.wxiaoqi.security.common.vo.PageDataVO;
import
com.xxfc.platform.order.contant.enumerate.CompanyWalletITypeEnum
;
import
com.xxfc.platform.order.entity.*
;
import
com.xxfc.platform.order.mapper.CompanyWalletCathMapper
;
import
com.xxfc.platform.order.pojo.dto.WalletCathApplyDTO
;
import
com.xxfc.platform.order.pojo.dto.WalletCathDTO
;
import
com.xxfc.platform.order.pojo.vo.CompanyWalletCathVo
;
import
com.xxfc.platform.order.pojo.vo.CompanyWalletDetailVo
;
...
...
@@ -18,6 +19,9 @@ import org.springframework.beans.BeanUtils;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.time.Instant
;
...
...
@@ -59,6 +63,21 @@ public class CompanyWalletCathBiz extends BaseBiz<CompanyWalletCathMapper, Compa
}
@Transactional
(
rollbackFor
=
Exception
.
class
,
propagation
=
Propagation
.
REQUIRED
)
public
void
applyCathList
(
WalletCathApplyDTO
walletCathApplyDTO
){
if
(
walletCathApplyDTO
==
null
)
{
throw
new
BaseException
(
"参数不能为空"
,
ResultCode
.
NULL_CODE
);
}
List
<
Integer
>
companyIds
=
walletCathApplyDTO
.
getCompanyIds
();
for
(
Integer
companyId:
companyIds
){
CompanyWalletCath
walletCathDTO
=
new
CompanyWalletCath
();
BeanUtils
.
copyProperties
(
walletCathApplyDTO
,
walletCathDTO
);
walletCathDTO
.
setCompanyId
(
companyId
);
applyCath
(
walletCathDTO
);
}
}
//提现申请
public
void
applyCath
(
CompanyWalletCath
walletCathDTO
)
{
if
(
walletCathDTO
==
null
)
{
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/background/AdminCompanyWalletDetailController.java
View file @
8092209d
...
...
@@ -11,6 +11,7 @@ import com.xxfc.platform.order.biz.CompanyWalletCathBiz;
import
com.xxfc.platform.order.biz.CompanyWalletDetailBiz
;
import
com.xxfc.platform.order.entity.CompanyWalletCath
;
import
com.xxfc.platform.order.entity.CompanyWalletDetail
;
import
com.xxfc.platform.order.pojo.dto.WalletCathApplyDTO
;
import
com.xxfc.platform.order.pojo.dto.WalletCathDTO
;
import
com.xxfc.platform.order.pojo.dto.WalletDTO
;
import
com.xxfc.platform.order.pojo.dto.WalletDetailDTO
;
...
...
@@ -82,6 +83,14 @@ public class AdminCompanyWalletDetailController extends BaseController<CompanyWa
return
ObjectRestResponse
.
succ
();
}
@RequestMapping
(
value
=
"applyCathList"
,
method
=
RequestMethod
.
POST
)
@ApiModelProperty
(
value
=
"提现申请List"
)
public
ObjectRestResponse
applyCathList
(
@RequestBody
WalletCathApplyDTO
walletCathApplyDTO
)
{
walletCathBiz
.
applyCathList
(
walletCathApplyDTO
);
return
ObjectRestResponse
.
succ
();
}
@RequestMapping
(
value
=
"withDrawProcess"
,
method
=
RequestMethod
.
POST
)
@ApiModelProperty
(
value
=
"提现审核"
)
public
ObjectRestResponse
withDrawProcess
(
@RequestBody
CompanyWalletCath
companyWalletCath
)
{
...
...
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