1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.ozs.service.mapper.BaseCameraManagementMapper">
- <select id="selectCameraManagementList" resultType="com.ozs.service.entity.BaseCameraManagement" parameterType="com.ozs.service.entity.vo.BaseCameraManagementVo">
- SELECT
- a.id AS id,
- a.camera_code AS cameraCode,
- a.railway_code AS railwayCode,
- a.channel AS channel,
- a.dept_id AS deptId,
- a.line_dir AS lineDir,
- a.install_mile AS installMile,
- a.begin_mile AS beginMile,
- a.end_mile AS endMile,
- a.install_longitude AS installLongitude,
- a.install_latitude AS installLatitude,
- a.card_num AS cardNum,
- a.start_recording AS startRecording,
- a.task_id AS taskId,
- a.create_time AS createTime
- FROM
- base_camera_management a
- <where>
- <if test="railwayCode != null and railwayCode != ''">
- and a.railway_code=#{railwayCode}
- </if>
- <if test="lineDir != null and lineDir != 0">
- and a.line_dir =#{lineDir}
- </if>
- <if test="deptId != null and deptId != 0">
- and a.dept_id =#{deptId}
- </if>
- <if test="beginMile != null and beginMile != 0">
- and a.begin_mile >=#{beginMile}
- </if>
- <if test="endMile != null and endMile != 0">
- and a.end_mile <=#{endMile}
- </if>
- <if test="!dsFlay">
- and (
- <if test="dsUserId != null and dsUserId != ''">
- a.create_by=#{dsUserId} or
- </if>
- <if test="dsDeptId != null and dsDeptId != 0">
- a.dept_id=#{dsDeptId} or
- </if>
- <if test="dsDeptIds != null">
- a.dept_id in
- <foreach item="item" collection="dsDeptIds" separator="," open="(" close=")" index="">
- #{item}
- </foreach>
- </if>
- )
- </if>
- </where>
- </select>
- </mapper>
|