Commit 3a73b693 by HlQ

[add] 发货后,更新对应合同的付款的节点时间字段

1 parent f7404ca9
...@@ -49,6 +49,7 @@ public class DeliveryRecordServiceImpl extends MPJBaseServiceImpl<DeliveryRecord ...@@ -49,6 +49,7 @@ public class DeliveryRecordServiceImpl extends MPJBaseServiceImpl<DeliveryRecord
private final IContractService contractService; private final IContractService contractService;
private final IRContractUserService contractUserService; private final IRContractUserService contractUserService;
private final IPointInfoService pointInfoService; private final IPointInfoService pointInfoService;
private final IContractPaymentService contractPaymentService;
private final DingMod dingMod; private final DingMod dingMod;
private final Converter converter; private final Converter converter;
...@@ -125,11 +126,13 @@ public class DeliveryRecordServiceImpl extends MPJBaseServiceImpl<DeliveryRecord ...@@ -125,11 +126,13 @@ public class DeliveryRecordServiceImpl extends MPJBaseServiceImpl<DeliveryRecord
log.error("根据发货记录,更新合同状态出错。该合同不存在或合同状态为空:{}", record.getContractNo()); log.error("根据发货记录,更新合同状态出错。该合同不存在或合同状态为空:{}", record.getContractNo());
} }
if (ObjUtil.isNotNull(existContract) && existContract.getStatus() < 2) { if (ObjUtil.isNotNull(existContract) && existContract.getStatus() < 2) {
// todo 发货后,更新对应合同的付款的节点时间字段 合同id获取不到 // 签收日期存在就用这个,不存在就用发货日期
/*contractPaymentService.lambdaUpdate() var date = ObjUtil.isNotNull(record.getSignDate()) ? record.getSignDate() : record.getShipDate();
.set(ContractPayment::getNodeDate, record.getShipDate()) contractPaymentService.lambdaUpdate()
.eq(ContractPayment::getContractId, ) .set(ContractPayment::getNodeDate, date)
.update(new ContractPayment());*/ .eq(ContractPayment::getContractId, existContract.getId())
.eq(ContractPayment::getPaymentType, 2)
.update(new ContractPayment());
contractService.updateById(null, record.getContractNo(), contractDTO); contractService.updateById(null, record.getContractNo(), contractDTO);
List<String> useridList = contractUserService.listObjs(Wrappers.<RContractUser>lambdaQuery().select(RContractUser::getUserId).eq(RContractUser::getContractId, existContract.getId()), Object::toString); List<String> useridList = contractUserService.listObjs(Wrappers.<RContractUser>lambdaQuery().select(RContractUser::getUserId).eq(RContractUser::getContractId, existContract.getId()), Object::toString);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!