master
陈江保 3 months ago
parent 71746b8eea
commit 46cbc9f261
  1. 32
      src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustmentServiceImpl.java

@ -3459,17 +3459,27 @@ public class EntrustmentServiceImpl extends ServiceImpl<EntrustmentMapper, Entru
.withYear(year).withMonth(monthValue).withDayOfMonth(dayValue)
.format(formatter)
));
return this.update(Wrappers.<Entrustment>lambdaUpdate()
.eq(Entrustment::getId, entrust.getId())
.set(Entrustment::getSubmitTime, entrust.getSubmitTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
.set(Entrustment::getCheckClaimTime, entrust.getCheckClaimTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
.set(Entrustment::getCheckTime, entrust.getCheckTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
.set(Entrustment::getApproveClaimTime, entrust.getApproveClaimTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
.set(Entrustment::getApproveTime, entrust.getApproveTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
.set(Entrustment::getDeliverConfirmTime, entrust.getDeliverConfirmTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
.set(Entrustment::getAcceptTime, entrust.getAcceptTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
.set(Entrustment::getCreateTime, entrust.getCreateTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
.set(Entrustment::getProcessInfo, processInfoList));
entrust.setSubmitTime(entrust.getSubmitTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue));
entrust.setCheckClaimTime(entrust.getCheckClaimTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue));
entrust.setCheckTime(entrust.getCheckTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue));
entrust.setApproveClaimTime(entrust.getApproveClaimTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue));
entrust.setApproveTime(entrust.getApproveTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue));
entrust.setDeliverConfirmTime(entrust.getDeliverConfirmTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue));
entrust.setAcceptTime(entrust.getAcceptTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue));
entrust.setCreateTime(entrust.getCreateTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue));
entrust.setProcessInfo(processInfoList);
return super.updateById(entrust);
// return this.update(Wrappers.<Entrustment>lambdaUpdate()
// .eq(Entrustment::getId, entrust.getId())
// .set(Entrustment::getSubmitTime, entrust.getSubmitTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
// .set(Entrustment::getCheckClaimTime, entrust.getCheckClaimTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
// .set(Entrustment::getCheckTime, entrust.getCheckTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
// .set(Entrustment::getApproveClaimTime, entrust.getApproveClaimTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
// .set(Entrustment::getApproveTime, entrust.getApproveTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
// .set(Entrustment::getDeliverConfirmTime, entrust.getDeliverConfirmTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
// .set(Entrustment::getAcceptTime, entrust.getAcceptTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
// .set(Entrustment::getCreateTime, entrust.getCreateTime().withYear(year).withMonth(monthValue).withDayOfMonth(dayValue))
// .set(Entrustment::getProcessInfo, processInfoList));
}

Loading…
Cancel
Save