| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?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.sundot.airport.ledger.mapper.OperationLanePeakThroughputMapper">
-
- <resultMap type="OperationLanePeakThroughput" id="OperationLanePeakThroughputResult">
- <id property="id" column="id" />
- <result property="deptId" column="dept_id" />
- <result property="deptName" column="dept_name" />
- <result property="teamId" column="team_id" />
- <result property="teamName" column="team_name" />
- <result property="groupId" column="group_id" />
- <result property="groupName" column="group_name" />
- <result property="laneId" column="lane_id" />
- <result property="recordDate" column="record_date" />
- <result property="hourOfDay" column="hour_of_day" />
- <result property="throughput" column="throughput" />
- <result property="throughputRate" column="throughput_rate" />
- <result property="remark" column="remark" />
- <result property="createBy" column="create_by" />
- <result property="createTime" column="create_time" />
- <result property="updateBy" column="update_by" />
- <result property="updateTime" column="update_time" />
- <result property="delFlag" column="del_flag" />
- </resultMap>
- <sql id="selectOperationLanePeakThroughputVo">
- select id, dept_id, dept_name, team_id, team_name, group_id, group_name,
- lane_id, record_date, hour_of_day, throughput, throughput_rate, remark,
- create_by, create_time, update_by, update_time, del_flag
- from operation_lane_peak_throughput
- </sql>
- <select id="selectOperationLanePeakThroughputList" parameterType="OperationLanePeakThroughput" resultMap="OperationLanePeakThroughputResult">
- <include refid="selectOperationLanePeakThroughputVo"/>
- <where>
- del_flag = '0'
- <if test="deptId != null "> and dept_id = #{deptId}</if>
- <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
- <if test="teamId != null "> and team_id = #{teamId}</if>
- <if test="teamName != null and teamName != ''"> and team_name like concat('%', #{teamName}, '%')</if>
- <if test="groupId != null "> and group_id = #{groupId}</if>
- <if test="groupName != null and groupName != ''"> and group_name like concat('%', #{groupName}, '%')</if>
- <if test="laneId != null and laneId != ''"> and lane_id = #{laneId}</if>
- <if test="recordDate != null "> and record_date = #{recordDate}</if>
- <if test="hourOfDay != null and hourOfDay != ''"> and hour_of_day = #{hourOfDay}</if>
- </where>
- order by record_date desc, create_time desc
- </select>
- </mapper>
|