From 32bacff4cd7455eac8eb34e35744b40d9fdb2384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B5=B7=E8=88=AA?= <11918452+yang-haihang@user.noreply.gitee.com> Date: Wed, 8 Jan 2025 17:25:32 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E4=BA=86=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E5=A7=94=E6=89=98=E4=B9=A6=E5=92=8C=E7=A1=AE=E8=AE=A4=E4=B9=A6?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E6=A3=80=E6=9D=90=E5=9C=A8=E6=9C=AA=E5=8F=97?= =?UTF-8?q?=E7=90=86=E6=97=B6=E7=9A=84=E6=8E=92=E5=BA=8F=E8=A7=84=E5=88=99?= =?UTF-8?q?=EF=BC=8C=E4=BB=8E=E6=A3=80=E6=9D=90=E7=BC=96=E5=8F=B7=E5=8F=98?= =?UTF-8?q?=E4=B8=BAOrderNo=E3=80=82=202.=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=A7=94=E6=89=98=E4=B9=A6=E5=92=8C=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E4=B9=A6=E7=9A=84=E9=99=90=E5=88=B6=E8=8C=83=E5=9B=B4?= =?UTF-8?q?=EF=BC=8C=E7=8E=B0=E5=9C=A8=E5=BA=94=E8=AF=A5=E6=98=AF=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=8F=90=E4=BA=A4=E4=B9=8B=E5=90=8E=EF=BC=8C=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E4=BA=BA=E5=B0=B1=E5=8F=AF=E4=BB=A5=E5=9C=A8=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E5=88=97=E8=A1=A8=E8=BF=9B=E8=A1=8C=E6=89=93=E5=8D=B0?= =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E4=B8=94=E6=AF=8F=E6=AC=A1=E6=89=93=E5=BC=80?= =?UTF-8?q?=E9=83=BD=E5=BA=94=E8=AF=A5=E6=98=AF=E9=87=8D=E6=96=B0=E7=94=9F?= =?UTF-8?q?=E6=88=90=EF=BC=8C=E7=9B=B4=E5=88=B0=E5=AE=A1=E6=A0=B8=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E4=B9=8B=E5=90=8E=EF=BC=8C=E5=B0=B1=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=94=9F=E6=88=90=E4=BA=86=E3=80=82=203.?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=A3=80=E6=9D=90=E4=B9=8B=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E4=BC=9A=E9=87=8D=E6=96=B0=E7=94=9F=E6=88=90=E9=89=B4=E5=AE=9A?= =?UTF-8?q?=E8=A6=81=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...mentIdentificationMaterialServiceImpl.java | 20 +++++++++---- .../service/impl/EntrustmentServiceImpl.java | 28 +++++++++++-------- 2 files changed, 31 insertions(+), 17 deletions(-) diff --git a/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustmentIdentificationMaterialServiceImpl.java b/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustmentIdentificationMaterialServiceImpl.java index c5af0f8..559c96c 100644 --- a/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustmentIdentificationMaterialServiceImpl.java +++ b/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustmentIdentificationMaterialServiceImpl.java @@ -591,6 +591,7 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl 0) { throw new RuntimeException(String.format("这个检材下有 %d 个附件, 必须先删除全部附件后才能删除检材物证!", attCount)); } + if (this.removeById(id)) { + String entrustId = entrustmentIdentificationMaterial.getEntrustmentId(); + Entrustment entrustment = entrustmentService.getById(entrustId); + List materialList = this.list(Wrappers.lambdaQuery().eq(EntrustmentIdentificationMaterial::getEntrustmentId, entrustId)); + if (materialList != null && materialList.size() > 0) { + entrustment.setEntrustRequirement(entrustmentService.buildEntrustReq(materialList)); + entrustmentService.updateById(entrustment); + } return entrustmentIdentificationMaterial; } else { return null; @@ -1173,7 +1182,7 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl createNewIm(List identificationMaterialList, DLPUser dlpUser) { + public List createNewIm(List identificationMaterialList, DLPUser dlpUser) { Entrustment entrustment = entrustmentService.getById(identificationMaterialList.get(0).getEntrustmentId()); if (!dlpUser.isStaff() && entrustment.getStatus() != EntrustmentStatusConstants.ENTRUSTMENT_STATUS_CREATED.getStatus()) { @@ -1512,7 +1521,7 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl candidateDrugs = material.getCandidateDrugs(); String drugsValue = ""; @@ -1537,8 +1546,8 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl().eq(EntrustOfThirdSys::getEntrustMainId, entrustment.getId())); @@ -1566,7 +1575,7 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl materialList = entrustmentIdentificationMaterialService.list(Wrappers.lambdaQuery() .eq(EntrustmentIdentificationMaterial::getEntrustmentId, entrustId) .orderByAsc(isAccepted != -1, EntrustmentIdentificationMaterial::getAcceptNo) - .orderByAsc(isAccepted == -1, EntrustmentIdentificationMaterial::getImNo)); + .orderByAsc(isAccepted == -1, EntrustmentIdentificationMaterial::getOrderNo)); if (isAccepted != -1) { // 受理过的才进行排序,否则采用检材编号排序 Collections.sort(materialList, new Comparator() { @@ -497,7 +497,7 @@ public class EntrustmentServiceImpl extends ServiceImpl materialList = entrustmentIdentificationMaterialService.list( Wrappers.query() .eq("entrustment_id", ev.getId()) - .orderByAsc("create_time") + .orderByAsc("order_no") ); entrustmentIdentificationMaterialService.conformityDrugs(materialList); //设置检材描述 @@ -2624,9 +2627,9 @@ public class EntrustmentServiceImpl extends ServiceImpl