|
@@ -173,9 +173,10 @@ public class FlowServiceImpl extends AbstractService<Flow> implements FlowServic
|
|
|
return Result.genFailResult("账号未找到");
|
|
|
}
|
|
|
flow = Flow.builder().amount(param.getDiscount()).bizType(10)
|
|
|
+ .userId(param.getUserId())
|
|
|
.bizNo(param.getBizNo()).createTime(today).updateTime(today).transTime(param.getTransTime())
|
|
|
.debitAccount(MyConstants.INNER_REBATE).creditAccount(account.getId())
|
|
|
- .bizId(param.getBizId()).type(1)
|
|
|
+ .bizId(param.getBizId()).type(10)
|
|
|
.build();
|
|
|
saveUseGeneratedKeys(flow);
|
|
|
//借 :平台资金银行xx元 内部户1(资产类:借方账户)+钱
|
|
@@ -211,6 +212,7 @@ public class FlowServiceImpl extends AbstractService<Flow> implements FlowServic
|
|
|
//贷:平台主营收入(贷) +500元
|
|
|
Date today = DateUtil.date();
|
|
|
Flow flow = Flow.builder().amount(param.getAmount()).bizType(param.getBizType())
|
|
|
+ .userId(param.getUserId())
|
|
|
.bizNo(param.getBizNo()).createTime(today).updateTime(today).transTime(param.getTransTime())
|
|
|
.debitAccount(account.getId()).creditAccount(MyConstants.INNER_INCOME)
|
|
|
.bizId(param.getBizId()).type(6)
|
|
@@ -247,9 +249,10 @@ public class FlowServiceImpl extends AbstractService<Flow> implements FlowServic
|
|
|
}
|
|
|
Date today = DateUtil.date();
|
|
|
Flow flow = Flow.builder().amount(param.getAmount()).bizType(param.getBizType())
|
|
|
+ .userId(param.getUserId())
|
|
|
.bizNo(param.getBizNo()).createTime(today).updateTime(today).transTime(param.getTransTime())
|
|
|
.debitAccount(MyConstants.INNER_REFUND).creditAccount(account.getId())
|
|
|
- .bizId(param.getBizId()).type(6)
|
|
|
+ .bizId(param.getBizId()).type(9)
|
|
|
.build();
|
|
|
saveUseGeneratedKeys(flow);
|
|
|
//借:主营支出-退款(借) +100元
|
|
@@ -281,9 +284,10 @@ public class FlowServiceImpl extends AbstractService<Flow> implements FlowServic
|
|
|
|
|
|
Date today = DateUtil.date();
|
|
|
Flow flow = Flow.builder().amount(param.getAmount()).bizType(param.getBizType())
|
|
|
+ .userId(param.getUserId())
|
|
|
.bizNo(param.getBizNo()).createTime(today).updateTime(today).transTime(param.getTransTime())
|
|
|
.creditAccount(MyConstants.INNER_CAPITAL).debitAccount(account.getId())
|
|
|
- .bizId(param.getBizId()).type(1)
|
|
|
+ .bizId(param.getBizId()).type(3)
|
|
|
.build();
|
|
|
saveUseGeneratedKeys(flow);
|
|
|
|