From b8fe4c7b5f4f03dcfadff95702a07040ab9a1b57 Mon Sep 17 00:00:00 2001
From: cjl <276999030@qq.com>
Date: Wed, 27 Sep 2023 11:08:28 +0800
Subject: [PATCH] feat:补充提交

---
 screen-api/src/main/resources/mapper/AllocationMapper.xml |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/screen-api/src/main/resources/mapper/AllocationMapper.xml b/screen-api/src/main/resources/mapper/AllocationMapper.xml
index 32c9a32..409e0a6 100644
--- a/screen-api/src/main/resources/mapper/AllocationMapper.xml
+++ b/screen-api/src/main/resources/mapper/AllocationMapper.xml
@@ -90,6 +90,13 @@
             <if test="allocation.endTime != null and allocation.endTime !='' ">
                 and date(allocation.escalation_time) <![CDATA[<=]]>  #{allocation.endTime}
             </if>
+            <if test="allocation.unitList != null and allocation.unitList.size !=0">
+                and allocation.unit_id in
+                <foreach collection="allocation.unitList" item="id" index="index" open="(" close=")" separator=",">
+                    #{id}
+                </foreach>
+
+            </if>
         </where>
         order by allocation.escalation_time desc,allocation.allocation_id desc
     </select>

--
Gitblit v1.8.0