fuliqi
2024-10-15 e41c9b8574a217830e987877f729820b2ceedc33
ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml
@@ -560,53 +560,51 @@
    </select>
<!--    <select id="assetManagement" resultMap="dyMap">-->
<!--        SELECT-->
<!--            tm.id,-->
<!--            tm.serial_number,-->
<!--               tm.name,-->
<!--               tm.site_type,-->
<!--               tm.mac_addr,-->
<!--               tm.ip,-->
<!--               tm.camera_fun_type,-->
<!--               tm.longitude,-->
<!--               tm.latitude,-->
<!--               tm.camera_capture_area,-->
<!--               tm.on_state,-->
<!--               tm.civil_code,-->
<!--               tm.integrated_device,-->
<!--               tm.camera_brand,-->
<!--               tm.address,-->
<!--               tm.net_working,-->
<!--               tm.public_security,-->
<!--               tm.installed_time,-->
<!--               tm.management_unit,-->
<!--               tm.mu_contact_info,-->
<!--               tm.storage_days,-->
<!--               tm.monitor_azimuth,-->
<!--               tm.scene_photo_addr,-->
<!--               tm.model,-->
<!--               tm.site_vulgo,-->
<!--               tm.camera_type,-->
<!--               tm.camera_light_type,-->
<!--               tm.encoded_format,-->
<!--               tm.camera_dept,-->
<!--               tm.hybm,-->
<!--               tm.lxbm,-->
<!--               't_monitor' as tableName,-->
<!--               #{query.keyword} as keyword-->
<!--        FROM-->
<!--            t_monitor tm-->
<!--                INNER JOIN t_yw_point yp ON yp.serial_number = tm.serial_number-->
<!--        <where>-->
<!--            <if test="query.keyword != null and query.keyword != ''">-->
<!--                AND tm.name like concat('%', #{query.keyword}, '%')-->
<!--            </if>-->
<!--            <if test="query.startTIme != null and query.endTime != null">-->
<!--                AND yp.create_time between #{query.startTime} and #{query.endTime}-->
<!--            </if>-->
<!--        </where>-->
<!--    </select>-->
    <select id="assetManagement" resultType="com.ycl.platform.domain.vo.TMonitorVO">
        SELECT
            tm.id,
            tm.serial_number,
               tm.name,
               tm.site_type,
               tm.mac_addr,
               tm.ip,
               tm.camera_fun_type,
               tm.longitude,
               tm.latitude,
               tm.camera_capture_area,
               tm.on_state,
               tm.civil_code,
               tm.integrated_device,
               tm.camera_brand,
               tm.address,
               tm.net_working,
               tm.public_security,
               tm.installed_time,
               tm.management_unit,
               tm.mu_contact_info,
               tm.storage_days,
               tm.monitor_azimuth,
               tm.scene_photo_addr,
               tm.model,
               tm.site_vulgo,
               tm.camera_type,
               tm.camera_light_type,
               tm.encoded_format,
               tm.camera_dept,
               tm.hybm,
               tm.lxbm
        FROM
            t_monitor tm
                INNER JOIN t_yw_point yp ON yp.serial_number = tm.serial_number
        <where>
            <if test="query.keyword != null and query.keyword != ''">
                AND tm.name like concat('%', #{query.keyword}, '%')
            </if>
            <if test="query.startTIme != null and query.endTime != null">
                AND yp.create_time between #{query.startTime} and #{query.endTime}
            </if>
        </where>
    </select>
<!--    <select id="getDyColumns" resultMap="dynamicColumnMap">-->
<!--        SELECT-->