|
@@ -40,10 +40,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="remark" column="remark" />
|
|
|
<result property="psnr" column="psnr"/>
|
|
|
+ <result property="nkgsj" column="nkgsj"/>
|
|
|
+ <result property="jgsj" column="jgsj"/>
|
|
|
+ <result property="njgsj" column="njgsj"/>
|
|
|
+ <result property="nttz" column="nttz"/>
|
|
|
+ <result property="xmbq" column="xmbq"/>
|
|
|
+ <result property="isJs" column="is_js"/>
|
|
|
+ <result property="isWt" column="is_wt"/>
|
|
|
+ <result property="wtType" column="wt_type"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFgwXmsbVo">
|
|
|
- select id, xmmc, xmbh, xmdw, qtzrdw, qtsld, gmnr, jhkgsj, xmztz, sjbz, sczbj, zxz, ppp, rz, ndjh, sjbzzjqd, rzqd, dq, jsdw, js_dept_id, dept_id,dept_name, user_id, kgsj, ntsj, ntxmtc, type, progress, status, create_by, create_time, update_by, update_time, remark,psnr from fgw_xmsb
|
|
|
+ select id, xmmc, xmbh,nkgsj,jgsj,njgsj,nttz,xmbq,is_js,is_wt,wt_type, xmdw, qtzrdw, qtsld, gmnr, jhkgsj, xmztz, sjbz, sczbj, zxz, ppp, rz, ndjh, sjbzzjqd, rzqd, dq, jsdw, js_dept_id, dept_id,dept_name, user_id, kgsj, ntsj, ntxmtc, type, progress, status, create_by, create_time, update_by, update_time, remark,psnr from fgw_xmsb
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFgwXmsbList" parameterType="FgwXmsb" resultMap="FgwXmsbResult">
|
|
@@ -85,6 +93,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
AND date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
|
|
</if>
|
|
@@ -138,6 +148,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
AND date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
|
|
</if>
|
|
@@ -150,6 +162,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectFgwXmsbListAll" resultMap="FgwXmsbResult">
|
|
|
<include refid="selectFgwXmsbVo"/>
|
|
|
<where>
|
|
|
+ <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 xmmc = #{xmmc}</if>
|
|
|
<if test="xmbh != null and xmbh != ''"> and xmbh = #{xmbh}</if>
|
|
|
<if test="xmdw != null and xmdw != ''"> and xmdw = #{xmdw}</if>
|
|
@@ -225,6 +239,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
<if test="psnr != null">psnr,</if>
|
|
|
+ <if test="nkgsj != null">nkgsj,</if>
|
|
|
+ <if test="jgsj != null">jgsj,</if>
|
|
|
+ <if test="njgsj != null">njgsj,</if>
|
|
|
+ <if test="nttz != null">nttz,</if>
|
|
|
+ <if test="xmbq != null">xmbq,</if>
|
|
|
+ <if test="isJs != null">is_js,</if>
|
|
|
+ <if test="isWt != null and isWt != ''">is_wt,</if>
|
|
|
+ <if test="wtType != null and wtType != ''">wt_type,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="xmmc != null">#{xmmc},</if>
|
|
@@ -261,6 +283,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
<if test="psnr != null">#{psnr},</if>
|
|
|
+ <if test="nkgsj != null">#{nkgsj},</if>
|
|
|
+ <if test="jgsj != null">#{jgsj},</if>
|
|
|
+ <if test="njgsj != null">#{njgsj},</if>
|
|
|
+ <if test="nttz != null">#{nttz},</if>
|
|
|
+ <if test="xmbq != null">#{xmbq},</if>
|
|
|
+ <if test="isJs != null">#{isJs},</if>
|
|
|
+ <if test="isWt != null and isWt != ''">#{isWt},</if>
|
|
|
+ <if test="wtType != null and wtType != ''">#{wtType},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -301,6 +331,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="psnr != null">psnr = #{psnr},</if>
|
|
|
+ <if test="nkgsj != null">nkgsj = #{nkgsj},</if>
|
|
|
+ <if test="jgsj != null">jgsj = #{jgsj},</if>
|
|
|
+ <if test="njgsj != null">njgsj = #{njgsj},</if>
|
|
|
+ <if test="nttz != null">nttz = #{nttz},</if>
|
|
|
+ <if test="xmbq != null">xmbq = #{xmbq},</if>
|
|
|
+ <if test="is_js != null">is_js = #{isJs},</if>
|
|
|
+ <if test="isWt != null and isWt != ''">is_wt = #{isWt},</if>
|
|
|
+ <if test="wtType != null and wtType != ''">is_js = #{wtType},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|