|
@@ -138,6 +138,46 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</where>
|
|
|
${params.dataScope}
|
|
|
</select>
|
|
|
+ <select id="selectFgwXmsbListAll" resultMap="FgwXmsbResult">
|
|
|
+ <include refid="selectFgwXmsbVo"/>
|
|
|
+ <where>
|
|
|
+ <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="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
+ AND date_format(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')
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ ${params.dataScope}
|
|
|
+ </select>
|
|
|
|
|
|
<insert id="insertFgwXmsb" parameterType="FgwXmsb" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into fgw_xmsb
|
|
@@ -259,6 +299,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update fgw_xmsb
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
+ <if test="type != null">type = #{type},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|