|
@@ -55,55 +55,56 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFgwXmsbList" parameterType="FgwXmsb" resultMap="FgwXmsbResult">
|
|
|
- <include refid="selectFgwXmsbVo"/>
|
|
|
+ select d.id, d.xmmc, d.xmbh,d.nkgsj,d.jgsj,d.njgsj,d.nttz,d.xmbq,d.is_js,d.is_wt,d.wt_type, d.xmdw, d.qtzrdw, d.qtsld, d.gmnr, d.jhkgsj, d.xmztz, d.sjbz, d.sczbj, d.zxz, d.ppp, d.rz, d.ndjh, d.sjbzzjqd, d.rzqd, d.dq, d.jsdw, d.js_dept_id, d.dept_id,d.dept_name, d.user_id, d.kgsj, d.ntsj, d.ntxmtc, d.type, d.progress, d.status, d.create_by, d.create_time, d.update_by, d.update_time, d.remark,d.psnr from fgw_xmsb d
|
|
|
+
|
|
|
<where>
|
|
|
|
|
|
<if test="idList != null and idList.size() > 0">
|
|
|
- and id in
|
|
|
+ and d.id in
|
|
|
<foreach collection="idList" item="id" open="(" close=")" separator="," >
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
|
|
|
- <if test="xmmc != null and xmmc != ''"> and xmmc = #{xmmc}</if>
|
|
|
- <if test="xmbh != null and xmbh != ''"> and xmbh = #{xmbh}</if>
|
|
|
- <if test="xmdw != null and xmdw != ''"> and xmdw = #{xmdw}</if>
|
|
|
- <if test="qtzrdw != null and qtzrdw != ''"> and qtzrdw = #{qtzrdw}</if>
|
|
|
- <if test="qtsld != null and qtsld != ''"> and qtsld = #{qtsld}</if>
|
|
|
- <if test="gmnr != null and gmnr != ''"> and gmnr = #{gmnr}</if>
|
|
|
- <if test="jhkgsj != null "> and jhkgsj = #{jhkgsj}</if>
|
|
|
- <if test="xmztz != null and xmztz != ''"> and xmztz = #{xmztz}</if>
|
|
|
- <if test="sjbz != null and sjbz != ''"> and sjbz = #{sjbz}</if>
|
|
|
- <if test="sczbj != null and sczbj != ''"> and sczbj = #{sczbj}</if>
|
|
|
- <if test="zxz != null and zxz != ''"> and zxz = #{zxz}</if>
|
|
|
- <if test="ppp != null and ppp != ''"> and ppp = #{ppp}</if>
|
|
|
- <if test="rz != null and rz != ''"> and rz = #{rz}</if>
|
|
|
- <if test="ndjh != null and ndjh != ''"> and ndjh = #{ndjh}</if>
|
|
|
- <if test="sjbzzjqd != null and sjbzzjqd != ''"> and sjbzzjqd = #{sjbzzjqd}</if>
|
|
|
- <if test="rzqd != null and rzqd != ''"> and rzqd = #{rzqd}</if>
|
|
|
- <if test="dq != null and dq != ''"> and dq = #{dq}</if>
|
|
|
- <if test="jsdw != null and jsdw != ''"> and jsdw = #{jsdw}</if>
|
|
|
- <if test="jsDeptId != null "> and js_dept_id = #{jsDeptId}</if>
|
|
|
- <if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
- <if test="deptName != null "> and dept_name = #{deptName}</if>
|
|
|
- <if test="userId != null "> and user_id = #{userId}</if>
|
|
|
- <if test="kgsj != null "> and kgsj = #{kgsj}</if>
|
|
|
- <if test="ntsj != null "> and ntsj = #{ntsj}</if>
|
|
|
- <if test="ntxmtc != null and ntxmtc != ''"> and ntxmtc = #{ntxmtc}</if>
|
|
|
- <if test="type != null and type != ''"> and type = #{type}</if>
|
|
|
- <if test="progress != null and progress != ''"> and progress = #{progress}</if>
|
|
|
- <if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
- <if test="isWt != null and isWt != ''"> and is_wt = #{isWt}</if>
|
|
|
- <if test="wtType != null and wtType != ''"> and wt_type = #{wtType}</if>
|
|
|
+ <if test="xmmc != null and xmmc != ''"> and d.xmmc = #{xmmc}</if>
|
|
|
+ <if test="xmbh != null and xmbh != ''"> and d.xmbh = #{xmbh}</if>
|
|
|
+ <if test="xmdw != null and xmdw != ''"> and d.xmdw = #{xmdw}</if>
|
|
|
+ <if test="qtzrdw != null and qtzrdw != ''"> and d.qtzrdw = #{qtzrdw}</if>
|
|
|
+ <if test="qtsld != null and qtsld != ''"> and d.qtsld = #{qtsld}</if>
|
|
|
+ <if test="gmnr != null and gmnr != ''"> and d.gmnr = #{gmnr}</if>
|
|
|
+ <if test="jhkgsj != null "> and d.jhkgsj = #{jhkgsj}</if>
|
|
|
+ <if test="xmztz != null and xmztz != ''"> and d.xmztz = #{xmztz}</if>
|
|
|
+ <if test="sjbz != null and sjbz != ''"> and d.sjbz = #{sjbz}</if>
|
|
|
+ <if test="sczbj != null and sczbj != ''"> and d.sczbj = #{sczbj}</if>
|
|
|
+ <if test="zxz != null and zxz != ''"> and d.zxz = #{zxz}</if>
|
|
|
+ <if test="ppp != null and ppp != ''"> and d.ppp = #{ppp}</if>
|
|
|
+ <if test="rz != null and rz != ''"> and d.rz = #{rz}</if>
|
|
|
+ <if test="ndjh != null and ndjh != ''"> and d.ndjh = #{ndjh}</if>
|
|
|
+ <if test="sjbzzjqd != null and sjbzzjqd != ''"> and d.sjbzzjqd = #{sjbzzjqd}</if>
|
|
|
+ <if test="rzqd != null and rzqd != ''"> and d.rzqd = #{rzqd}</if>
|
|
|
+ <if test="dq != null and dq != ''"> and d.dq = #{dq}</if>
|
|
|
+ <if test="jsdw != null and jsdw != ''"> and d.jsdw = #{jsdw}</if>
|
|
|
+ <if test="jsDeptId != null "> and d.js_dept_id = #{jsDeptId}</if>
|
|
|
+ <if test="deptId != null "> and d.dept_id = #{deptId}</if>
|
|
|
+ <if test="deptName != null "> and d.dept_name = #{deptName}</if>
|
|
|
+ <if test="userId != null "> and d.user_id = #{userId}</if>
|
|
|
+ <if test="kgsj != null "> and d.kgsj = #{kgsj}</if>
|
|
|
+ <if test="ntsj != null "> and d.ntsj = #{ntsj}</if>
|
|
|
+ <if test="ntxmtc != null and ntxmtc != ''"> and d.ntxmtc = #{ntxmtc}</if>
|
|
|
+ <if test="type != null and type != ''"> and d.type = #{type}</if>
|
|
|
+ <if test="progress != null and progress != ''"> and d.progress = #{progress}</if>
|
|
|
+ <if test="status != null and status != ''"> and d.status = #{status}</if>
|
|
|
+ <if test="isWt != null and isWt != ''"> and d.is_wt = #{isWt}</if>
|
|
|
+ <if test="wtType != null and wtType != ''"> and d.wt_type = #{wtType}</if>
|
|
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
- AND date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
|
|
+ AND date_format(d.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
|
|
</if>
|
|
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
- AND date_format(create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d')
|
|
|
+ AND date_format(d.create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d')
|
|
|
</if>
|
|
|
</where>
|
|
|
${params.dataScope}
|
|
|
- order by create_time desc
|
|
|
+ order by d.create_time desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectFgwXmsbById" parameterType="Long" resultMap="FgwXmsbResult">
|