|
@@ -1,57 +1,57 @@
|
|
|
<?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">
|
|
|
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.ruoyi.system.mapper.projectV2.ZsyzSbbzbMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="ZsyzSbbzb" id="ZsyzSbbzbResult">
|
|
|
- <result property="id" column="id" />
|
|
|
- <result property="sbdw" column="sbdw" />
|
|
|
- <result property="tbrq" column="tbrq" />
|
|
|
- <result property="zszxfzr" column="zszxfzr" />
|
|
|
- <result property="xmbh" column="xmbh" />
|
|
|
- <result property="xmxsmc" column="xmxsmc" />
|
|
|
- <result property="sfwlhxxxm" column="sfwlhxxxm" />
|
|
|
- <result property="yzdqId" column="yzdq_id" />
|
|
|
- <result property="yzdqName" column="yzdq_name" />
|
|
|
- <result property="yzssName" column="yzss_name" />
|
|
|
- <result property="ntze" column="ntze" />
|
|
|
- <result property="cylxId" column="cylx_id" />
|
|
|
- <result property="cylxName" column="cylx_name" />
|
|
|
- <result property="xmlb" column="xmlb" />
|
|
|
- <result property="tzlb" column="tzlb" />
|
|
|
- <result property="nlhd" column="nlhd" />
|
|
|
- <result property="czpt" column="czpt" />
|
|
|
- <result property="tzzt" column="tzzt" />
|
|
|
- <result property="xmjz" column="xmjz" />
|
|
|
- <result property="gtzzrsfzhm" column="gtzzrsfzhm" />
|
|
|
- <result property="qytzrxyzdm" column="qytzrxyzdm" />
|
|
|
- <result property="qybj" column="qybj" />
|
|
|
- <result property="tzfjj" column="tzfjj" />
|
|
|
- <result property="sndxse" column="sndxse" />
|
|
|
- <result property="sndnse" column="sndnse" />
|
|
|
- <result property="tzrxm" column="tzrxm" />
|
|
|
- <result property="tzrzw" column="tzrzw" />
|
|
|
- <result property="tzrdh" column="tzrdh" />
|
|
|
- <result property="xmjj" column="xmjj" />
|
|
|
- <result property="name" column="name" />
|
|
|
- <result property="strq" column="strq" />
|
|
|
- <result property="phone" column="phone" />
|
|
|
- <result property="zw" column="zw" />
|
|
|
- <result property="userId" column="user_id" />
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
- <result property="type" column="type" />
|
|
|
- <result property="progress" column="progress" />
|
|
|
- <result property="deptId" column="dept_id" />
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
- <result property="isDel" column="is_del" />
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
- <result property="remark" column="remark" />
|
|
|
- <result property="cjdId" column="cjd_id" />
|
|
|
- <result property="cjdName" column="cjd_name" />
|
|
|
- <result property="isMeet" column="is_meet" />
|
|
|
- <result property="meetRemark" column="meet_remark" />
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="sbdw" column="sbdw"/>
|
|
|
+ <result property="tbrq" column="tbrq"/>
|
|
|
+ <result property="zszxfzr" column="zszxfzr"/>
|
|
|
+ <result property="xmbh" column="xmbh"/>
|
|
|
+ <result property="xmxsmc" column="xmxsmc"/>
|
|
|
+ <result property="sfwlhxxxm" column="sfwlhxxxm"/>
|
|
|
+ <result property="yzdqId" column="yzdq_id"/>
|
|
|
+ <result property="yzdqName" column="yzdq_name"/>
|
|
|
+ <result property="yzssName" column="yzss_name"/>
|
|
|
+ <result property="ntze" column="ntze"/>
|
|
|
+ <result property="cylxId" column="cylx_id"/>
|
|
|
+ <result property="cylxName" column="cylx_name"/>
|
|
|
+ <result property="xmlb" column="xmlb"/>
|
|
|
+ <result property="tzlb" column="tzlb"/>
|
|
|
+ <result property="nlhd" column="nlhd"/>
|
|
|
+ <result property="czpt" column="czpt"/>
|
|
|
+ <result property="tzzt" column="tzzt"/>
|
|
|
+ <result property="xmjz" column="xmjz"/>
|
|
|
+ <result property="gtzzrsfzhm" column="gtzzrsfzhm"/>
|
|
|
+ <result property="qytzrxyzdm" column="qytzrxyzdm"/>
|
|
|
+ <result property="qybj" column="qybj"/>
|
|
|
+ <result property="tzfjj" column="tzfjj"/>
|
|
|
+ <result property="sndxse" column="sndxse"/>
|
|
|
+ <result property="sndnse" column="sndnse"/>
|
|
|
+ <result property="tzrxm" column="tzrxm"/>
|
|
|
+ <result property="tzrzw" column="tzrzw"/>
|
|
|
+ <result property="tzrdh" column="tzrdh"/>
|
|
|
+ <result property="xmjj" column="xmjj"/>
|
|
|
+ <result property="name" column="name"/>
|
|
|
+ <result property="strq" column="strq"/>
|
|
|
+ <result property="phone" column="phone"/>
|
|
|
+ <result property="zw" column="zw"/>
|
|
|
+ <result property="userId" column="user_id"/>
|
|
|
+ <result property="createBy" column="create_by"/>
|
|
|
+ <result property="type" column="type"/>
|
|
|
+ <result property="progress" column="progress"/>
|
|
|
+ <result property="deptId" column="dept_id"/>
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
+ <result property="updateBy" column="update_by"/>
|
|
|
+ <result property="isDel" column="is_del"/>
|
|
|
+ <result property="updateTime" column="update_time"/>
|
|
|
+ <result property="remark" column="remark"/>
|
|
|
+ <result property="cjdId" column="cjd_id"/>
|
|
|
+ <result property="cjdName" column="cjd_name"/>
|
|
|
+ <result property="isMeet" column="is_meet"/>
|
|
|
+ <result property="meetRemark" column="meet_remark"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectZsyzSbbzbVo">
|
|
@@ -60,56 +60,57 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectZsyzSbbzbList" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
|
|
|
<include refid="selectZsyzSbbzbVo"/>
|
|
|
- <where>
|
|
|
- <if test="sbdw != null and sbdw != ''"> and sbdw = #{sbdw}</if>
|
|
|
- <if test="tbrq != null "> and tbrq = #{tbrq}</if>
|
|
|
- <if test="zszxfzr != null and zszxfzr != ''"> and zszxfzr = #{zszxfzr}</if>
|
|
|
- <if test="xmbh != null and xmbh != ''"> and xmbh = #{xmbh}</if>
|
|
|
- <if test="xmxsmc != null and xmxsmc != ''"> and xmxsmc = #{xmxsmc}</if>
|
|
|
- <if test="sfwlhxxxm != null and sfwlhxxxm != ''"> and sfwlhxxxm = #{sfwlhxxxm}</if>
|
|
|
- <if test="yzdqId != null and yzdqId != ''"> and yzdq_id = #{yzdqId}</if>
|
|
|
- <if test="yzdqName != null and yzdqName != ''"> and yzdq_name like concat('%', #{yzdqName}, '%')</if>
|
|
|
- <if test="yzssName != null and yzssName != ''"> and yzss_name like concat('%', #{yzssName}, '%')</if>
|
|
|
- <if test="ntze != null and ntze != ''"> and ntze = #{ntze}</if>
|
|
|
- <if test="cylxId != null and cylxId != ''"> and cylx_id = #{cylxId}</if>
|
|
|
- <if test="cylxName != null and cylxName != ''"> and cylx_name like concat('%', #{cylxName}, '%')</if>
|
|
|
- <if test="xmlb != null and xmlb != ''"> and xmlb = #{xmlb}</if>
|
|
|
- <if test="tzlb != null and tzlb != ''"> and tzlb = #{tzlb}</if>
|
|
|
- <if test="nlhd != null and nlhd != ''"> and nlhd = #{nlhd}</if>
|
|
|
- <if test="czpt != null and czpt != ''"> and czpt = #{czpt}</if>
|
|
|
- <if test="tzzt != null and tzzt != ''"> and tzzt = #{tzzt}</if>
|
|
|
- <if test="xmjz != null and xmjz != ''"> and xmjz = #{xmjz}</if>
|
|
|
- <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''"> and gtzzrsfzhm = #{gtzzrsfzhm}</if>
|
|
|
- <if test="qytzrxyzdm != null and qytzrxyzdm != ''"> and qytzrxyzdm = #{qytzrxyzdm}</if>
|
|
|
- <if test="qybj != null and qybj != ''"> and qybj = #{qybj}</if>
|
|
|
- <if test="tzfjj != null and tzfjj != ''"> and tzfjj = #{tzfjj}</if>
|
|
|
- <if test="sndxse != null and sndxse != ''"> and sndxse = #{sndxse}</if>
|
|
|
- <if test="sndnse != null and sndnse != ''"> and sndnse = #{sndnse}</if>
|
|
|
- <if test="tzrxm != null and tzrxm != ''"> and tzrxm = #{tzrxm}</if>
|
|
|
- <if test="tzrzw != null and tzrzw != ''"> and tzrzw = #{tzrzw}</if>
|
|
|
- <if test="tzrdh != null and tzrdh != ''"> and tzrdh = #{tzrdh}</if>
|
|
|
- <if test="xmjj != null and xmjj != ''"> and xmjj = #{xmjj}</if>
|
|
|
- <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
- <if test="strq != null "> and strq = #{strq}</if>
|
|
|
- <if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
|
|
- <if test="zw != null and zw != ''"> and zw = #{zw}</if>
|
|
|
- <if test="userId != null "> and user_id = #{userId}</if>
|
|
|
- <if test="type != null and type != ''"> and type = #{type}</if>
|
|
|
- <if test="progress != null and progress != ''"> and progress = #{progress}</if>
|
|
|
- <if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
- <if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
|
|
|
- <if test="cjdId != null "> and cjd_id = #{cjdId}</if>
|
|
|
- <if test="cjdName != null and cjdName != ''"> and cjd_name like concat('%', #{cjdName}, '%')</if>
|
|
|
- <if test="isMeet != null and isMeet != ''"> and is_meet = #{isMeet}</if>
|
|
|
- <if test="meetRemark != null and meetRemark != ''"> and meet_remark = #{meetRemark}</if>
|
|
|
+ <where>
|
|
|
+ is_del = 'N'
|
|
|
+ <if test="sbdw != null and sbdw != ''">and sbdw = #{sbdw}</if>
|
|
|
+ <if test="tbrq != null ">and tbrq = #{tbrq}</if>
|
|
|
+ <if test="zszxfzr != null and zszxfzr != ''">and zszxfzr = #{zszxfzr}</if>
|
|
|
+ <if test="xmbh != null and xmbh != ''">and xmbh = #{xmbh}</if>
|
|
|
+ <if test="xmxsmc != null and xmxsmc != ''">and xmxsmc = #{xmxsmc}</if>
|
|
|
+ <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and sfwlhxxxm = #{sfwlhxxxm}</if>
|
|
|
+ <if test="yzdqId != null and yzdqId != ''">and yzdq_id = #{yzdqId}</if>
|
|
|
+ <if test="yzdqName != null and yzdqName != ''">and yzdq_name like concat('%', #{yzdqName}, '%')</if>
|
|
|
+ <if test="yzssName != null and yzssName != ''">and yzss_name like concat('%', #{yzssName}, '%')</if>
|
|
|
+ <if test="ntze != null and ntze != ''">and ntze = #{ntze}</if>
|
|
|
+ <if test="cylxId != null and cylxId != ''">and cylx_id = #{cylxId}</if>
|
|
|
+ <if test="cylxName != null and cylxName != ''">and cylx_name like concat('%', #{cylxName}, '%')</if>
|
|
|
+ <if test="xmlb != null and xmlb != ''">and xmlb = #{xmlb}</if>
|
|
|
+ <if test="tzlb != null and tzlb != ''">and tzlb = #{tzlb}</if>
|
|
|
+ <if test="nlhd != null and nlhd != ''">and nlhd = #{nlhd}</if>
|
|
|
+ <if test="czpt != null and czpt != ''">and czpt = #{czpt}</if>
|
|
|
+ <if test="tzzt != null and tzzt != ''">and tzzt = #{tzzt}</if>
|
|
|
+ <if test="xmjz != null and xmjz != ''">and xmjz = #{xmjz}</if>
|
|
|
+ <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and gtzzrsfzhm = #{gtzzrsfzhm}</if>
|
|
|
+ <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and qytzrxyzdm = #{qytzrxyzdm}</if>
|
|
|
+ <if test="qybj != null and qybj != ''">and qybj = #{qybj}</if>
|
|
|
+ <if test="tzfjj != null and tzfjj != ''">and tzfjj = #{tzfjj}</if>
|
|
|
+ <if test="sndxse != null and sndxse != ''">and sndxse = #{sndxse}</if>
|
|
|
+ <if test="sndnse != null and sndnse != ''">and sndnse = #{sndnse}</if>
|
|
|
+ <if test="tzrxm != null and tzrxm != ''">and tzrxm = #{tzrxm}</if>
|
|
|
+ <if test="tzrzw != null and tzrzw != ''">and tzrzw = #{tzrzw}</if>
|
|
|
+ <if test="tzrdh != null and tzrdh != ''">and tzrdh = #{tzrdh}</if>
|
|
|
+ <if test="xmjj != null and xmjj != ''">and xmjj = #{xmjj}</if>
|
|
|
+ <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
|
|
|
+ <if test="strq != null ">and strq = #{strq}</if>
|
|
|
+ <if test="phone != null and phone != ''">and phone = #{phone}</if>
|
|
|
+ <if test="zw != null and zw != ''">and zw = #{zw}</if>
|
|
|
+ <if test="userId != null ">and user_id = #{userId}</if>
|
|
|
+ <if test="type != null and type != ''">and type = #{type}</if>
|
|
|
+ <if test="progress != null and progress != ''">and progress = #{progress}</if>
|
|
|
+ <if test="deptId != null ">and dept_id = #{deptId}</if>
|
|
|
+ <if test="isDel != null and isDel != ''">and is_del = #{isDel}</if>
|
|
|
+ <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
|
|
|
+ <if test="cjdName != null and cjdName != ''">and cjd_name like concat('%', #{cjdName}, '%')</if>
|
|
|
+ <if test="isMeet != null and isMeet != ''">and is_meet = #{isMeet}</if>
|
|
|
+ <if test="meetRemark != null and meetRemark != ''">and meet_remark = #{meetRemark}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectZsyzSbbzbById" parameterType="Long" resultMap="ZsyzSbbzbResult">
|
|
|
<include refid="selectZsyzSbbzbVo"/>
|
|
|
- where id = #{id}
|
|
|
+ where id = #{id} and is_del = 'N'
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertZsyzSbbzb" parameterType="ZsyzSbbzb" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into zsyz_sbbzb
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -159,7 +160,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="cjdName != null">cjd_name,</if>
|
|
|
<if test="isMeet != null">is_meet,</if>
|
|
|
<if test="meetRemark != null">meet_remark,</if>
|
|
|
- </trim>
|
|
|
+ </trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="sbdw != null and sbdw != ''">#{sbdw},</if>
|
|
|
<if test="tbrq != null">#{tbrq},</if>
|
|
@@ -207,7 +208,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="cjdName != null">#{cjdName},</if>
|
|
|
<if test="isMeet != null">#{isMeet},</if>
|
|
|
<if test="meetRemark != null">#{meetRemark},</if>
|
|
|
- </trim>
|
|
|
+ </trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateZsyzSbbzb" parameterType="ZsyzSbbzb">
|
|
@@ -262,13 +263,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
+ <update id="updateZsyzSbbzbCjd" parameterType="ZsyzSbbzb">
|
|
|
+ update zsyz_sbbzb set cjd_id = #{cjdId},cjd_name = #{cjdName} where id = #{id}
|
|
|
+ </update>
|
|
|
+ <update id="updateZsyzSbbzbForZc" parameterType="ZsyzSbbzb">
|
|
|
+ update zsyz_sbbzb
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="type != null and type != ''">type = #{type},</if>
|
|
|
+ <if test="isDel != null and isDel != ''">is_del = #{isDel},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
|
|
|
<delete id="deleteZsyzSbbzbById" parameterType="Long">
|
|
|
delete from zsyz_sbbzb where id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteZsyzSbbzbByIds" parameterType="String">
|
|
|
- delete from zsyz_sbbzb where id in
|
|
|
+ delete from zsyz_sbbzb where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|