Kaynağa Gözat

用户导出修改

gao.qiang 1 yıl önce
ebeveyn
işleme
ece5f4f256

+ 1 - 1
business-service/src/main/resources/mapper/service/BaseCameraManagementMapper.xml

@@ -49,7 +49,7 @@
             <if test="installMile != null and installMile != 0">
                 and a.install_mile =#{installMile}
             </if>
-            <if test="ids != null">
+            <if test="ids != null and ids.size>0">
                 and a.id in
                 <foreach item="items" collection="ids" separator="," open="(" close=")" index="">
                     #{items}

+ 1 - 1
business-service/src/main/resources/mapper/service/MsgAlarmMapper.xml

@@ -143,7 +143,7 @@
             <if test="alarmType != null and alarmType != ''">
                 and UPPER(a.alarm_type) like UPPER(CONCAT('%',#{alarmType},'%'))
             </if>
-            <if test="ids != null">
+            <if test="ids != null and ids.size>0">
                 and a.id in
                 <foreach item="items" collection="ids" separator="," open="(" close=")" index="">
                     #{items}