From 9334c8b308436e5f698c89893ad47aca4dfabaa5 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Wed, 27 Sep 2023 15:22:37 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/wb' into wb
---
screen-api/src/main/resources/mapper/AllocationExtensionMapper.xml | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/screen-api/src/main/resources/mapper/AllocationExtensionMapper.xml b/screen-api/src/main/resources/mapper/AllocationExtensionMapper.xml
index 5df5bbf..2b48a42 100644
--- a/screen-api/src/main/resources/mapper/AllocationExtensionMapper.xml
+++ b/screen-api/src/main/resources/mapper/AllocationExtensionMapper.xml
@@ -25,9 +25,11 @@
<select id="extOne" resultType="com.moral.api.pojo.ext.allocationextension.AllocationExtensionExt">
SELECT
- <include refid="AllocationExtension_Column_List"/>
+ <include refid="AllocationExtension_Column_List"/>,
+ t1.allocation_num,t1.escalation_time,t1.unit_id,t1.pollute_type,t1.change_type,t1.change_day,t1.escalation_unit_id,t1.escalation_name
FROM allocation_extension allocationextension
- where allocationextension.id = #{id}
+ left join allocation t1 on allocationextension.allocation_id = t1.allocation_id
+ where allocationextension.id = #{id} and allocationextension.is_del = 0
</select>
@@ -62,6 +64,12 @@
<if test="allocation.endTime != null and allocation.endTime !='' ">
and date(t1.escalation_time) <![CDATA[<=]]> #{allocation.endTime}
</if>
+ <if test="allocation.unitList != null and allocation.unitList.size !=0">
+ and t1.unit_id in
+ <foreach collection="allocation.unitList" item="id" index="index" open="(" close=")" separator=",">
+ #{id}
+ </foreach>
+ </if>
</where>
order by t1.escalation_time desc,t1.allocation_id desc
--
Gitblit v1.8.0