|
@@ -1,92 +1,106 @@
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper
|
|
<!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.ZsyzSkxmMapper">
|
|
<mapper namespace="com.ruoyi.system.mapper.projectV2.ZsyzSkxmMapper">
|
|
-
|
|
|
|
|
|
+
|
|
<resultMap type="ZsyzSkxm" id="ZsyzSkxmResult">
|
|
<resultMap type="ZsyzSkxm" id="ZsyzSkxmResult">
|
|
- <result property="id" column="id"/>
|
|
|
|
- <result property="xmmc" column="xmmc"/>
|
|
|
|
- <result property="pzwh" column="pzwh"/>
|
|
|
|
- <result property="tzdw" column="tzdw"/>
|
|
|
|
- <result property="xmszd" column="xmszd"/>
|
|
|
|
- <result property="sscy" column="sscy"/>
|
|
|
|
- <result property="ztze" column="ztze"/>
|
|
|
|
- <result property="swzj" column="swzj"/>
|
|
|
|
- <result property="sjdz" column="sjdz"/>
|
|
|
|
- <result property="dydw" column="dydw"/>
|
|
|
|
- <result property="rkTime" column="rk_time"/>
|
|
|
|
- <result property="qytbTime" column="qytb_time"/>
|
|
|
|
- <result property="isHs" column="is_hs"/>
|
|
|
|
- <result property="jsjd" column="jsjd"/>
|
|
|
|
- <result property="isSh" column="is_sh"/>
|
|
|
|
- <result property="shName" column="sh_name"/>
|
|
|
|
- <result property="shTime" column="sh_time"/>
|
|
|
|
- <result property="shJy" column="sh_jy"/>
|
|
|
|
- <result property="deptId" column="dept_id"/>
|
|
|
|
- <result property="createBy" column="create_by"/>
|
|
|
|
- <result property="createTime" column="create_time"/>
|
|
|
|
- <result property="updateBy" column="update_by"/>
|
|
|
|
- <result property="updateTime" column="update_time"/>
|
|
|
|
- <result property="remark" column="remark"/>
|
|
|
|
|
|
+ <result property="id" column="id" />
|
|
|
|
+ <result property="isHs" column="is_hs" />
|
|
|
|
+ <result property="xmmc" column="xmmc" />
|
|
|
|
+ <result property="pzwh" column="pzwh" />
|
|
|
|
+ <result property="yyzz" column="yyzz" />
|
|
|
|
+ <result property="szdqId" column="szdq_id" />
|
|
|
|
+ <result property="szdqName" column="szdq_name" />
|
|
|
|
+ <result property="sscy" column="sscy" />
|
|
|
|
+ <result property="xxcy" column="xxcy" />
|
|
|
|
+ <result property="zdcy" column="zdcy" />
|
|
|
|
+ <result property="isLt" column="is_lt" />
|
|
|
|
+ <result property="isFzzlfdcy" column="is_fzzlfdcy" />
|
|
|
|
+ <result property="tzfs" column="tzfs" />
|
|
|
|
+ <result property="rkTime" column="rk_time" />
|
|
|
|
+ <result property="kgjsTime" column="kgjs_time" />
|
|
|
|
+ <result property="jswcTime" column="jswc_time" />
|
|
|
|
+ <result property="ztze" column="ztze" />
|
|
|
|
+ <result property="swzj" column="swzj" />
|
|
|
|
+ <result property="jsjd" column="jsjd" />
|
|
|
|
+ <result property="xmnr" column="xmnr" />
|
|
|
|
+ <result property="czwt" column="czwt" />
|
|
|
|
+ <result property="isSh" column="is_sh" />
|
|
|
|
+ <result property="shName" column="sh_name" />
|
|
|
|
+ <result property="shTime" column="sh_time" />
|
|
|
|
+ <result property="shJy" column="sh_jy" />
|
|
|
|
+ <result property="deptId" column="dept_id" />
|
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
|
+ <result property="remark" column="remark" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectZsyzSkxmVo">
|
|
<sql id="selectZsyzSkxmVo">
|
|
- select id, xmmc, pzwh, tzdw, xmszd, sscy, ztze, swzj, sjdz, dydw, rk_time, qytb_time, is_hs, jsjd, is_sh, sh_name, sh_time, sh_jy,dept_id, create_by, create_time, update_by, update_time, remark from zsyz_skxm
|
|
|
|
|
|
+ select id, is_hs, xmmc, pzwh, yyzz, szdq_id, szdq_name, sscy, xxcy, zdcy, is_lt, is_fzzlfdcy, tzfs, rk_time, kgjs_time, jswc_time, ztze, swzj, jsjd, xmnr, czwt, is_sh, sh_name, sh_time, sh_jy, dept_id, create_by, create_time, update_by, update_time, remark from zsyz_skxm
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectZsyzSkxmList" parameterType="ZsyzSkxm" resultMap="ZsyzSkxmResult">
|
|
<select id="selectZsyzSkxmList" parameterType="ZsyzSkxm" resultMap="ZsyzSkxmResult">
|
|
<include refid="selectZsyzSkxmVo"/>
|
|
<include refid="selectZsyzSkxmVo"/>
|
|
- <where>
|
|
|
|
- <if test="xmmc != null and xmmc != ''">and xmmc like concat( #{xmmc}, '%') </if>
|
|
|
|
- <if test="pzwh != null and pzwh != ''">and pzwh = #{pzwh}</if>
|
|
|
|
- <if test="tzdw != null and tzdw != ''">and tzdw = #{tzdw}</if>
|
|
|
|
- <if test="xmszd != null and xmszd != ''">and xmszd = #{xmszd}</if>
|
|
|
|
- <if test="sscy != null and sscy != ''">and sscy = #{sscy}</if>
|
|
|
|
- <if test="ztze != null and ztze != ''">and ztze = #{ztze}</if>
|
|
|
|
- <if test="swzj != null and swzj != ''">and swzj = #{swzj}</if>
|
|
|
|
- <if test="sjdz != null and sjdz != ''">and sjdz = #{sjdz}</if>
|
|
|
|
- <if test="dydw != null and dydw != ''">and dydw = #{dydw}</if>
|
|
|
|
- <if test="rkTime != null ">and rk_time = #{rkTime}</if>
|
|
|
|
- <if test="qytbTime != null ">and qytb_time = #{qytbTime}</if>
|
|
|
|
- <if test="isHs != null and isHs != ''">and is_hs = #{isHs}</if>
|
|
|
|
- <if test="jsjd != null and jsjd != ''">and jsjd = #{jsjd}</if>
|
|
|
|
- <if test="isSh != null and isSh != ''">and is_sh = #{isSh}</if>
|
|
|
|
- <if test="shName != null and shName != ''">and sh_name like concat('%', #{shName}, '%')</if>
|
|
|
|
- <if test="shTime != null ">and sh_time = #{shTime}</if>
|
|
|
|
- <if test="shJy != null and shJy != ''">and sh_jy = #{shJy}</if>
|
|
|
|
- <if test="deptId != null and deptId != ''">and dept_id = #{deptId}</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>
|
|
|
|
+ <if test="isHs != null and isHs != ''"> and is_hs = #{isHs}</if>
|
|
|
|
+ <if test="xmmc != null and xmmc != ''"> and xmmc = #{xmmc}</if>
|
|
|
|
+ <if test="pzwh != null and pzwh != ''"> and pzwh = #{pzwh}</if>
|
|
|
|
+ <if test="yyzz != null and yyzz != ''"> and yyzz = #{yyzz}</if>
|
|
|
|
+ <if test="szdqId != null and szdqId != ''"> and szdq_id = #{szdqId}</if>
|
|
|
|
+ <if test="szdqName != null and szdqName != ''"> and szdq_name like concat('%', #{szdqName}, '%')</if>
|
|
|
|
+ <if test="sscy != null and sscy != ''"> and sscy = #{sscy}</if>
|
|
|
|
+ <if test="xxcy != null and xxcy != ''"> and xxcy = #{xxcy}</if>
|
|
|
|
+ <if test="zdcy != null and zdcy != ''"> and zdcy = #{zdcy}</if>
|
|
|
|
+ <if test="isLt != null and isLt != ''"> and is_lt = #{isLt}</if>
|
|
|
|
+ <if test="isFzzlfdcy != null and isFzzlfdcy != ''"> and is_fzzlfdcy = #{isFzzlfdcy}</if>
|
|
|
|
+ <if test="tzfs != null and tzfs != ''"> and tzfs = #{tzfs}</if>
|
|
|
|
+ <if test="rkTime != null "> and rk_time = #{rkTime}</if>
|
|
|
|
+ <if test="kgjsTime != null "> and kgjs_time = #{kgjsTime}</if>
|
|
|
|
+ <if test="jswcTime != null "> and jswc_time = #{jswcTime}</if>
|
|
|
|
+ <if test="ztze != null and ztze != ''"> and ztze = #{ztze}</if>
|
|
|
|
+ <if test="swzj != null and swzj != ''"> and swzj = #{swzj}</if>
|
|
|
|
+ <if test="jsjd != null and jsjd != ''"> and jsjd = #{jsjd}</if>
|
|
|
|
+ <if test="xmnr != null and xmnr != ''"> and xmnr = #{xmnr}</if>
|
|
|
|
+ <if test="czwt != null and czwt != ''"> and czwt = #{czwt}</if>
|
|
|
|
+ <if test="isSh != null and isSh != ''"> and is_sh = #{isSh}</if>
|
|
|
|
+ <if test="shName != null and shName != ''"> and sh_name like concat('%', #{shName}, '%')</if>
|
|
|
|
+ <if test="shTime != null "> and sh_time = #{shTime}</if>
|
|
|
|
+ <if test="shJy != null and shJy != ''"> and sh_jy = #{shJy}</if>
|
|
|
|
+ <if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
</where>
|
|
</where>
|
|
- order by create_time desc
|
|
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<select id="selectZsyzSkxmById" parameterType="Long" resultMap="ZsyzSkxmResult">
|
|
<select id="selectZsyzSkxmById" parameterType="Long" resultMap="ZsyzSkxmResult">
|
|
<include refid="selectZsyzSkxmVo"/>
|
|
<include refid="selectZsyzSkxmVo"/>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<insert id="insertZsyzSkxm" parameterType="ZsyzSkxm" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insertZsyzSkxm" parameterType="ZsyzSkxm" useGeneratedKeys="true" keyProperty="id">
|
|
insert into zsyz_skxm
|
|
insert into zsyz_skxm
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="isHs != null and isHs != ''">is_hs,</if>
|
|
<if test="xmmc != null">xmmc,</if>
|
|
<if test="xmmc != null">xmmc,</if>
|
|
<if test="pzwh != null">pzwh,</if>
|
|
<if test="pzwh != null">pzwh,</if>
|
|
- <if test="tzdw != null">tzdw,</if>
|
|
|
|
- <if test="xmszd != null">xmszd,</if>
|
|
|
|
|
|
+ <if test="yyzz != null">yyzz,</if>
|
|
|
|
+ <if test="szdqId != null">szdq_id,</if>
|
|
|
|
+ <if test="szdqName != null">szdq_name,</if>
|
|
<if test="sscy != null">sscy,</if>
|
|
<if test="sscy != null">sscy,</if>
|
|
|
|
+ <if test="xxcy != null">xxcy,</if>
|
|
|
|
+ <if test="zdcy != null">zdcy,</if>
|
|
|
|
+ <if test="isLt != null">is_lt,</if>
|
|
|
|
+ <if test="isFzzlfdcy != null">is_fzzlfdcy,</if>
|
|
|
|
+ <if test="tzfs != null">tzfs,</if>
|
|
|
|
+ <if test="rkTime != null">rk_time,</if>
|
|
|
|
+ <if test="kgjsTime != null">kgjs_time,</if>
|
|
|
|
+ <if test="jswcTime != null">jswc_time,</if>
|
|
<if test="ztze != null">ztze,</if>
|
|
<if test="ztze != null">ztze,</if>
|
|
<if test="swzj != null">swzj,</if>
|
|
<if test="swzj != null">swzj,</if>
|
|
- <if test="sjdz != null and sjdz != ''">sjdz,</if>
|
|
|
|
- <if test="dydw != null and dydw != ''">dydw,</if>
|
|
|
|
- <if test="rkTime != null">rk_time,</if>
|
|
|
|
- <if test="qytbTime != null">qytb_time,</if>
|
|
|
|
- <if test="isHs != null and isHs != ''">is_hs,</if>
|
|
|
|
<if test="jsjd != null">jsjd,</if>
|
|
<if test="jsjd != null">jsjd,</if>
|
|
|
|
+ <if test="xmnr != null">xmnr,</if>
|
|
|
|
+ <if test="czwt != null">czwt,</if>
|
|
<if test="isSh != null">is_sh,</if>
|
|
<if test="isSh != null">is_sh,</if>
|
|
<if test="shName != null">sh_name,</if>
|
|
<if test="shName != null">sh_name,</if>
|
|
<if test="shTime != null">sh_time,</if>
|
|
<if test="shTime != null">sh_time,</if>
|
|
@@ -97,21 +111,28 @@
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="remark != null">remark,</if>
|
|
<if test="remark != null">remark,</if>
|
|
- </trim>
|
|
|
|
|
|
+ </trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="isHs != null and isHs != ''">#{isHs},</if>
|
|
<if test="xmmc != null">#{xmmc},</if>
|
|
<if test="xmmc != null">#{xmmc},</if>
|
|
<if test="pzwh != null">#{pzwh},</if>
|
|
<if test="pzwh != null">#{pzwh},</if>
|
|
- <if test="tzdw != null">#{tzdw},</if>
|
|
|
|
- <if test="xmszd != null">#{xmszd},</if>
|
|
|
|
|
|
+ <if test="yyzz != null">#{yyzz},</if>
|
|
|
|
+ <if test="szdqId != null">#{szdqId},</if>
|
|
|
|
+ <if test="szdqName != null">#{szdqName},</if>
|
|
<if test="sscy != null">#{sscy},</if>
|
|
<if test="sscy != null">#{sscy},</if>
|
|
|
|
+ <if test="xxcy != null">#{xxcy},</if>
|
|
|
|
+ <if test="zdcy != null">#{zdcy},</if>
|
|
|
|
+ <if test="isLt != null">#{isLt},</if>
|
|
|
|
+ <if test="isFzzlfdcy != null">#{isFzzlfdcy},</if>
|
|
|
|
+ <if test="tzfs != null">#{tzfs},</if>
|
|
|
|
+ <if test="rkTime != null">#{rkTime},</if>
|
|
|
|
+ <if test="kgjsTime != null">#{kgjsTime},</if>
|
|
|
|
+ <if test="jswcTime != null">#{jswcTime},</if>
|
|
<if test="ztze != null">#{ztze},</if>
|
|
<if test="ztze != null">#{ztze},</if>
|
|
<if test="swzj != null">#{swzj},</if>
|
|
<if test="swzj != null">#{swzj},</if>
|
|
- <if test="sjdz != null and sjdz != ''">#{sjdz},</if>
|
|
|
|
- <if test="dydw != null and dydw != ''">#{dydw},</if>
|
|
|
|
- <if test="rkTime != null">#{rkTime},</if>
|
|
|
|
- <if test="qytbTime != null">#{qytbTime},</if>
|
|
|
|
- <if test="isHs != null and isHs != ''">#{isHs},</if>
|
|
|
|
<if test="jsjd != null">#{jsjd},</if>
|
|
<if test="jsjd != null">#{jsjd},</if>
|
|
|
|
+ <if test="xmnr != null">#{xmnr},</if>
|
|
|
|
+ <if test="czwt != null">#{czwt},</if>
|
|
<if test="isSh != null">#{isSh},</if>
|
|
<if test="isSh != null">#{isSh},</if>
|
|
<if test="shName != null">#{shName},</if>
|
|
<if test="shName != null">#{shName},</if>
|
|
<if test="shTime != null">#{shTime},</if>
|
|
<if test="shTime != null">#{shTime},</if>
|
|
@@ -122,25 +143,32 @@
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
- </trim>
|
|
|
|
|
|
+ </trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<update id="updateZsyzSkxm" parameterType="ZsyzSkxm">
|
|
<update id="updateZsyzSkxm" parameterType="ZsyzSkxm">
|
|
update zsyz_skxm
|
|
update zsyz_skxm
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
+ <if test="isHs != null and isHs != ''">is_hs = #{isHs},</if>
|
|
<if test="xmmc != null">xmmc = #{xmmc},</if>
|
|
<if test="xmmc != null">xmmc = #{xmmc},</if>
|
|
<if test="pzwh != null">pzwh = #{pzwh},</if>
|
|
<if test="pzwh != null">pzwh = #{pzwh},</if>
|
|
- <if test="tzdw != null">tzdw = #{tzdw},</if>
|
|
|
|
- <if test="xmszd != null">xmszd = #{xmszd},</if>
|
|
|
|
|
|
+ <if test="yyzz != null">yyzz = #{yyzz},</if>
|
|
|
|
+ <if test="szdqId != null">szdq_id = #{szdqId},</if>
|
|
|
|
+ <if test="szdqName != null">szdq_name = #{szdqName},</if>
|
|
<if test="sscy != null">sscy = #{sscy},</if>
|
|
<if test="sscy != null">sscy = #{sscy},</if>
|
|
|
|
+ <if test="xxcy != null">xxcy = #{xxcy},</if>
|
|
|
|
+ <if test="zdcy != null">zdcy = #{zdcy},</if>
|
|
|
|
+ <if test="isLt != null">is_lt = #{isLt},</if>
|
|
|
|
+ <if test="isFzzlfdcy != null">is_fzzlfdcy = #{isFzzlfdcy},</if>
|
|
|
|
+ <if test="tzfs != null">tzfs = #{tzfs},</if>
|
|
|
|
+ <if test="rkTime != null">rk_time = #{rkTime},</if>
|
|
|
|
+ <if test="kgjsTime != null">kgjs_time = #{kgjsTime},</if>
|
|
|
|
+ <if test="jswcTime != null">jswc_time = #{jswcTime},</if>
|
|
<if test="ztze != null">ztze = #{ztze},</if>
|
|
<if test="ztze != null">ztze = #{ztze},</if>
|
|
<if test="swzj != null">swzj = #{swzj},</if>
|
|
<if test="swzj != null">swzj = #{swzj},</if>
|
|
- <if test="sjdz != null and sjdz != ''">sjdz = #{sjdz},</if>
|
|
|
|
- <if test="dydw != null and dydw != ''">dydw = #{dydw},</if>
|
|
|
|
- <if test="rkTime != null">rk_time = #{rkTime},</if>
|
|
|
|
- <if test="qytbTime != null">qytb_time = #{qytbTime},</if>
|
|
|
|
- <if test="isHs != null and isHs != ''">is_hs = #{isHs},</if>
|
|
|
|
<if test="jsjd != null">jsjd = #{jsjd},</if>
|
|
<if test="jsjd != null">jsjd = #{jsjd},</if>
|
|
|
|
+ <if test="xmnr != null">xmnr = #{xmnr},</if>
|
|
|
|
+ <if test="czwt != null">czwt = #{czwt},</if>
|
|
<if test="isSh != null">is_sh = #{isSh},</if>
|
|
<if test="isSh != null">is_sh = #{isSh},</if>
|
|
<if test="shName != null">sh_name = #{shName},</if>
|
|
<if test="shName != null">sh_name = #{shName},</if>
|
|
<if test="shTime != null">sh_time = #{shTime},</if>
|
|
<if test="shTime != null">sh_time = #{shTime},</if>
|
|
@@ -154,17 +182,13 @@
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
- <update id="updateZsyzSkxmSh" parameterType="ZsyzSkxm">
|
|
|
|
- update zsyz_skxm set is_sh = #{isSh} ,sh_time = sysdate()
|
|
|
|
- where id = #{id}
|
|
|
|
- </update>
|
|
|
|
|
|
|
|
<delete id="deleteZsyzSkxmById" parameterType="Long">
|
|
<delete id="deleteZsyzSkxmById" parameterType="Long">
|
|
delete from zsyz_skxm where id = #{id}
|
|
delete from zsyz_skxm where id = #{id}
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteZsyzSkxmByIds" parameterType="String">
|
|
<delete id="deleteZsyzSkxmByIds" parameterType="String">
|
|
- delete from zsyz_skxm where id in
|
|
|
|
|
|
+ delete from zsyz_skxm where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|