LaborUnitMapper.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  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.LaborUnitMapper">
  6. <resultMap id="BaseResultMap" type="com.zhgd.scs.domain.LaborUnit">
  7. <id property="id" column="id" jdbcType="BIGINT"/>
  8. <result property="projectId" column="project_id" jdbcType="BIGINT"/>
  9. <result property="type" column="type" jdbcType="INTEGER"/>
  10. <result property="name" column="name" jdbcType="VARCHAR"/>
  11. <result property="orgCode" column="org_code" jdbcType="VARCHAR"/>
  12. <result property="personInCharge" column="person_in_charge" jdbcType="VARCHAR"/>
  13. <result property="picTel" column="pic_tel" jdbcType="VARCHAR"/>
  14. <result property="notes" column="notes" jdbcType="VARCHAR"/>
  15. </resultMap>
  16. <sql id="Base_Column_List">
  17. id,project_id,type,
  18. name,org_code,person_in_charge,
  19. pic_tel,project_manager,pm_tel,
  20. quality_manager,qm_tel,safety_manager,
  21. sm_tel,chief_engineer,ce_tel,
  22. notes,state
  23. </sql>
  24. <select id="orderList" resultType="com.zhgd.scs.domain.vo.LaborUnitVo">
  25. SELECT *
  26. FROM labor_unit
  27. WHERE project_id = #{projectId}
  28. ORDER BY order_num ASC
  29. </select>
  30. </mapper>