From 7611e568eb2caf984ee4981ef1ef44baf3b5c134 Mon Sep 17 00:00:00 2001 From: hanrenchun Date: Fri, 2 Feb 2024 10:56:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/DisposalInfoController.java | 29 +++++++++++++++++-- .../MetaImpUserModelInfoController.java | 8 +++++ 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/DisposalInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/DisposalInfoController.java index 286d970..7dd1359 100644 --- a/gather-app/src/main/java/com/ruoyi/database/controller/DisposalInfoController.java +++ b/gather-app/src/main/java/com/ruoyi/database/controller/DisposalInfoController.java @@ -62,12 +62,15 @@ public class DisposalInfoController extends BaseController { transitHuntersUserModelRecord.setSignStatusCn("已签收已反馈"); } transitHuntersUserModelRecord.setDisposalResult(one.getDisposalResult()); - if (one.getDisposalResult() == 1){ + if (one.getDisposalResult() == 1) { transitHuntersUserModelRecord.setDisposalResultCn("无风险"); } - if (one.getDisposalResult() == 2){ + if (one.getDisposalResult() == 2) { transitHuntersUserModelRecord.setDisposalResultCn("有风险"); } + if (one.getDisposalResult() == 3) { + transitHuntersUserModelRecord.setDisposalResultCn("待查"); + } } else { transitHuntersUserModelRecord.setSignStatusCn("未签收"); transitHuntersUserModelRecord.setSignStatus(1); @@ -75,7 +78,15 @@ public class DisposalInfoController extends BaseController { String warningTime = transitHuntersUserModelRecord.getWarningTime(); LocalDateTime localDateTime = LocalDateTime.parse(warningTime, inputFormatter); transitHuntersUserModelRecord.setWarningTime(localDateTime.format(formatter)); - transitHuntersUserModelRecords.add(transitHuntersUserModelRecord); + if (modelRecord.getDisposalResultCn() != null && modelRecord.getDisposalResultCn().equals(transitHuntersUserModelRecord.getDisposalResultCn())) { + transitHuntersUserModelRecords.add(transitHuntersUserModelRecord); + } + if (modelRecord.getSignStatusCn() != null && modelRecord.getSignStatusCn().equals(transitHuntersUserModelRecord.getSignStatusCn())){ + transitHuntersUserModelRecords.add(transitHuntersUserModelRecord); + } + if (modelRecord.getSignStatusCn() == null && modelRecord.getDisposalResultCn() == null){ + transitHuntersUserModelRecords.add(transitHuntersUserModelRecord); + } } TableDataInfo dataTable = getDataTable(transitHuntersUserModelRecords); dataTable.setTotal(count); @@ -95,6 +106,10 @@ public class DisposalInfoController extends BaseController { disposalInfo.setDisposalResult(2); } + if ("待查".equals(disposalInfo.getDisposalResultCn())) { + disposalInfo.setDisposalResult(3); + } + if (disposalInfo.getSignPoliceman() != null && disposalInfo.getSignPoliceStation() != null) { disposalInfo.setSignStatus(2); } @@ -122,4 +137,12 @@ public class DisposalInfoController extends BaseController { DisposalInfo one = disposalInfoService.getOne(queryWrapper); return AjaxResult.success(one); } + + @GetMapping("/count") + @ApiOperation("查找未处置条数") + public AjaxResult disposalInfoCount() { + int count = disposalInfoService.count(); + int count1 = transitHuntersUserModelRecordService.count(); + return AjaxResult.success(count1 - count); + } } diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/MetaImpUserModelInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/MetaImpUserModelInfoController.java index f0ed601..387da39 100644 --- a/gather-app/src/main/java/com/ruoyi/database/controller/MetaImpUserModelInfoController.java +++ b/gather-app/src/main/java/com/ruoyi/database/controller/MetaImpUserModelInfoController.java @@ -237,6 +237,14 @@ public class MetaImpUserModelInfoController extends BaseController { return getDataTable(infoVOS); } + @GetMapping("/list") + @ApiOperation("查询重点人员预警信息列表") + public TableDataInfo tableDataInfoList(MetaImpUserModelInfo metaImpUserModelInfo) { + startPage(); + List list = metaImpUserModelInfoService.list(new QueryWrapper<>(metaImpUserModelInfo)); + return getDataTable(list); + } + }