From 8b7258c9427882bb1798f1502eaa35184c6e374e Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:29:18 +0800
Subject: [PATCH] 短信指定楼栋发送
---
src/main/java/org/springblade/modules/task/mapper/TaskPlaceRectificationMapper.xml | 31 +++++++++++++++++++++++++------
1 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/src/main/java/org/springblade/modules/task/mapper/TaskPlaceRectificationMapper.xml b/src/main/java/org/springblade/modules/task/mapper/TaskPlaceRectificationMapper.xml
index 0f3d658..a257b77 100644
--- a/src/main/java/org/springblade/modules/task/mapper/TaskPlaceRectificationMapper.xml
+++ b/src/main/java/org/springblade/modules/task/mapper/TaskPlaceRectificationMapper.xml
@@ -193,8 +193,8 @@
jp.principal,
jp.principal_phone,
jp.nine_type,
- br.town_name,
- br.village_name,
+ br.town_name streetName,
+ br.village_name communityName,
bu.`name`,
jpe.legal_tel,
jpe.legal_person,
@@ -213,7 +213,7 @@
<if test="taskPalce.taskId != null ">and jtpr.task_id = #{taskPalce.taskId}</if>
<if test="taskPalce.status != null and taskPalce.status != 2 ">and jtpr.status = #{taskPalce.status}</if>
- <if test="taskPalce.status != null and taskPalce.status = 2 ">and jtpr.status in (2,3)</if>
+ <if test="taskPalce.status != null and taskPalce.status == 2 ">and jtpr.status in (2,3)</if>
<if test="taskPalce.taskName != null and taskPalce.taskName != ''">and jtpr.task_name =
#{taskPalce.taskName}
@@ -224,6 +224,14 @@
</if>
<if test="taskPalce.endTime!=null and taskPalce.endTime!=''">
and jtpr.create_time<=#{taskPalce.endTime}
+ </if>
+
+ <if test="taskPalce.streetName!=null and taskPalce.streetName!=''">
+ and br.town_name like concat('%',#{taskPalce.streetName},'%')
+ </if>
+
+ <if test="taskPalce.communityName!=null and taskPalce.communityName!=''">
+ and br.village_name like concat('%',#{taskPalce.communityName},'%')
</if>
<if test="taskPalce.placeName!=null and taskPalce.placeName!=''">
@@ -466,8 +474,8 @@
jp.principal,
jp.principal_phone,
jp.nine_type,
- br.town_name,
- br.village_name,
+ br.town_name streetName,
+ br.village_name communityName,
bu.`name`,
jpe.legal_tel,
jpe.legal_person,
@@ -484,7 +492,10 @@
<if test="taskPalce.id != null ">and jtpr.id = #{taskPalce.id}</if>
<if test="taskPalce.placeCheckId != null ">and jtpr.place_check_id = #{taskPalce.placeCheckId}</if>
<if test="taskPalce.taskId != null ">and jtpr.task_id = #{taskPalce.taskId}</if>
- <if test="taskPalce.status != null ">and jtpr.status = #{taskPalce.status}</if>
+ <if test="taskPalce.status != null and taskPalce.status != 2 ">and jtpr.status = #{taskPalce.status}</if>
+
+ <if test="taskPalce.status != null and taskPalce.status == 2 ">and jtpr.status in (2,3)</if>
+
<if test="taskPalce.taskName != null and taskPalce.taskName != ''">and jtpr.task_name =
#{taskPalce.taskName}
</if>
@@ -496,6 +507,14 @@
and jtpr.create_time<=#{taskPalce.endTime}
</if>
+ <if test="taskPalce.streetName!=null and taskPalce.streetName!=''">
+ and br.town_name like concat('%',#{taskPalce.streetName},'%')
+ </if>
+
+ <if test="taskPalce.communityName!=null and taskPalce.communityName!=''">
+ and br.village_name like concat('%',#{taskPalce.communityName},'%')
+ </if>
+
<if test="taskPalce.placeName!=null and taskPalce.placeName!=''">
and jp.place_name like concat('%',#{taskPalce.placeName},'%')
</if>
--
Gitblit v1.9.3