From 15177396913dead7bf52663f37377c9e4f903541 Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Fri, 6 Feb 2026 10:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=89=E8=AE=BF=E6=B6=89=E8=AF=89--=E5=8F=AA?= =?UTF-8?q?=E8=83=BD=E9=80=89=E6=8B=A9=E4=BA=8C=E7=BA=A7=E6=9C=BA=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ComplaintCollectionServiceImpl.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/biutag/supervision/service/complaintCollection/ComplaintCollectionServiceImpl.java b/src/main/java/com/biutag/supervision/service/complaintCollection/ComplaintCollectionServiceImpl.java index beda0c5..309dc87 100644 --- a/src/main/java/com/biutag/supervision/service/complaintCollection/ComplaintCollectionServiceImpl.java +++ b/src/main/java/com/biutag/supervision/service/complaintCollection/ComplaintCollectionServiceImpl.java @@ -122,6 +122,12 @@ public class ComplaintCollectionServiceImpl implements ComplaintCollectionServic throw new IllegalStateException("存在相同编号+来源"); } } + SupDepartQueryParam supDepartQueryParam = new SupDepartQueryParam(); + supDepartQueryParam.setId(request.getSecondDepartId()); + List supDepartList = supDepartResourceService.query(supDepartQueryParam); + if (CollectionUtil.isEmpty(supDepartList) || supDepartList.get(0).getLevel()!=2){ + throw new IllegalStateException("请选择正确的二级机构"); + } ComplaintCollection complaintCollection = ComplaintCollectionTransfer.INSTANCE.addRequestToEntity(request); // 生成编号 if (StrUtil.isBlank(complaintCollection.getOriginId())) { @@ -169,6 +175,12 @@ public class ComplaintCollectionServiceImpl implements ComplaintCollectionServic if (!exists) { throw new NoSuchElementException("未找到可修改信息"); } + SupDepartQueryParam supDepartQueryParam = new SupDepartQueryParam(); + supDepartQueryParam.setId(request.getSecondDepartId()); + List supDepartList = supDepartResourceService.query(supDepartQueryParam); + if (CollectionUtil.isEmpty(supDepartList) || supDepartList.get(0).getLevel()!=2){ + throw new IllegalStateException("请选择正确的二级机构"); + } ComplaintCollectionUpdateParam updateParam = ComplaintCollectionTransfer.INSTANCE.updateRequestToParam(request); // 处理 involve_problem + tag String involveProblem = CodeTranslateUtil.joinDistinct(request.getInvolveProblemIdList()); @@ -238,7 +250,7 @@ public class ComplaintCollectionServiceImpl implements ComplaintCollectionServic }).toList(); one.setThingFiles(fileVos); // 超时情况 - fillCheckTimeoutInfo(one); +// fillCheckTimeoutInfo(one); }); } ComplaintCollectionPageVo complaintCollectionPageVo = new ComplaintCollectionPageVo();