zxl
9 天以前 8f2e8522daf081ad4da027c39a776fdd9483b97e
ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml
@@ -414,9 +414,24 @@
            <if test="deptTag!=null">
                and p.dept_tag = #{deptTag}
            </if>
            <if test="address != null">
                and p.dept_id = #{address}
            </if>
            ${params.dataScope}
        </where>
    </select>
    <select id="getAllVideo" resultType="java.lang.Long">
        SELECT
               IFNULL(SUM(IF((m.camera_fun_type like '%1%'), 1, 0)), 0) AS video
        FROM t_monitor m
                 left join t_yw_point p on m.serial_number = p.serial_number
    </select>
    <select id="getIdListVideo" resultType="java.lang.String">
        select m.serial_number
        FROM t_monitor m where m.camera_fun_type like '%1%'
    </select>
    <select id="assetManagementCount" resultType="java.util.Map">
        SELECT count(*) AS total,
        IFNULL(SUM(IF((m.camera_fun_type like '%1%'), 1, 0)), 0) AS video,