|
@@ -0,0 +1,206 @@
|
|
|
|
+<?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">
|
|
|
|
+<mapper namespace="com.ruoyi.system.mapper.fgw.FgwXmsbMapper">
|
|
|
|
+
|
|
|
|
+ <resultMap type="FgwXmsb" id="FgwXmsbResult">
|
|
|
|
+ <result property="id" column="id" />
|
|
|
|
+ <result property="xmmc" column="xmmc" />
|
|
|
|
+ <result property="xmbh" column="xmbh" />
|
|
|
|
+ <result property="xmdw" column="xmdw" />
|
|
|
|
+ <result property="qtzrdw" column="qtzrdw" />
|
|
|
|
+ <result property="qtsld" column="qtsld" />
|
|
|
|
+ <result property="gmnr" column="gmnr" />
|
|
|
|
+ <result property="jhkgsj" column="jhkgsj" />
|
|
|
|
+ <result property="xmztz" column="xmztz" />
|
|
|
|
+ <result property="sjbz" column="sjbz" />
|
|
|
|
+ <result property="sczbj" column="sczbj" />
|
|
|
|
+ <result property="zxz" column="zxz" />
|
|
|
|
+ <result property="ppp" column="ppp" />
|
|
|
|
+ <result property="rz" column="rz" />
|
|
|
|
+ <result property="ndjh" column="ndjh" />
|
|
|
|
+ <result property="sjbzzjqd" column="sjbzzjqd" />
|
|
|
|
+ <result property="rzqd" column="rzqd" />
|
|
|
|
+ <result property="dq" column="dq" />
|
|
|
|
+ <result property="jsdw" column="jsdw" />
|
|
|
|
+ <result property="jsDeptId" column="js_dept_id" />
|
|
|
|
+ <result property="deptId" column="dept_id" />
|
|
|
|
+ <result property="userId" column="user_id" />
|
|
|
|
+ <result property="kgsj" column="kgsj" />
|
|
|
|
+ <result property="ntsj" column="ntsj" />
|
|
|
|
+ <result property="ntxmtc" column="ntxmtc" />
|
|
|
|
+ <result property="type" column="type" />
|
|
|
|
+ <result property="progress" column="progress" />
|
|
|
|
+ <result property="status" column="status" />
|
|
|
|
+ <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>
|
|
|
|
+
|
|
|
|
+ <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, user_id, kgsj, ntsj, ntxmtc, type, progress, status, create_by, create_time, update_by, update_time, remark from fgw_xmsb
|
|
|
|
+ </sql>
|
|
|
|
+
|
|
|
|
+ <select id="selectFgwXmsbList" parameterType="FgwXmsb" 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="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>
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select id="selectFgwXmsbById" parameterType="Long" resultMap="FgwXmsbResult">
|
|
|
|
+ <include refid="selectFgwXmsbVo"/>
|
|
|
|
+ where id = #{id}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <insert id="insertFgwXmsb" parameterType="FgwXmsb" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
+ insert into fgw_xmsb
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="xmmc != null">xmmc,</if>
|
|
|
|
+ <if test="xmbh != null">xmbh,</if>
|
|
|
|
+ <if test="xmdw != null">xmdw,</if>
|
|
|
|
+ <if test="qtzrdw != null">qtzrdw,</if>
|
|
|
|
+ <if test="qtsld != null">qtsld,</if>
|
|
|
|
+ <if test="gmnr != null">gmnr,</if>
|
|
|
|
+ <if test="jhkgsj != null">jhkgsj,</if>
|
|
|
|
+ <if test="xmztz != null">xmztz,</if>
|
|
|
|
+ <if test="sjbz != null">sjbz,</if>
|
|
|
|
+ <if test="sczbj != null">sczbj,</if>
|
|
|
|
+ <if test="zxz != null">zxz,</if>
|
|
|
|
+ <if test="ppp != null">ppp,</if>
|
|
|
|
+ <if test="rz != null">rz,</if>
|
|
|
|
+ <if test="ndjh != null">ndjh,</if>
|
|
|
|
+ <if test="sjbzzjqd != null">sjbzzjqd,</if>
|
|
|
|
+ <if test="rzqd != null">rzqd,</if>
|
|
|
|
+ <if test="dq != null">dq,</if>
|
|
|
|
+ <if test="jsdw != null">jsdw,</if>
|
|
|
|
+ <if test="jsDeptId != null">js_dept_id,</if>
|
|
|
|
+ <if test="deptId != null">dept_id,</if>
|
|
|
|
+ <if test="userId != null">user_id,</if>
|
|
|
|
+ <if test="kgsj != null">kgsj,</if>
|
|
|
|
+ <if test="ntsj != null">ntsj,</if>
|
|
|
|
+ <if test="ntxmtc != null">ntxmtc,</if>
|
|
|
|
+ <if test="type != null">type,</if>
|
|
|
|
+ <if test="progress != null">progress,</if>
|
|
|
|
+ <if test="status != null">status,</if>
|
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
|
+ <if test="remark != null">remark,</if>
|
|
|
|
+ </trim>
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="xmmc != null">#{xmmc},</if>
|
|
|
|
+ <if test="xmbh != null">#{xmbh},</if>
|
|
|
|
+ <if test="xmdw != null">#{xmdw},</if>
|
|
|
|
+ <if test="qtzrdw != null">#{qtzrdw},</if>
|
|
|
|
+ <if test="qtsld != null">#{qtsld},</if>
|
|
|
|
+ <if test="gmnr != null">#{gmnr},</if>
|
|
|
|
+ <if test="jhkgsj != null">#{jhkgsj},</if>
|
|
|
|
+ <if test="xmztz != null">#{xmztz},</if>
|
|
|
|
+ <if test="sjbz != null">#{sjbz},</if>
|
|
|
|
+ <if test="sczbj != null">#{sczbj},</if>
|
|
|
|
+ <if test="zxz != null">#{zxz},</if>
|
|
|
|
+ <if test="ppp != null">#{ppp},</if>
|
|
|
|
+ <if test="rz != null">#{rz},</if>
|
|
|
|
+ <if test="ndjh != null">#{ndjh},</if>
|
|
|
|
+ <if test="sjbzzjqd != null">#{sjbzzjqd},</if>
|
|
|
|
+ <if test="rzqd != null">#{rzqd},</if>
|
|
|
|
+ <if test="dq != null">#{dq},</if>
|
|
|
|
+ <if test="jsdw != null">#{jsdw},</if>
|
|
|
|
+ <if test="jsDeptId != null">#{jsDeptId},</if>
|
|
|
|
+ <if test="deptId != null">#{deptId},</if>
|
|
|
|
+ <if test="userId != null">#{userId},</if>
|
|
|
|
+ <if test="kgsj != null">#{kgsj},</if>
|
|
|
|
+ <if test="ntsj != null">#{ntsj},</if>
|
|
|
|
+ <if test="ntxmtc != null">#{ntxmtc},</if>
|
|
|
|
+ <if test="type != null">#{type},</if>
|
|
|
|
+ <if test="progress != null">#{progress},</if>
|
|
|
|
+ <if test="status != null">#{status},</if>
|
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
|
+ <if test="remark != null">#{remark},</if>
|
|
|
|
+ </trim>
|
|
|
|
+ </insert>
|
|
|
|
+
|
|
|
|
+ <update id="updateFgwXmsb" parameterType="FgwXmsb">
|
|
|
|
+ update fgw_xmsb
|
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
|
+ <if test="xmmc != null">xmmc = #{xmmc},</if>
|
|
|
|
+ <if test="xmbh != null">xmbh = #{xmbh},</if>
|
|
|
|
+ <if test="xmdw != null">xmdw = #{xmdw},</if>
|
|
|
|
+ <if test="qtzrdw != null">qtzrdw = #{qtzrdw},</if>
|
|
|
|
+ <if test="qtsld != null">qtsld = #{qtsld},</if>
|
|
|
|
+ <if test="gmnr != null">gmnr = #{gmnr},</if>
|
|
|
|
+ <if test="jhkgsj != null">jhkgsj = #{jhkgsj},</if>
|
|
|
|
+ <if test="xmztz != null">xmztz = #{xmztz},</if>
|
|
|
|
+ <if test="sjbz != null">sjbz = #{sjbz},</if>
|
|
|
|
+ <if test="sczbj != null">sczbj = #{sczbj},</if>
|
|
|
|
+ <if test="zxz != null">zxz = #{zxz},</if>
|
|
|
|
+ <if test="ppp != null">ppp = #{ppp},</if>
|
|
|
|
+ <if test="rz != null">rz = #{rz},</if>
|
|
|
|
+ <if test="ndjh != null">ndjh = #{ndjh},</if>
|
|
|
|
+ <if test="sjbzzjqd != null">sjbzzjqd = #{sjbzzjqd},</if>
|
|
|
|
+ <if test="rzqd != null">rzqd = #{rzqd},</if>
|
|
|
|
+ <if test="dq != null">dq = #{dq},</if>
|
|
|
|
+ <if test="jsdw != null">jsdw = #{jsdw},</if>
|
|
|
|
+ <if test="jsDeptId != null">js_dept_id = #{jsDeptId},</if>
|
|
|
|
+ <if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
|
+ <if test="userId != null">user_id = #{userId},</if>
|
|
|
|
+ <if test="kgsj != null">kgsj = #{kgsj},</if>
|
|
|
|
+ <if test="ntsj != null">ntsj = #{ntsj},</if>
|
|
|
|
+ <if test="ntxmtc != null">ntxmtc = #{ntxmtc},</if>
|
|
|
|
+ <if test="type != null">type = #{type},</if>
|
|
|
|
+ <if test="progress != null">progress = #{progress},</if>
|
|
|
|
+ <if test="status != null">status = #{status},</if>
|
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
|
+ </trim>
|
|
|
|
+ where id = #{id}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+ <delete id="deleteFgwXmsbById" parameterType="Long">
|
|
|
|
+ delete from fgw_xmsb where id = #{id}
|
|
|
|
+ </delete>
|
|
|
|
+
|
|
|
|
+ <delete id="deleteFgwXmsbByIds" parameterType="String">
|
|
|
|
+ delete from fgw_xmsb where id in
|
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
+ #{id}
|
|
|
|
+ </foreach>
|
|
|
|
+ </delete>
|
|
|
|
+</mapper>
|