吉安感知网项目-后端
linwei
2 days ago 08ddfad4530a014094c06fe68b8c2d9a0753403a
drone-service/drone-fw/src/main/java/org/sxkj/fw/detection/mapper/FwTaskScheduleMapper.xml
@@ -77,6 +77,9 @@
            and dsm.id::VARCHAR = ANY(string_to_array(replace(dz.defense_scene_ids, ' ', ''), ','))
        <where>
            ts.is_deleted = 0
            <if test="param2.deviceId != null and param2.deviceId != ''">
                and ts.device_id = #{param2.deviceId}
            </if>
            <if test="param2.deviceName != null and param2.deviceName != ''">
                and d.device_name like concat('%', #{param2.deviceName}, '%')
            </if>
@@ -87,7 +90,7 @@
                and d.device_type = #{param2.deviceType}
            </if>
            <if test="param2.status != null and param2.status != ''">
                and d.status::text = #{status}::text
                and d.status::text = #{param2.status}::text
            </if>
            <if test="param2.deptList != null and param2.deptList.size > 0">
                and ts.create_dept in