diff --git a/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustmentServiceImpl.java b/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustmentServiceImpl.java index c7ddc8d..989497d 100644 --- a/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustmentServiceImpl.java +++ b/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustmentServiceImpl.java @@ -3459,17 +3459,27 @@ public class EntrustmentServiceImpl extends ServiceImpllambdaUpdate() - .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.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)); }