<?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.gk.hotwork.specialWork.repository.WorkProcessDetectionInfoRepository">
|
|
<resultMap id="WorkProcessDetectionInfo" type="com.gk.hotwork.specialWork.entity.WorkProcessDetectionInfo">
|
<result column="id" property="id" />
|
<result column="work_apply_id" property="workApplyId" />
|
<result column="work_permit_no" property="workPermitNo" />
|
<result column="work_type" property="workType" />
|
<result column="work_level" property="workLevel" />
|
<result column="operation_time" property="operationTime" />
|
<result column="operator_uid" property="operatorUid" />
|
<result column="operator_uname" property="operatorUname" />
|
<result column="info" property="info" />
|
<result column="combustible" property="combustible" />
|
<result column="oxygen" property="oxygen" />
|
<result column="carbon_monoxide" property="carbonMonoxide" />
|
<result column="hydrogen_sulfide" property="hydrogenSulfide" />
|
<result column="status" property="status" />
|
<result column="result" property="result" />
|
<result column="source" property="source" />
|
</resultMap>
|
|
|
<insert id="insertWorkProcessDetectionInfo"
|
parameterType="com.gk.hotwork.specialWork.entity.WorkProcessDetectionInfo">
|
insert
|
into work_process_detection
|
<trim prefix="(" suffix=") values" suffixOverrides=",">
|
<if test="id != null">
|
id,
|
</if>
|
<if test="workApplyId != null">
|
work_apply_id,
|
</if>
|
<if test="workPermitNo != null">
|
work_permit_no,
|
</if>
|
<if test="workType != null">
|
work_type,
|
</if>
|
<if test="workLevel != null">
|
work_level,
|
</if>
|
<if test="operationTime != null">
|
operation_time,
|
</if>
|
<if test="operatorUid != null">
|
operator_uid,
|
</if>
|
<if test="operatorUname != null">
|
operator_uname,
|
</if>
|
<if test="info != null">
|
info,
|
</if>
|
<if test="combustible != null">
|
combustible,
|
</if>
|
<if test="oxygen != null">
|
oxygen,
|
</if>
|
<if test="carbonMonoxide != null">
|
carbon_monoxide,
|
</if>
|
<if test="hydrogenSulfide != null">
|
hydrogen_sulfide,
|
</if>
|
<if test="status != null">
|
status,
|
</if>
|
<if test="result != null">
|
result,
|
</if>
|
<if test="source != null">
|
source,
|
</if>
|
</trim>
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="id != null">
|
#{id},
|
</if>
|
<if test="workApplyId != null">
|
#{workApplyId},
|
</if>
|
<if test="workPermitNo != null">
|
#{workPermitNo},
|
</if>
|
<if test="workType != null">
|
#{workType},
|
</if>
|
<if test="workLevel != null">
|
#{workLevel},
|
</if>
|
<if test="operationTime != null">
|
#{operationTime},
|
</if>
|
<if test="operatorUid != null">
|
#{operatorUid},
|
</if>
|
<if test="operatorUname != null">
|
#{operatorUname},
|
</if>
|
<if test="info != null">
|
#{info},
|
</if>
|
<if test="combustible != null">
|
#{combustible},
|
</if>
|
<if test="oxygen != null">
|
#{oxygen},
|
</if>
|
<if test="carbonMonoxide != null">
|
#{carbonMonoxide},
|
</if>
|
<if test="hydrogenSulfide != null">
|
#{hydrogenSulfide},
|
</if>
|
<if test="status != null">
|
#{status},
|
</if>
|
<if test="result != null">
|
#{result},
|
</if>
|
<if test="source != null">
|
#{source},
|
</if>
|
</trim>
|
|
</insert>
|
<select id="listWorkDetectionInfoByPage"
|
resultMap="WorkProcessDetectionInfo">
|
select
|
detection.id,
|
detection.work_apply_id,
|
detection.work_permit_no,
|
detection.work_type,
|
detection.work_level,
|
detection.operator_uname,
|
detection.operator_uid,
|
detection.operation_time,
|
detection.status,
|
detection.info,
|
detection.combustible,
|
detection.oxygen,
|
detection.carbon_monoxide,
|
detection.hydrogen_sulfide,
|
detection.source,
|
detection.result
|
from work_process_detection as detection
|
<where>
|
<if test="query.workType != null">
|
and detection.work_type = #{query.workType}
|
</if>
|
<if test="query.workPermitNo != null and query.workPermitNo != ''">
|
and detection.work_permit_no like concat("%",#{query.workPermitNo},"%")
|
</if>
|
<if test="query.result != null">
|
and detection.result = #{query.result}
|
</if>
|
</where>
|
order by detection.operation_time desc
|
</select>
|
</mapper>
|