1234567891011121314151617181920212223242526272829303132 |
- <?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.zhgd.scs.mapper.LaborUnitMapper">
- <resultMap id="BaseResultMap" type="com.zhgd.scs.domain.LaborUnit">
- <id property="id" column="id" jdbcType="BIGINT"/>
- <result property="projectId" column="project_id" jdbcType="BIGINT"/>
- <result property="type" column="type" jdbcType="INTEGER"/>
- <result property="name" column="name" jdbcType="VARCHAR"/>
- <result property="orgCode" column="org_code" jdbcType="VARCHAR"/>
- <result property="personInCharge" column="person_in_charge" jdbcType="VARCHAR"/>
- <result property="picTel" column="pic_tel" jdbcType="VARCHAR"/>
- <result property="notes" column="notes" jdbcType="VARCHAR"/>
- </resultMap>
- <sql id="Base_Column_List">
- id,project_id,type,
- name,org_code,person_in_charge,
- pic_tel,project_manager,pm_tel,
- quality_manager,qm_tel,safety_manager,
- sm_tel,chief_engineer,ce_tel,
- notes,state
- </sql>
- <select id="orderList" resultType="com.zhgd.scs.domain.vo.LaborUnitVo">
- SELECT *
- FROM labor_unit
- WHERE project_id = #{projectId}
- ORDER BY order_num ASC
- </select>
- </mapper>
|