1、能力集市-基础设施页面的列表查询的sql语句增加 check_status 为空的判断

This commit is contained in:
yitonglei 2022-07-22 16:06:44 +08:00
parent 6c06060b16
commit 72cf26ec72
1 changed files with 6 additions and 3 deletions

View File

@ -145,7 +145,9 @@
AND tcc.node_name LIKE CONCAT(#{path},'%') AND tcc.node_name LIKE CONCAT(#{path},'%')
</if> </if>
AND tcc.check_status IN (${map.checkStatus}) <if test = "map.checkStatus != null and map.checkStatus != ''">
AND tcc.check_status IN (${map.checkStatus})
</if>
AND tcc.gps_x != '' AND tcc.gps_x != ''
AND tcc.gps_y != '' AND tcc.gps_y != ''
AND tcc.gps_x IS NOT NULL AND tcc.gps_x IS NOT NULL
@ -193,8 +195,9 @@
AND tcc.node_name LIKE CONCAT(#{path},'%') AND tcc.node_name LIKE CONCAT(#{path},'%')
</if> </if>
<if test = "map.checkStatus != null and map.checkStatus != ''">
AND tcc.check_status IN (${map.checkStatus}) AND tcc.check_status IN (${map.checkStatus})
</if>
<if test = "map.cameraName != null and map.cameraName != ''"> <if test = "map.cameraName != null and map.cameraName != ''">
AND tcc.channel_name LIKE CONCAT('%',#{map.cameraName},'%') AND tcc.channel_name LIKE CONCAT('%',#{map.cameraName},'%')