提交 74bb4f72 authored 作者: huyufan's avatar huyufan

资金相关

上级 3d11f4cd
...@@ -87,8 +87,6 @@ public class OwnerAccountController { ...@@ -87,8 +87,6 @@ public class OwnerAccountController {
@PostMapping("/accountTopUp") @PostMapping("/accountTopUp")
@UnitCovert @UnitCovert
public Result<Long> accountTopUp(@RequestBody OwnerTopUpParam param) { public Result<Long> accountTopUp(@RequestBody OwnerTopUpParam param) {
UserSessionData loginUserInfo = TokenUtil.getLoginUserInfo();
param.setOwnerUserNo(loginUserInfo.getUserNo());
Long id = ownerAccountService.accountTopUp(param); Long id = ownerAccountService.accountTopUp(param);
return Result.ok(id); return Result.ok(id);
......
...@@ -102,6 +102,9 @@ public class OwnerAccountServiceImpl implements OwnerAccountService { ...@@ -102,6 +102,9 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
@Override @Override
public Long accountTopUp(OwnerTopUpParam param) { public Long accountTopUp(OwnerTopUpParam param) {
UserSessionData loginUserInfo = TokenUtil.getLoginUserInfo();
param.setOwnerUserNo(loginUserInfo.getUserNo());
OwnerTopUp entity = new OwnerTopUp(); OwnerTopUp entity = new OwnerTopUp();
entity.setAccountType(param.getAccountType()); entity.setAccountType(param.getAccountType());
entity.setOwnerUserNo(param.getOwnerUserNo()); entity.setOwnerUserNo(param.getOwnerUserNo());
...@@ -110,6 +113,7 @@ public class OwnerAccountServiceImpl implements OwnerAccountService { ...@@ -110,6 +113,7 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
entity.setDrawingBank(param.getDrawingBank()); entity.setDrawingBank(param.getDrawingBank());
entity.setDrawingBankNumber(param.getDrawingBankNumber()); entity.setDrawingBankNumber(param.getDrawingBankNumber());
entity.setDrawingProof(param.getDrawingProof()); entity.setDrawingProof(param.getDrawingProof());
entity.setCreateBy(loginUserInfo.getUserName());
//充值编号 //充值编号
entity.setTopUpNo(idGenerateSnowFlake.nextId(IdTypeEnum.Type.TOP_UP.getCode())); entity.setTopUpNo(idGenerateSnowFlake.nextId(IdTypeEnum.Type.TOP_UP.getCode()));
...@@ -247,6 +251,9 @@ public class OwnerAccountServiceImpl implements OwnerAccountService { ...@@ -247,6 +251,9 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
} }
OwnerTopUp ownerTopUp = optional.get(); OwnerTopUp ownerTopUp = optional.get();
OwnerTopUp entity = new OwnerTopUp(); OwnerTopUp entity = new OwnerTopUp();
entity.setApprovalBy(loginUserInfo.getUserName());
entity.setApprovalTime(LocalDateTime.now());
String ownerName = ""; String ownerName = "";
if (!param.getPassType()) { if (!param.getPassType()) {
entity.setId(param.getId()); entity.setId(param.getId());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论