feat:费用类型
This commit is contained in:
@@ -747,10 +747,11 @@ public class PreAllocationRecordServiceImpl implements PreAllocationRecordServic
|
||||
if (!amountSupport){
|
||||
throw new ServiceException(ErrorCodeEnum.WALLET_BALANCE_INSUFFICIENT);
|
||||
}
|
||||
String payNo = GenerateNoUtil.generateMillsNoWithRandom();
|
||||
AccountTransferDTO accountTransferDTO ;
|
||||
try {
|
||||
accountTransferDTO = walletPayInfoService.accountPay(record.getExpenseType(), record.getPayAmount(),
|
||||
record.getPayeeCode(), accountInfoDTO.getAccountNo(), record.getPayNo(), transRequest.getRemark());
|
||||
record.getPayeeCode(), accountInfoDTO.getAccountNo(), payNo, transRequest.getRemark());
|
||||
}catch (Exception e){
|
||||
//分账失败 释放锁
|
||||
redisUtil.unlock(lockKey);
|
||||
@@ -758,6 +759,7 @@ public class PreAllocationRecordServiceImpl implements PreAllocationRecordServic
|
||||
throw new ServiceException(ErrorCodeEnum.ERROR_MESSAGE,e.getMessage());
|
||||
}
|
||||
record.setAllocationStatus(AllocationPayStatusEnum.PAYING.getStatus());
|
||||
record.setPayNo(payNo);
|
||||
record.setRemark(transRequest.getRemark());
|
||||
//先改为分账中
|
||||
preAllocationRecordDAO.updateByPrimaryKeySelective(record);
|
||||
|
||||
Reference in New Issue
Block a user