fuliqi
2024-08-21 31d3591b34d4f26ad2ab207ca3044048d9adb9df
ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml
@@ -89,17 +89,21 @@
        yu.unit_name,
        yp.start_time,
        yp.end_time,
        yp.province_tag,
        yp.important_tag,
        yp.important_command_image_tag
        CASE WHEN yp.province_tag = 0 THEN '' ELSE '省厅点位' END AS provinceTagString,
        CASE WHEN yp.important_tag = 0 THEN '' ELSE '重点点位' END AS importantTagString,
        CASE WHEN yp.important_command_image_tag = 0 THEN '' ELSE '重点指挥图像' END AS importantCommandImageTagString
        FROM
        t_yw_point yp
        INNER JOIN t_monitor m ON yp.serial_number = m.serial_number
        INNER JOIN t_yw_unit yu ON yu.id = yp.unit_id
        LEFT JOIN t_yw_unit yu ON yu.id = yp.unit_id
        <where>
            <if test="query.pointName != null and query.pointName != ''">
                AND m.name like concat('%', #{query.pointName} ,'%')
            </if>
        </where>
    </select>
    <delete id="deleteAll">
        delete from t_yw_point
    </delete>
</mapper>