From a8078ef10619333487bdc92210cb67b7f181b760 Mon Sep 17 00:00:00 2001 From: chen <2710907404@qq.com> Date: Tue, 5 Nov 2024 10:40:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/EntrustAlterApplyServiceImpl.java | 12 ++++++++++++ ...ntrustmentIdentificationMaterialServiceImpl.java | 6 ++++++ .../service/impl/EntrustmentServiceImpl.java | 13 +++++++++++-- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java b/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java index 0f5c23a..0d92ce9 100644 --- a/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java +++ b/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java @@ -159,6 +159,10 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpl ids) { List entrustAlterAppliesVOS = baseMapper.getEntrustAlterApplyVOList(Wrappers.query().in("eaa.id",ids)); + DLPUser user = SecurityUtils.getUser(); entrustAlterAppliesVOS.forEach(e -> { + if (e.getApplicant().equals(user.getId())) { + throw new ValidateCodeException("请勿修改其他人的申请信息!"); + } if (e.getStatus().equals(EntrustAlterApplyStatus.WAIT_SUBMIT_APPLY.getStatus())) { throw new ValidateCodeException(String.format("案件名称为 %s 的记录不在可删除的状态,无法删除!", e.getCaseName())); } @@ -343,6 +351,10 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpllambdaQuery() + .eq(EntrustmentIdentificationMaterial::getEntrustmentId, entrustment.getId())); for (EntrustmentIdentificationMaterial identificationMaterial : identificationMaterialList) { if (StringUtils.isNotBlank(identificationMaterial.getId()) && StringUtils.isNotBlank(identificationMaterial.getSample1No())) { identificationMaterial = this.putUpdateById(identificationMaterial, dlpUser); @@ -1393,6 +1396,9 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl entrustmentList4 = this.list(new LambdaQueryWrapper().eq(Entrustment::getClientOrgId, orgId) .eq(Entrustment::getStatus, EntrustmentStatusConstants.ENTRUSTMENT_STATUS_COMPLETED.getStatus())); - markersVOS.add(new MarkersVO("案件委托", entrustmentList4.size(), "已完成")); + Integer entrustAlterApplyCount = (int) entrustAlterApplyService.count(Wrappers.lambdaQuery() + .eq(EntrustAlterApply::getStatus, EntrustAlterApplyStatus.APPLY_SUCCESS.getStatus()) + .eq(EntrustAlterApply::getApplyOrgId, orgId)); + markersVOS.add(new MarkersVO("委托申请修改", entrustAlterApplyCount, "申请通过")); + try { R data1 = remoteHairJobService.getJobQuantity(orgId, 0); if (data1.getCode() == 0) { @@ -3403,6 +3408,10 @@ public class EntrustmentServiceImpl extends ServiceImpl() .in(Entrustment::getStatus, integers2) .eq(Entrustment::getDataSources, 1)).size(), "委托审批(大数据平台)")); + markersVOS.add(new MarkersVO(EntrustMarkConstants.REVIEW_OR_APPROVAL, + (int) entrustAlterApplyService.count(Wrappers.lambdaQuery() + .eq(EntrustAlterApply::getStatus, EntrustAlterApplyStatus.SUBMITTED_WAIT_APPROVE.getStatus())), + "委托修改审核")); markersVOS.add(new MarkersVO(EntrustMarkConstants.SEWAGE_JOB_ACCEPT, statisticsDiffStatusSewageJobDTO.getJobStatusCreatedNum(), "污水任务待发布")); markersVOS.add(new MarkersVO(EntrustMarkConstants.SEWAGE_JOB_ACCEPT, statisticsDiffStatusSewageJobDTO.getJobStatusClaimNum(), "污水任务已发布")); markersVOS.add(new MarkersVO(EntrustMarkConstants.SEWAGE_JOB_ACCEPT, statisticsDiffStatusSewageJobDTO.getJobStatusClaimNum(), "污水受理"));