From e892cf3aa380df58cd84d3b633c9d8dc3cab1aa2 Mon Sep 17 00:00:00 2001
From: glj <13935964706@163.com>
Date: Thu, 8 Aug 2024 16:50:46 +0800
Subject: [PATCH] =?UTF-8?q?glj-=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../vordm/controller/ToolController.java | 7 +++-
.../vordm/mapper/DisasterInfoMapper.xml | 40 ++++++++++++++++---
.../kening/vordm/mapper/GuestInfoMapper.xml | 9 ++---
.../com/kening/vordm/mapper/ToolMapper.xml | 3 +-
.../vordm/service/impl/NewsServiceImpl.java | 28 ++-----------
5 files changed, 49 insertions(+), 38 deletions(-)
diff --git a/kn-service/biz-vordm/src/main/java/com/kening/vordm/controller/ToolController.java b/kn-service/biz-vordm/src/main/java/com/kening/vordm/controller/ToolController.java
index 6981c18..117b25c 100644
--- a/kn-service/biz-vordm/src/main/java/com/kening/vordm/controller/ToolController.java
+++ b/kn-service/biz-vordm/src/main/java/com/kening/vordm/controller/ToolController.java
@@ -48,11 +48,14 @@ public class ToolController{
if(!StringUtils.isEmpty(tool.getToolName())){
queryWrapper.like("tool_name", tool.getToolName());
}
+ if(!StringUtils.isEmpty(tool.getMailbox())){
+ queryWrapper.like("mailbox", tool.getMailbox());
+ }
if(!StringUtils.isEmpty(tool.getLabel())){
queryWrapper.like("label", tool.getLabel());
}
- if(tool.getUploader()!=null) {
- queryWrapper.eq("uploader", tool.getUploader());
+ if(!StringUtils.isEmpty(tool.getDisasterType())){
+ queryWrapper.like("disaster_type", tool.getDisasterType());
}
if(!StringUtils.isEmpty(tool.getRelatedDisasterType())) {
queryWrapper.eq("related_disaster_type", tool.getRelatedDisasterType());
diff --git a/kn-service/biz-vordm/src/main/java/com/kening/vordm/mapper/DisasterInfoMapper.xml b/kn-service/biz-vordm/src/main/java/com/kening/vordm/mapper/DisasterInfoMapper.xml
index da2b70b..cf37f44 100644
--- a/kn-service/biz-vordm/src/main/java/com/kening/vordm/mapper/DisasterInfoMapper.xml
+++ b/kn-service/biz-vordm/src/main/java/com/kening/vordm/mapper/DisasterInfoMapper.xml
@@ -575,6 +575,7 @@
LEFT JOIN blade_user gi on gi.id = gmdr.sponsor_id
gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
@@ -585,7 +586,6 @@
from disaster_info di
di.chief_id = #{userId}
- and di.respond_status > 1
@@ -611,6 +611,7 @@
di.disaster_time BETWEEN #{start} AND #{end}
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
GROUP BY date
@@ -631,6 +632,7 @@
LEFT JOIN blade_user gi on gi.id = gmdr.sponsor_id
where date_format(t.disaster_time, '%Y-%m') = CONCAT(#{year}, '-01')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-02') as `key`, 0 as response, count (1) as initiate
@@ -642,6 +644,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-02')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-03') as `key`, 0 as response, count (1) as initiate
@@ -653,6 +656,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-03')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-04') as `key`, 0 as response, count (1) as initiate
@@ -664,6 +668,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-04')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-05') as `key`, 0 as response, count (1) as initiate
@@ -675,6 +680,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-05')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-06') as `key`, 0 as response, count (1) as initiate
@@ -686,6 +692,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-06')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-07') as `key`, 0 as response, count (1) as initiate
@@ -697,6 +704,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-07')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-08') as `key`, 0 as response, count (1) as initiate
@@ -708,6 +716,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-08')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-09') as `key`, 0 as response, count (1) as initiate
@@ -719,6 +728,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-09')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-10') as `key`, 0 as response, count (1) as initiate
@@ -730,6 +740,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-10')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-11') as `key`, 0 as response, count (1) as initiate
@@ -741,6 +752,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-11')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-12') as `key`, 0 as response, count (1) as initiate
@@ -752,6 +764,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-12')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
@@ -876,6 +889,7 @@
LEFT JOIN blade_user gi on gi.id = gmdr.sponsor_id
gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
@@ -1433,6 +1447,7 @@
LEFT JOIN blade_user gi on gi.id = gmdr.sponsor_id
where date_format(t.disaster_time, '%Y-%m') = CONCAT(#{year}, '-01')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-02') as `key`, 0 as response, count (1) as initiate
@@ -1444,6 +1459,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-02')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-03') as `key`, 0 as response, count (1) as initiate
@@ -1455,6 +1471,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-03')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-04') as `key`, 0 as response, count (1) as initiate
@@ -1466,6 +1483,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-04')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-05') as `key`, 0 as response, count (1) as initiate
@@ -1477,6 +1495,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-05')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-06') as `key`, 0 as response, count (1) as initiate
@@ -1488,6 +1507,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-06')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-07') as `key`, 0 as response, count (1) as initiate
@@ -1499,6 +1519,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-07')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-08') as `key`, 0 as response, count (1) as initiate
@@ -1510,6 +1531,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-08')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-09') as `key`, 0 as response, count (1) as initiate
@@ -1521,6 +1543,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-09')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-10') as `key`, 0 as response, count (1) as initiate
@@ -1532,6 +1555,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-10')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-11') as `key`, 0 as response, count (1) as initiate
@@ -1543,6 +1567,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-11')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
SELECT CONCAT(#{year}, '-12') as `key`, 0 as response, count (1) as initiate
@@ -1554,6 +1579,7 @@
, '%Y-%m') = CONCAT(#{year}
, '-12')
and gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
union ALL
@@ -1677,7 +1703,8 @@
LEFT JOIN guest_manage_disaster_ref gmdr on gmdr.disaster_id = di.id
gmdr.sponsor_id = #{userId}
- and di.respond_status > 1
+ and gmdr.status > 0
+ and gmdr.status != 2
@@ -1687,7 +1714,8 @@
from disaster_info di
di.admin_id = #{userId}
- and di.respond_status > 1
+ and gmdr.status > 0
+ and gmdr.status != 2
@@ -1698,7 +1726,8 @@
LEFT JOIN guest_manage_disaster_ref gmdr on gmdr.disaster_id = di.id
gmdr.admin_id = #{userId}
- and di.respond_status = 2
+ and gmdr.status > 0
+ and gmdr.status != 2
@@ -1709,7 +1738,8 @@
LEFT JOIN guest_manage_disaster_ref gmdr on gmdr.disaster_id = di.id
gmdr.manager_id = #{userId}
- and di.respond_status = 2
+ and gmdr.status > 0
+ and gmdr.status != 2
diff --git a/kn-service/biz-vordm/src/main/java/com/kening/vordm/mapper/GuestInfoMapper.xml b/kn-service/biz-vordm/src/main/java/com/kening/vordm/mapper/GuestInfoMapper.xml
index 1c7ce69..0760105 100644
--- a/kn-service/biz-vordm/src/main/java/com/kening/vordm/mapper/GuestInfoMapper.xml
+++ b/kn-service/biz-vordm/src/main/java/com/kening/vordm/mapper/GuestInfoMapper.xml
@@ -47,6 +47,7 @@
LEFT JOIN blade_user gi on gi.id = gmdr.sponsor_id
gi.email = #{email}
+ and gmdr.status > 0
and gmdr.status != 2
@@ -82,17 +83,15 @@