|
|
@@ -194,7 +194,7 @@ public class SysAmountAuditingServiceImpl extends ServiceImpl<SysAmountAuditingM
|
|
|
String userId = baseController.getUserId();
|
|
|
String systemCode = baseController.getSystemCode();
|
|
|
log.info("用户开始进行付款操作。userName=[{}],param=[{}]systemCode=[{}]",userName,JSONUtil.toJsonStr(param),systemCode);
|
|
|
- if(StrUtil.isEmpty(param.getAccountId())){
|
|
|
+ if(StrUtil.isEmpty(param.getCardId())){
|
|
|
return HttpResult.error("付款账户不能为空");
|
|
|
}
|
|
|
SysAmountAuditing audit = this.getById(param.getId());
|
|
|
@@ -205,7 +205,7 @@ public class SysAmountAuditingServiceImpl extends ServiceImpl<SysAmountAuditingM
|
|
|
audit.setAuditingStatus(stateFailResult.getCurrentState());
|
|
|
audit.setPicId(param.getPicId());
|
|
|
audit.setVoucherId(param.getVoucherId());
|
|
|
- audit.setAccountId(param.getAccountId());
|
|
|
+ audit.setAccountId(param.getCardId());
|
|
|
audit.setPaymentTime(LocalDateTime.now());
|
|
|
audit.setAuditingTime(LocalDateTime.now());
|
|
|
audit.setAuditingUserId(userId);
|
|
|
@@ -306,12 +306,8 @@ public class SysAmountAuditingServiceImpl extends ServiceImpl<SysAmountAuditingM
|
|
|
}
|
|
|
}
|
|
|
changeLog.setUserId(ywyUserId);
|
|
|
- List<InvAccountCard> accountCardVos = invAccountCardService.queryByAccountId(param.getAccountId(), systemCode);
|
|
|
- if(CollUtil.size(accountCardVos) > 1){
|
|
|
- throw new SystemException(String.format("租户%s下根据账号%s找到%d条",systemCode,param.getAccountId(),accountCardVos.size()));
|
|
|
- }
|
|
|
- if(CollUtil.isNotEmpty(accountCardVos)){
|
|
|
- InvAccountCard accountCardVo = accountCardVos.get(0);
|
|
|
+ InvAccountCard accountCardVo = invAccountCardService.queryByAccountCardId(param.getCardId(), systemCode);
|
|
|
+ if(accountCardVo != null){
|
|
|
changeLog.setBankCardIdIn(accountCardVo.getId());
|
|
|
changeLog.setBankCardNoIn(accountCardVo.getBankCardNum());
|
|
|
}
|