From 148618dedf32b373af1eb45772590be1d38ab1bd Mon Sep 17 00:00:00 2001 From: chen <2710907404@qq.com> Date: Wed, 15 Jan 2025 10:08:56 +0800 Subject: [PATCH] =?UTF-8?q?20250114=20=E6=9B=B4=E6=96=B0=201.=E5=8F=97?= =?UTF-8?q?=E7=90=86=E7=BC=96=E5=8F=B7=E7=94=9F=E6=88=90=EF=BC=8C=E6=9C=89?= =?UTF-8?q?=E5=8F=97=E7=90=86=E6=88=90=E5=8A=9F=E5=90=8E=E5=9C=A8=E5=8F=97?= =?UTF-8?q?=E7=90=86=E6=94=B9=E4=B8=BA=E5=A7=94=E6=89=98=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=90=8E=EF=BC=8C=E5=8F=97=E7=90=86=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E5=AE=A1=E6=A0=B8=E9=80=9A=E8=BF=87=E5=B0=B1=E7=94=9F?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/EntrustmentServiceImpl.java | 112 +++++++++--------- 1 file changed, 54 insertions(+), 58 deletions(-) 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 686bcfd..854f39e 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 @@ -1596,11 +1596,15 @@ public class EntrustmentServiceImpl extends ServiceImpl pis = entrustment.getProcessInfo(); if (pis == null) { @@ -1657,28 +1661,28 @@ public class EntrustmentServiceImpl extends ServiceImpl updateWrapper = new UpdateWrapper(); updateWrapper.eq("id", entrustment.getId()); // 查询条件是 id 相等 - updateWrapper.set("destructive_analysis", entrustment.getDestructiveAnalysis()); - updateWrapper.set("other_identification_notes", entrustment.getOtherIdentificationNotes()); + updateWrapper.set("destructive_analysis", entrust.getDestructiveAnalysis()); + updateWrapper.set("other_identification_notes", entrust.getOtherIdentificationNotes()); updateWrapper.set("other_agreement", entrustment.getOtherAgreement()); - updateWrapper.set("avoid_identifier", entrustment.getAvoidIdentifier(), "typeHandler=com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"); - updateWrapper.set("comments", entrustment.getComments()); + updateWrapper.set("avoid_identifier", entrust.getAvoidIdentifier(), "typeHandler=com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"); + updateWrapper.set("comments", entrust.getComments()); updateWrapper.set("return_or_not", entrustment.getReturnOrNot()); - updateWrapper.set("check_user", entrustment.getCheckUser()); - updateWrapper.set("check_time", entrustment.getCheckTime()); - updateWrapper.set("check_comments", entrustment.getCheckComments()); - updateWrapper.set("check_times", entrustment.getCheckTimes()); + updateWrapper.set("check_user", dlpUser.getId()); + updateWrapper.set("check_time", LocalDateTime.now()); + updateWrapper.set("check_comments", entrust.getCheckComments()); + updateWrapper.set("check_times", entrustment.getCheckTimes() + 1); // 审核次数加 1 updateWrapper.set("approve_candidate_user", entrustment.getApproveCandidateUser()); - updateWrapper.set("status", entrustment.getStatus()); - updateWrapper.set("previous_status", entrustment.getPreviousStatus()); + updateWrapper.set("status", newStatus); // 新的状态(环节), 可能会是审批或提交前 + updateWrapper.set("previous_status", entrustment.getStatus()); // 可能是从其他环节转过来的, 一旦提交, 保存上一个状态 // updateWrapper.set("process_info", entrustment.getProcessInfo(), "javaType=String,jdbcType=VARCHAR,typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler"); - updateWrapper.set("process_info", entrustment.getProcessInfo(), "javaType=String,jdbcType=VARCHAR,typeHandler=com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"); - + updateWrapper.set("process_info", pis, "javaType=String,jdbcType=VARCHAR,typeHandler=com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"); + updateWrapper.set(StrUtil.isNotBlank(currentAcceptNo), "accept_no", currentAcceptNo); if (!this.update(null, updateWrapper)) { throw new RuntimeException("保存委托信息失败"); } @@ -2343,28 +2347,19 @@ public class EntrustmentServiceImpl extends ServiceImpl updateWrapper = new UpdateWrapper(); updateWrapper.eq("id", entrustment.getId()); // 查询条件是 id 相等 - updateWrapper.set("destructive_analysis", entrustment.getDestructiveAnalysis()); - updateWrapper.set("other_identification_notes", entrustment.getOtherIdentificationNotes()); - updateWrapper.set("avoid_identifier", entrustment.getAvoidIdentifier(), "typeHandler=com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"); - updateWrapper.set("other_agreement", entrustment.getOtherAgreement()); - updateWrapper.set("comments", entrustment.getComments()); + updateWrapper.set("destructive_analysis", entrust.getDestructiveAnalysis()); + updateWrapper.set("other_identification_notes", entrust.getOtherIdentificationNotes()); + updateWrapper.set("avoid_identifier", entrust.getAvoidIdentifier(), "typeHandler=com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"); + updateWrapper.set("other_agreement", entrust.getOtherAgreement()); + updateWrapper.set("comments", entrust.getComments()); - updateWrapper.set("accept_user", entrustment.getAcceptUser()); - updateWrapper.set("accept_time", entrustment.getAcceptTime()); - updateWrapper.set("accept_comments", entrustment.getAcceptComments()); + updateWrapper.set("accept_user", null); // 之前可能受理过, 现在后悔了, 置 null + updateWrapper.set("accept_time", null); + updateWrapper.set("accept_comments", entrust.getAcceptComments()); if (!this.update(null, updateWrapper)) { @@ -2382,7 +2377,8 @@ public class EntrustmentServiceImpl extends ServiceImpl