<?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.gkhy.safePlatform.specialWork.repository.WorkApplyOperatorInfoRepository" >
|
<resultMap id="WorkApplyInfo" type="com.gkhy.safePlatform.specialWork.entity.WorkApplyOperatorInfo" >
|
<id column="id" property="id" jdbcType="BIGINT" />
|
<result column="operator_uid" property="operatorUid" jdbcType="BIGINT"/>
|
<result column="work_apply_id" property="workApplyId" jdbcType="BIGINT"/>
|
<result column="operator_uname" property="operatorUname" jdbcType="VARCHAR"/>
|
<result column="operator_certificate" property="operatorCertificate" jdbcType="VARCHAR"/>
|
<result column="operator_phone" property="operatorPhone" jdbcType="VARCHAR"/>
|
<result column="operator_identify" property="operatorIdentify" jdbcType="VARCHAR"/>
|
</resultMap>
|
<insert id="insertBatchOperator">
|
insert
|
into work_apply_operator
|
<trim prefix="(" suffix=") values" suffixOverrides="," >
|
id,
|
operator_uid,
|
work_apply_id,
|
operator_uname,
|
operator_certificate,
|
operator_phone,
|
operator_identify,
|
</trim>
|
<foreach collection="list" item="item" separator=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
#{item.id},
|
#{item.operatorUid},
|
#{item.workApplyId},
|
#{item.operatorUname},
|
#{item.operatorCertificate},
|
#{item.operatorPhone},
|
#{item.operatorIdentify},
|
</trim>
|
</foreach>
|
|
</insert>
|
<select id="listWorkOperatorByWorkApplyId"
|
parameterType="long"
|
resultMap="WorkApplyInfo">
|
select
|
operator.id,
|
operator.operator_uid,
|
operator.work_apply_id,
|
operator.operator_uname,
|
operator.operator_certificate,
|
operator.operator_phone,
|
operator.operator_identify
|
from work_apply_operator as operator
|
where operator.work_apply_id = #{workApplyId}
|
</select>
|
|
|
</mapper>
|