|
@@ -64,4 +64,108 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectPortalZwywLrSlhgzById" parameterType="String" resultMap="ZwywLrSlhgzResult">
|
|
|
+ <include refid="selectZwywLrSlhgzVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectPortalZwywLrSlhgzList" parameterType="ZwywLrSlhgz" resultMap="ZwywLrSlhgzResult">
|
|
|
+ <include refid="selectZwywLrSlhgzVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="tbrXm != null and tbrXm != ''"> and tbr_xm = #{tbrSjhm} </if>
|
|
|
+ <if test="tbrSjhm != null and tbrSjhm != ''"> and tbr_sjhm = #{tbrSjhm}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertPortalZwywLrSlhgz" parameterType="ZwywLrSlhgz">
|
|
|
+ insert into zwyw_lr_slhgz
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="xm != null">xm,</if>
|
|
|
+ <if test="lxdh != null">lxdh,</if>
|
|
|
+ <if test="isTsknlr != null">is_tsknlr,</if>
|
|
|
+ <if test="gzzj != null">gzzj,</if>
|
|
|
+ <if test="czbtzjQt != null">czbtzj_qt,</if>
|
|
|
+ <if test="zfdz != null">zfdz,</if>
|
|
|
+ <if test="zfdzName != null">zfdz_name,</if>
|
|
|
+ <if test="xxdz != null">xxdz,</if>
|
|
|
+ <if test="sfdm != null">sfdm,</if>
|
|
|
+ <if test="sfQt != null">sf_qt,</if>
|
|
|
+ <if test="gznr != null">gznr,</if>
|
|
|
+ <if test="gznrQt != null">gznr_qt,</if>
|
|
|
+ <if test="tbrXm != null">tbr_xm,</if>
|
|
|
+ <if test="tbrSjhm != null">tbr_sjhm,</if>
|
|
|
+ <if test="tbrSzqh != null">tbr_szqh,</if>
|
|
|
+ <if test="tbrSzqhName != null">tbr_szqh_name,</if>
|
|
|
+ <if test="xgcl != null">xgcl,</if>
|
|
|
+ create_time_str,
|
|
|
+ create_user_id,
|
|
|
+ create_user_type,create_area_code,
|
|
|
+ create_by,
|
|
|
+ create_unit,
|
|
|
+ create_unit_name
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
+ <if test="xm != null">#{xm},</if>
|
|
|
+ <if test="lxdh != null">#{lxdh},</if>
|
|
|
+ <if test="isTsknlr != null">#{isTsknlr},</if>
|
|
|
+ <if test="gzzj != null">#{gzzj},</if>
|
|
|
+ <if test="czbtzjQt != null">#{czbtzjQt},</if>
|
|
|
+ <if test="zfdz != null">#{zfdz},</if>
|
|
|
+ <if test="zfdzName != null">#{zfdzName},</if>
|
|
|
+ <if test="xxdz != null">#{xxdz},</if>
|
|
|
+ <if test="sfdm != null">#{sfdm},</if>
|
|
|
+ <if test="sfQt != null">#{sfQt},</if>
|
|
|
+ <if test="gznr != null">#{gznr},</if>
|
|
|
+ <if test="gznrQt != null">#{gznrQt},</if>
|
|
|
+ <if test="tbrXm != null">#{tbrXm},</if>
|
|
|
+ <if test="tbrSjhm != null">#{tbrSjhm},</if>
|
|
|
+ <if test="tbrSzqh != null">#{tbrSzqh},</if>
|
|
|
+ <if test="tbrSzqhName != null">#{tbrSzqhName},</if>
|
|
|
+ <if test="xgcl != null">#{xgcl},</if>
|
|
|
+ #{createTimeStr},
|
|
|
+ #{createUserId},
|
|
|
+ #{createUserType},#{createAreaCode},
|
|
|
+ #{createBy},
|
|
|
+ #{createUnit},
|
|
|
+ #{createUnitName}
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+<!-- <update id="updatePortalZwywLrSlhgz" parameterType="ZwywLrSlhgz">-->
|
|
|
+<!-- update zwyw_lr_slhgz-->
|
|
|
+<!-- <trim prefix="SET" suffixOverrides=",">-->
|
|
|
+<!-- <if test="xm != null">xm = #{xm},</if>-->
|
|
|
+<!-- <if test="lxdh != null">lxdh = #{lxdh},</if>-->
|
|
|
+<!-- <if test="isTsknlr != null">is_tsknlr = #{isTsknlr},</if>-->
|
|
|
+<!-- <if test="gzzj != null">gzzj = #{gzzj},</if>-->
|
|
|
+<!-- <if test="czbtzjQt != null">czbtzj_qt = #{czbtzjQt},</if>-->
|
|
|
+<!-- <if test="zfdz != null">zfdz = #{zfdz},</if>-->
|
|
|
+<!-- <if test="zfdzName != null">zfdz_name = #{zfdzName},</if>-->
|
|
|
+<!-- <if test="xxdz != null">xxdz = #{xxdz},</if>-->
|
|
|
+<!-- <if test="sfdm != null">sfdm = #{sfdm},</if>-->
|
|
|
+<!-- <if test="sfQt != null">sf_qt = #{sfQt},</if>-->
|
|
|
+<!-- <if test="gznr != null">gznr = #{gznr},</if>-->
|
|
|
+<!-- <if test="gznrQt != null">gznr_qt = #{gznrQt},</if>-->
|
|
|
+<!-- <if test="tbrXm != null">tbr_xm = #{tbrXm},</if>-->
|
|
|
+<!-- <if test="tbrSjhm != null">tbr_sjhm = #{tbrSjhm},</if>-->
|
|
|
+<!-- <if test="tbrSzqh != null">tbr_szqh = #{tbrSzqh},</if>-->
|
|
|
+<!-- <if test="tbrSzqhName != null">tbr_szqh_name = #{tbrSzqhName},</if>-->
|
|
|
+<!-- <if test="xgcl != null">xgcl = #{xgcl},</if>-->
|
|
|
+<!-- update_time_str = #{updateTimeStr},-->
|
|
|
+<!-- update_user_id = #{updateUserId},-->
|
|
|
+<!-- update_by = #{updateBy},-->
|
|
|
+<!-- update_unit = #{updateUnit},-->
|
|
|
+<!-- update_unit_name = #{updateUnitName}-->
|
|
|
+<!-- </trim>-->
|
|
|
+<!-- where id = #{id}-->
|
|
|
+<!-- </update>-->
|
|
|
+
|
|
|
+<!-- <delete id="deletePortalZwywLrSlhgzByIds" parameterType="java.util.List">-->
|
|
|
+<!-- delete from zwyw_lr_slhgz where id in-->
|
|
|
+<!-- <foreach item="id" collection="list" open="(" separator="," close=")">-->
|
|
|
+<!-- #{id}-->
|
|
|
+<!-- </foreach>-->
|
|
|
+<!-- </delete>-->
|
|
|
</mapper>
|