51 changed files with 1037 additions and 590 deletions
@ -0,0 +1,32 @@ |
|||
package com.kms.yxgh.common.dto; |
|||
|
|||
import com.kms.common.utils.UserUtils; |
|||
|
|||
public interface IAdcdDeptRole { |
|||
|
|||
String getAdcd(); |
|||
|
|||
default String getAdcdQx() { |
|||
String userAdcd = UserUtils.getAdcdDeptRole(); |
|||
String adcd = getAdcd(); |
|||
if (adcd == null) { |
|||
adcd = userAdcd; |
|||
} |
|||
if (adcd == null) { |
|||
return null; |
|||
} |
|||
int index = adcd.length() - 1; |
|||
while (index >= 0 && adcd.charAt(index) == '0') { |
|||
index--; |
|||
} |
|||
if (index < 0) { |
|||
return adcd; |
|||
} |
|||
if (index > 5) { |
|||
return adcd.replaceAll("000(000)?$", ""); |
|||
} else { |
|||
return adcd.substring(0, 6).replaceAll("00(00)?$", ""); |
|||
} |
|||
} |
|||
|
|||
} |
@ -0,0 +1,49 @@ |
|||
<?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.df.mapper.DfCheckingV2Mapper"> |
|||
|
|||
<resultMap id="pageMap" type="com.kms.yxgh.df.dto.v2.DfV2CheckingDto"> |
|||
<id property="id" column="id"/> |
|||
<result property="dikeCode" column="dike_code"/> |
|||
<result property="dikeName" column="dike_name"/> |
|||
<result property="type" column="type"/> |
|||
<result property="name" column="name"/> |
|||
<result property="createTime" column="create_time"/> |
|||
<result property="category" column="category"/> |
|||
<result property="createUid" column="create_uid"/> |
|||
<result property="createName" column="create_name"/> |
|||
</resultMap> |
|||
<select id="page" resultMap="pageMap"> |
|||
select |
|||
xmgl.id, |
|||
xmgl.dike_code , |
|||
xmgl.dike_name , |
|||
xmgl.type, |
|||
xmgl.name, |
|||
xmgl.create_time, |
|||
xmgl.category , |
|||
xmgl.create_uid, |
|||
xmgl.create_name |
|||
from |
|||
bs_sgc_df_xmgl xmgl |
|||
left join att_dike_base base on base.dike_code=xmgl.dike_code |
|||
where 1=1 |
|||
<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 xmgl.category = #{data.category} |
|||
</if> |
|||
<if test="data.dikeCode != null and data.dikeCode != ''"> |
|||
and xmgl.dike_code = #{data.dikeCode} |
|||
</if> |
|||
<if test="data.type != null and data.type != ''"> |
|||
and xmgl.type = #{data.type} |
|||
</if> |
|||
<if test="data.name != null and data.name != ''"> |
|||
and xmgl.name like concat('%',#{data.name}, '%') |
|||
</if> |
|||
order by xmgl.create_time desc |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,85 @@ |
|||
<?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.df.mapper.DfCheckingProblemV2Mapper"> |
|||
|
|||
<resultMap id="pageMap" type="com.kms.yxgh.df.dto.v2.DfProblemV2Dto"> |
|||
<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_df_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> |
@ -0,0 +1,68 @@ |
|||
<?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.df.mapper.DfCheckingRecordV2Mapper"> |
|||
|
|||
<resultMap id="pageMap" type="com.kms.yxgh.df.dto.v2.DfRecordDetailV2Dto"> |
|||
<id property="id" column="id"/> |
|||
<result property="checkingId" column="checking_id"/> |
|||
<result property="checkingName" column="checking_name"/> |
|||
<result property="dikeCode" column="dike_code"/> |
|||
<result property="dikeName" column="dike_name"/> |
|||
<result property="status" column="status"/> |
|||
<result property="type" column="type"/> |
|||
<result property="category" column="category"/> |
|||
<result property="startDate" column="start_date"/> |
|||
<result property="endDate" column="end_date"/> |
|||
<result property="scope" column="scope"/> |
|||
<result property="createUid" column="create_uid"/> |
|||
<result property="createName" column="create_name"/> |
|||
</resultMap> |
|||
<select id="page" resultMap="pageMap"> |
|||
select |
|||
jl.id , |
|||
jl.checking_id , |
|||
jl.checking_name , |
|||
jl.dike_code , |
|||
jl.dike_name , |
|||
jl.status , |
|||
jl.type , |
|||
jl.category , |
|||
jl.start_date , |
|||
jl.end_date , |
|||
jl.scope , |
|||
jl.create_uid , |
|||
jl.create_name |
|||
from bs_sgc_df_xsxcjl jl |
|||
left join att_dike_base base on base.dike_code=jl.dike_code |
|||
where 1=1 |
|||
<if test="data.startDate != null"> |
|||
and jl.start_date >= #{data.startDate} |
|||
</if> |
|||
<if test="data.endDate != null"> |
|||
and jl.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 jl.category = #{data.category} |
|||
</if> |
|||
<if test="data.dikeCode != null and data.dikeCode != ''"> |
|||
and jl.dike_code = #{data.dikeCode} |
|||
</if> |
|||
<if test="data.status != null and data.status != ''"> |
|||
and jl.status = #{data.status} |
|||
</if> |
|||
<if test="data.type != null and data.type != ''"> |
|||
and jl.type = #{data.type} |
|||
</if> |
|||
<if test="data.name != null and data.name != ''"> |
|||
and jl.checking_name like concat('%',#{data.name}, '%') |
|||
</if> |
|||
<if test="data.dutyHolder != null and data.dutyHolder != ''"> |
|||
and jl.duty_holder_name like concat('%',#{data.dutyHolder}, '%') |
|||
</if> |
|||
order by jl.create_time desc |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,49 @@ |
|||
<?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.DwCheckingV2Mapper"> |
|||
|
|||
<resultMap id="pageMap" type="com.kms.yxgh.dw.dto.DwV2CheckingDto"> |
|||
<id property="id" column="id"/> |
|||
<result property="dikeCode" column="dike_code"/> |
|||
<result property="dikeName" column="dike_name"/> |
|||
<result property="type" column="type"/> |
|||
<result property="name" column="name"/> |
|||
<result property="createTime" column="create_time"/> |
|||
<result property="category" column="category"/> |
|||
<result property="createUid" column="create_uid"/> |
|||
<result property="createName" column="create_name"/> |
|||
</resultMap> |
|||
<select id="page" resultMap="pageMap"> |
|||
select |
|||
xmgl.id, |
|||
xmgl.dike_code , |
|||
xmgl.dike_name , |
|||
xmgl.type , |
|||
xmgl.name , |
|||
xmgl.create_time , |
|||
xmgl.category , |
|||
xmgl.create_uid , |
|||
xmgl.create_name |
|||
from |
|||
bs_sgc_dw_xmgl xmgl |
|||
left join att_dike_base base on base.dike_code=xmgl.dike_code |
|||
where 1=1 |
|||
<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 xmgl.category = #{data.category} |
|||
</if> |
|||
<if test="data.dikeCode != null and data.dikeCode != ''"> |
|||
and xmgl.dike_code = #{data.dikeCode} |
|||
</if> |
|||
<if test="data.type != null and data.type != ''"> |
|||
and xmgl.type = #{data.type} |
|||
</if> |
|||
<if test="data.name != null and data.name != ''"> |
|||
and xmgl.name like concat('%',#{data.name}, '%') |
|||
</if> |
|||
order by xmgl.create_time desc |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,85 @@ |
|||
<?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> |
@ -0,0 +1,68 @@ |
|||
<?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.DwCheckingRecordV2Mapper"> |
|||
|
|||
<resultMap id="pageMap" type="com.kms.yxgh.dw.dto.DwRecordDetailV2Dto"> |
|||
<id property="id" column="id"/> |
|||
<result property="checkingId" column="checking_id"/> |
|||
<result property="checkingName" column="checking_name"/> |
|||
<result property="dikeCode" column="dike_code"/> |
|||
<result property="dikeName" column="dike_name"/> |
|||
<result property="status" column="status"/> |
|||
<result property="type" column="type"/> |
|||
<result property="category" column="category"/> |
|||
<result property="startDate" column="start_date"/> |
|||
<result property="endDate" column="end_date"/> |
|||
<result property="scope" column="scope"/> |
|||
<result property="createUid" column="create_uid"/> |
|||
<result property="createName" column="create_name"/> |
|||
</resultMap> |
|||
<select id="page" resultMap="pageMap"> |
|||
select |
|||
jl.id , |
|||
jl.checking_id , |
|||
jl.checking_name , |
|||
jl.dike_code , |
|||
jl.dike_name , |
|||
jl.status , |
|||
jl.type , |
|||
jl.category , |
|||
jl.start_date , |
|||
jl.end_date , |
|||
jl.scope , |
|||
jl.create_uid , |
|||
jl.create_name |
|||
from bs_sgc_dw_xsxcjl jl |
|||
left join att_dike_base base on base.dike_code=jl.dike_code |
|||
where 1=1 |
|||
<if test="data.startDate != null"> |
|||
and jl.start_date >= #{data.startDate} |
|||
</if> |
|||
<if test="data.endDate != null"> |
|||
and jl.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 jl.category = #{data.category} |
|||
</if> |
|||
<if test="data.dikeCode != null and data.dikeCode != ''"> |
|||
and jl.dike_code = #{data.dikeCode} |
|||
</if> |
|||
<if test="data.status != null and data.status != ''"> |
|||
and jl.status = #{data.status} |
|||
</if> |
|||
<if test="data.type != null and data.type != ''"> |
|||
and jl.type = #{data.type} |
|||
</if> |
|||
<if test="data.name != null and data.name != ''"> |
|||
and jl.checking_name like concat('%',#{data.name}, '%') |
|||
</if> |
|||
<if test="data.dutyHolder != null and data.dutyHolder != ''"> |
|||
and jl.duty_holder_name like concat('%',#{data.dutyHolder}, '%') |
|||
</if> |
|||
order by jl.create_time desc |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,49 @@ |
|||
<?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.sz.mapper.SzCheckingV2Mapper"> |
|||
|
|||
<resultMap id="pageMap" type="com.kms.yxgh.sz.dto.v2.SzV2CheckingDto"> |
|||
<id property="id" column="id"/> |
|||
<result property="wagaCode" column="waga_code"/> |
|||
<result property="wagaName" column="waga_name"/> |
|||
<result property="type" column="type"/> |
|||
<result property="name" column="name"/> |
|||
<result property="createTime" column="create_time"/> |
|||
<result property="category" column="category"/> |
|||
<result property="createUid" column="create_uid"/> |
|||
<result property="createName" column="create_name"/> |
|||
</resultMap> |
|||
<select id="page" resultMap="pageMap"> |
|||
select |
|||
xmgl.id, |
|||
xmgl.waga_code , |
|||
xmgl.waga_name , |
|||
xmgl.type , |
|||
xmgl.name , |
|||
xmgl.create_time , |
|||
xmgl.category , |
|||
xmgl.create_uid , |
|||
xmgl.create_name |
|||
from |
|||
bs_sgc_sz_xmgl xmgl |
|||
left join att_waga_base base on base.waga_code=xmgl.waga_code |
|||
where 1=1 |
|||
<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 xmgl.category = #{data.category} |
|||
</if> |
|||
<if test="data.wagaCode != null and data.wagaCode != ''"> |
|||
and xmgl.waga_code = #{data.wagaCode} |
|||
</if> |
|||
<if test="data.type != null and data.type != ''"> |
|||
and xmgl.type = #{data.type} |
|||
</if> |
|||
<if test="data.name != null and data.name != ''"> |
|||
and xmgl.name like concat('%',#{data.name}, '%') |
|||
</if> |
|||
order by xmgl.create_time desc |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,85 @@ |
|||
<?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.sz.mapper.SzCheckingProblemV2Mapper"> |
|||
|
|||
<resultMap id="pageMap" type="com.kms.yxgh.sz.dto.v2.SzProblemV2Dto"> |
|||
<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="wagaCode" column="waga_code"/> |
|||
<result property="wagaName" column="waga_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.waga_code , |
|||
qx.waga_name , |
|||
qx.start_date , |
|||
qx.end_date , |
|||
qx.content , |
|||
qx.position , |
|||
qx.problem_level , |
|||
qx.doc |
|||
from bs_sgc_sz_xcqx qx |
|||
left join att_waga_base base on base.waga_code=qx.waga_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.wagaCode != null and data.wagaCode != ''"> |
|||
and qx.waga_code = #{data.wagaCode} |
|||
</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> |
@ -0,0 +1,68 @@ |
|||
<?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.sz.mapper.SzCheckingRecordV2Mapper"> |
|||
|
|||
<resultMap id="pageMap" type="com.kms.yxgh.sz.dto.v2.SzRecordDetailV2Dto"> |
|||
<id property="id" column="id"/> |
|||
<result property="checkingId" column="checking_id"/> |
|||
<result property="checkingName" column="checking_name"/> |
|||
<result property="wagaCode" column="waga_code"/> |
|||
<result property="wagaName" column="waga_name"/> |
|||
<result property="status" column="status"/> |
|||
<result property="type" column="type"/> |
|||
<result property="category" column="category"/> |
|||
<result property="startDate" column="start_date"/> |
|||
<result property="endDate" column="end_date"/> |
|||
<result property="scope" column="scope"/> |
|||
<result property="createUid" column="create_uid"/> |
|||
<result property="createName" column="create_name"/> |
|||
</resultMap> |
|||
<select id="page" resultMap="pageMap"> |
|||
select |
|||
jl.id , |
|||
jl.checking_id , |
|||
jl.checking_name , |
|||
jl.waga_code , |
|||
jl.waga_name , |
|||
jl.status , |
|||
jl.type , |
|||
jl.category , |
|||
jl.start_date , |
|||
jl.end_date , |
|||
jl.scope , |
|||
jl.create_uid , |
|||
jl.create_name |
|||
from bs_sgc_sz_xsxcjl jl |
|||
left join att_waga_base base on base.waga_code=jl.waga_code |
|||
where 1=1 |
|||
<if test="data.startDate != null"> |
|||
and jl.start_date >= #{data.startDate} |
|||
</if> |
|||
<if test="data.endDate != null"> |
|||
and jl.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 jl.category = #{data.category} |
|||
</if> |
|||
<if test="data.wagaCode != null and data.wagaCode != ''"> |
|||
and jl.waga_code = #{data.wagaCode} |
|||
</if> |
|||
<if test="data.status != null and data.status != ''"> |
|||
and jl.status = #{data.status} |
|||
</if> |
|||
<if test="data.type != null and data.type != ''"> |
|||
and jl.type = #{data.type} |
|||
</if> |
|||
<if test="data.name != null and data.name != ''"> |
|||
and jl.checking_name like concat('%',#{data.name}, '%') |
|||
</if> |
|||
<if test="data.dutyHolder != null and data.dutyHolder != ''"> |
|||
and jl.duty_holder_name like concat('%',#{data.dutyHolder}, '%') |
|||
</if> |
|||
order by jl.create_time desc |
|||
</select> |
|||
|
|||
</mapper> |
Loading…
Reference in new issue