LaborDepartmentMapper.xml 1.2 KB

1234567891011121314151617181920212223242526
  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.zhgd.scs.mapper.LaborDepartmentMapper">
  6. <resultMap id="BaseResultMap" type="com.zhgd.scs.domain.LaborDepartment">
  7. <id property="id" column="id" jdbcType="BIGINT"/>
  8. <result property="projectId" column="project_id" jdbcType="BIGINT"/>
  9. <result property="unitId" column="unit_id" jdbcType="BIGINT"/>
  10. <result property="name" column="name" jdbcType="VARCHAR"/>
  11. <result property="personInCharge" column="person_in_charge" jdbcType="VARCHAR"/>
  12. <result property="picTel" column="pic_tel" jdbcType="VARCHAR"/>
  13. <result property="notes" column="notes" jdbcType="VARCHAR"/>
  14. <result property="email" column="email" jdbcType="VARCHAR"/>
  15. <result property="orderNum" column="order_num" jdbcType="INTEGER"/>
  16. </resultMap>
  17. <select id="orderList" resultType="com.zhgd.scs.domain.vo.LaborDepartmentVo">
  18. SELECT *
  19. FROM labor_department
  20. WHERE project_id = #{projectId} and unit_id = #{unitId}
  21. ORDER BY order_num ASC
  22. </select>
  23. </mapper>