From 4bff6feb05200b032f644b03aa69834edd14931d Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Wed, 18 Mar 2026 11:31:21 +0800 Subject: [PATCH] =?UTF-8?q?fix--=E6=A1=88=E4=BB=B6=E6=A0=B8=E6=9F=A5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8B=E5=8F=91=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ComplaintCollectionServiceImpl.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 bea57f2..f529e24 100644 --- a/src/main/java/com/biutag/supervision/service/complaintCollection/ComplaintCollectionServiceImpl.java +++ b/src/main/java/com/biutag/supervision/service/complaintCollection/ComplaintCollectionServiceImpl.java @@ -108,6 +108,7 @@ public class ComplaintCollectionServiceImpl implements ComplaintCollectionServic private final DataCaseVerifResourceService dataCaseVerifResourceService; private final NegativeProblemRelationService negativeProblemRelationService; private final MailResourceService mailResourceService; + private final DataCaseVerifService dataCaseVerifService; private static final DateTimeFormatter INITIAL_REVIEW_FMT = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); private static final int CHECK_LIMIT_DAYS = 4; @@ -473,6 +474,21 @@ public class ComplaintCollectionServiceImpl implements ComplaintCollectionServic } complaintCollectionCheckFileResourceService.delByComplaintCollectionId(request.getComplaintId()); complaintCollectionCheckFileResourceService.createComplaintCollectionCheckFile(complaintCollectionFiles); + // 如果是案件核查,需要更新下发状态 + if (ComplaintCollectionSourceTableEnum.COMPLAINT_12389.getCode().equals(request.getSourceTable())) { + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.eq(DataCaseVerif::getOriginId, request.getOriginId()); + long count = dataCaseVerifService.count(queryWrapper); + if (count == 0) { + throw new RuntimeException("未找到对应案件核查数据"); + } + if (count > 1) { + throw new RuntimeException("匹配到多条案件核查数据,禁止更新"); + } + DataCaseVerif one = dataCaseVerifService.getOne(queryWrapper, false); + one.setDistributionState("1"); + dataCaseVerifService.updateById(one); + } return Result.success(true); }