<?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.WorkAtHeightInfoRepository">
|
|
<resultMap type="com.gkhy.safePlatform.specialWork.entity.WorkAtHeightInfo" id="WorkAtHeightInfoMap">
|
<result property="id" column="id" jdbcType="BIGINT"/>
|
<result property="operationDepId" column="operation_dep_id" jdbcType="BIGINT"/>
|
<result property="operationDepName" column="operation_dep_name" jdbcType="VARCHAR"/>
|
<result property="operationHeight" column="operation_height" jdbcType="DECIMAL"/>
|
<result property="workApplyId" column="work_apply_id" jdbcType="BIGINT"/>
|
<result property="otherSpecialWork" column="other_special_work" jdbcType="VARCHAR"/>
|
<result property="status" column="status" jdbcType="TINYINT"/>
|
<result property="gmtCreate" column="gmt_create" jdbcType="TIMESTAMP"/>
|
<result property="createUid" column="create_uid" jdbcType="BIGINT"/>
|
<result property="createUname" column="create_uname" jdbcType="VARCHAR"/>
|
<result property="gmtModified" column="gmt_modified" jdbcType="TIMESTAMP"/>
|
<result property="modifiedUid" column="modified_uid" jdbcType="BIGINT"/>
|
<result property="modifiedUname" column="modified_uname" jdbcType="VARCHAR"/>
|
</resultMap>
|
|
|
<!--查询数据-->
|
<select id="listByConditions" resultMap="WorkAtHeightInfoMap" parameterType="com.gkhy.safePlatform.specialWork.model.query.WorkAtHeightQuery">
|
select
|
id, operation_dep_id, operation_dep_name, operation_height, work_apply_id, other_special_work, status, gmt_create, create_uid, create_uname, gmt_modified, modified_uid, modified_uname
|
from work_at_height
|
<where>
|
|
<if test="query.operationDepId != null">
|
and operation_dep_id = #{query.operationDepId}
|
</if>
|
<if test="query.workApplyId != null">
|
and work_apply_id = #{query.workApplyId}
|
</if>
|
<if test="query.status != null">
|
and status = #{query.status}
|
</if>
|
|
</where>
|
</select>
|
<!--通过主键idList批量删除数据-->
|
<update id="updateStatutsByIds">
|
update work_at_height
|
set status = #{status}
|
where id in
|
<foreach collection="idList" item="id" index="index" open="(" close=")" separator=",">
|
#{id}
|
</foreach>
|
</update>
|
|
</mapper>
|