超级币商发货给币商 新增货运代理进货流水
This commit is contained in:
parent
e1081f89b6
commit
80b6deaed2
@ -139,6 +139,8 @@ public class SendFreightShipCmdExe {
|
|||||||
cmd.getAcceptUserId(),
|
cmd.getAcceptUserId(),
|
||||||
cmd.getQuantity()));
|
cmd.getQuantity()));
|
||||||
|
|
||||||
|
saveFreightInComeRunningWater(cmd, balance);
|
||||||
|
|
||||||
String noticeContent = getNoticeContent2(cmd, cmd.getQuantity());
|
String noticeContent = getNoticeContent2(cmd, cmd.getQuantity());
|
||||||
officialNoticeClient.send(
|
officialNoticeClient.send(
|
||||||
NoticeExtTemplateCustomizeCmd.builder()
|
NoticeExtTemplateCustomizeCmd.builder()
|
||||||
@ -323,6 +325,21 @@ public class SendFreightShipCmdExe {
|
|||||||
return freightBalanceRunningWater;
|
return freightBalanceRunningWater;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private FreightBalanceRunningWater saveFreightInComeRunningWater(FreightShipSendCmd cmd, BigDecimal balance) {
|
||||||
|
FreightBalanceRunningWater freightBalanceRunningWater = new FreightBalanceRunningWater()
|
||||||
|
.setSysOrigin(cmd.requireReqSysOrigin())
|
||||||
|
.setUserId(cmd.requiredReqUserId())
|
||||||
|
.setAcceptUserId(cmd.getAcceptUserId())
|
||||||
|
.setType(IncomeExpenditureEnum.INCOME.getValue())
|
||||||
|
.setQuantity(cmd.getQuantity())
|
||||||
|
.setOrigin(FreightBalanceOrigin.SHIPMENT.name())
|
||||||
|
.setBalance(balance)
|
||||||
|
.setUsdQuantity(getGoldToSUD(cmd))
|
||||||
|
.setRemark("货运代理进货");
|
||||||
|
freightBalanceRunningWaterService.save(freightBalanceRunningWater);
|
||||||
|
return freightBalanceRunningWater;
|
||||||
|
}
|
||||||
|
|
||||||
private String getLockKey(FreightShipSendCmd cmd) {
|
private String getLockKey(FreightShipSendCmd cmd) {
|
||||||
return "FREIGHT_SHIP_SEND_" + cmd.getAcceptUserId() + "_"
|
return "FREIGHT_SHIP_SEND_" + cmd.getAcceptUserId() + "_"
|
||||||
+ cmd.getReqUserId();
|
+ cmd.getReqUserId();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user