OperationLanePeakThroughputMapper.xml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.sundot.airport.ledger.mapper.OperationLanePeakThroughputMapper">
  6. <resultMap type="OperationLanePeakThroughput" id="OperationLanePeakThroughputResult">
  7. <id property="id" column="id" />
  8. <result property="deptId" column="dept_id" />
  9. <result property="deptName" column="dept_name" />
  10. <result property="teamId" column="team_id" />
  11. <result property="teamName" column="team_name" />
  12. <result property="groupId" column="group_id" />
  13. <result property="groupName" column="group_name" />
  14. <result property="laneId" column="lane_id" />
  15. <result property="recordDate" column="record_date" />
  16. <result property="hourOfDay" column="hour_of_day" />
  17. <result property="throughput" column="throughput" />
  18. <result property="throughputRate" column="throughput_rate" />
  19. <result property="remark" column="remark" />
  20. <result property="createBy" column="create_by" />
  21. <result property="createTime" column="create_time" />
  22. <result property="updateBy" column="update_by" />
  23. <result property="updateTime" column="update_time" />
  24. <result property="delFlag" column="del_flag" />
  25. </resultMap>
  26. <sql id="selectOperationLanePeakThroughputVo">
  27. select id, dept_id, dept_name, team_id, team_name, group_id, group_name,
  28. lane_id, record_date, hour_of_day, throughput, throughput_rate, remark,
  29. create_by, create_time, update_by, update_time, del_flag
  30. from operation_lane_peak_throughput
  31. </sql>
  32. <select id="selectOperationLanePeakThroughputList" parameterType="OperationLanePeakThroughput" resultMap="OperationLanePeakThroughputResult">
  33. <include refid="selectOperationLanePeakThroughputVo"/>
  34. <where>
  35. del_flag = '0'
  36. <if test="deptId != null "> and dept_id = #{deptId}</if>
  37. <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
  38. <if test="teamId != null "> and team_id = #{teamId}</if>
  39. <if test="teamName != null and teamName != ''"> and team_name like concat('%', #{teamName}, '%')</if>
  40. <if test="groupId != null "> and group_id = #{groupId}</if>
  41. <if test="groupName != null and groupName != ''"> and group_name like concat('%', #{groupName}, '%')</if>
  42. <if test="laneId != null and laneId != ''"> and lane_id = #{laneId}</if>
  43. <if test="recordDate != null "> and record_date = #{recordDate}</if>
  44. <if test="hourOfDay != null and hourOfDay != ''"> and hour_of_day = #{hourOfDay}</if>
  45. </where>
  46. order by record_date desc, create_time desc
  47. </select>
  48. </mapper>