You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
3.3 KiB
85 lines
3.3 KiB
4 weeks ago
|
<?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.kms.yxgh.dw.mapper.DwCheckingProblemV2Mapper">
|
||
|
|
||
|
<resultMap id="pageMap" type="com.kms.yxgh.dw.dto.DwProblemV2Dto">
|
||
|
<id property="id" column="id"/>
|
||
|
<result property="checkingId" column="checking_id"/>
|
||
|
<result property="recordId" column="record_id"/>
|
||
|
<result property="parts" column="parts"/>
|
||
|
<result property="status" column="status"/>
|
||
|
<result property="checkingName" column="checking_name"/>
|
||
|
<result property="type" column="type"/>
|
||
|
<result property="category" column="category"/>
|
||
|
<result property="dutyHolderName" column="duty_holder_name"/>
|
||
|
<result property="dutyHolderId" column="duty_holder_id"/>
|
||
|
<result property="dikeCode" column="dike_code"/>
|
||
|
<result property="dikeName" column="dike_name"/>
|
||
|
<result property="startDate" column="start_date"/>
|
||
|
<result property="endDate" column="end_date"/>
|
||
|
<result property="content" column="content"/>
|
||
|
<result property="position" column="position"/>
|
||
|
<result property="problemLevel" column="problem_level"/>
|
||
|
<result property="doc" column="doc"/>
|
||
|
</resultMap>
|
||
|
<select id="page" resultMap="pageMap">
|
||
|
select
|
||
|
qx.id ,
|
||
|
qx.checking_id ,
|
||
|
qx.record_id ,
|
||
|
qx.parts ,
|
||
|
qx.status ,
|
||
|
qx.checking_name ,
|
||
|
qx.type ,
|
||
|
qx.category ,
|
||
|
qx.duty_holder_name ,
|
||
|
qx.duty_holder_id ,
|
||
|
qx.dike_code ,
|
||
|
qx.dike_name ,
|
||
|
qx.start_date ,
|
||
|
qx.end_date ,
|
||
|
qx.content ,
|
||
|
qx.position ,
|
||
|
qx.problem_level ,
|
||
|
qx.doc
|
||
|
from bs_sgc_dw_xcqx qx
|
||
|
left join att_dike_base base on base.dike_code=qx.dike_code
|
||
|
where 1=1
|
||
|
and qx.status != '1'
|
||
|
<if test="data.startDate != null">
|
||
|
and qx.start_date >= #{data.startDate}
|
||
|
</if>
|
||
|
<if test="data.endDate != null">
|
||
|
and qx.end_date <= #{data.endDate}
|
||
|
</if>
|
||
|
<if test="data.adcdQx != null and data.adcdQx != ''">
|
||
|
and base.adcd like concat(#{data.adcdQx}, '%')
|
||
|
</if>
|
||
|
<if test="data.category != null and data.category != ''">
|
||
|
and qx.category = #{data.category}
|
||
|
</if>
|
||
|
<if test="data.dikeCode != null and data.dikeCode != ''">
|
||
|
and qx.dike_code = #{data.dikeCode}
|
||
|
</if>
|
||
|
<if test="data.status != null and data.status != ''">
|
||
|
and qx.status = #{data.status}
|
||
|
</if>
|
||
|
<if test="data.type != null and data.type != ''">
|
||
|
and qx.type = #{data.type}
|
||
|
</if>
|
||
|
<if test="data.name != null and data.name != ''">
|
||
|
and qx.checking_name like concat('%',#{data.name}, '%')
|
||
|
</if>
|
||
|
<if test="data.problemLevel != null and data.problemLevel != ''">
|
||
|
and qx.problem_level = #{data.problemLevel}
|
||
|
</if>
|
||
|
<if test="data.recordId != null and data.recordId != ''">
|
||
|
and qx.record_id = #{data.recordId}
|
||
|
</if>
|
||
|
<if test="data.dutyHolder != null and data.dutyHolder != ''">
|
||
|
and qx.duty_holder_name like concat('%',#{data.dutyHolder}, '%')
|
||
|
</if>
|
||
|
order by qx.create_time desc
|
||
|
</select>
|
||
|
|
||
|
</mapper>
|