|
|
@@ -494,6 +494,7 @@ public class InsFeeAuditServiceImpl extends ServiceImpl<InsFeeAuditMapper, InsFe
|
|
|
|
|
|
// 更新用户账户
|
|
|
feeOrders = feeOrdersService.getById(param.getOrderNo());
|
|
|
+ log.info("根据订单查询出的费用信息如下:feeOrders=[{}]", JSONUtil.toJsonStr(feeOrders));
|
|
|
HttpResult<SysUser> sysUserResult = orgClient.getUserOnlyIdByMobile(orders.getRealQuoteUserId());
|
|
|
SysUser ywySysUser = sysUserResult.getData();
|
|
|
HttpResult<SysUserAccount> result = orgClient.accountGet(ywySysUser.getId());
|
|
|
@@ -517,6 +518,7 @@ public class InsFeeAuditServiceImpl extends ServiceImpl<InsFeeAuditMapper, InsFe
|
|
|
}
|
|
|
BigDecimal sumAmountUnpaid = userAccount.getSumAmountUnpaid();
|
|
|
BigDecimal amount = feeOrders.getTotalPayablePremium();
|
|
|
+ log.info("费用审核通过。 amount=[{}].feeOrders=[{}]",amount, JSONUtil.toJsonStr(feeOrders));
|
|
|
userAccount.setSumAmount(BigDecimalUtil.add(amount,userAccount.getSumAmount()));
|
|
|
userAccount.setSumAmountUnpaid(BigDecimalUtil.add(amount, sumAmountUnpaid));
|
|
|
orgClient.saveOrUpdate(userAccount);
|
|
|
@@ -531,6 +533,7 @@ public class InsFeeAuditServiceImpl extends ServiceImpl<InsFeeAuditMapper, InsFe
|
|
|
exportChangeLog.setIsDelete(0);
|
|
|
exportChangeLog.setRemark("保单费用");
|
|
|
exportChangeLog.setAmountBefore(sumAmountUnpaid);
|
|
|
+ log.info("准备调用orgClient保存账号变更明细:exportChangeLog=[{}]", JSONUtil.toJsonStr(exportChangeLog));
|
|
|
orgClient.addUserAccountChangeLog(exportChangeLog);
|
|
|
|
|
|
// 进入应收表
|