|
@@ -1,128 +0,0 @@
|
|
|
-<?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.business.mapper.SysZbgzMapper">
|
|
|
-
|
|
|
- <resultMap type="com.ruoyi.system.domain.SysZbgz" id="SysZbgzResult">
|
|
|
- <result property="id" column="id" />
|
|
|
- <result property="xh" column="xh" />
|
|
|
- <result property="isUpload" column="is_upload" />
|
|
|
- <result property="zbnr" column="zbnr" />
|
|
|
- <result property="zbxz" column="zbxz" />
|
|
|
- <result property="jcfs" column="jcfs" />
|
|
|
- <result property="tmdnpz" column="tmdnpz" />
|
|
|
- <result property="zt" column="zt" />
|
|
|
- <result property="tmsydx" column="tmsydx" />
|
|
|
- <result property="createTimeStr" column="create_time_str" />
|
|
|
- <result property="createUserId" column="create_user_id" />
|
|
|
- <result property="createUserType" column="create_user_type" />
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
- <result property="createUnit" column="create_unit" />
|
|
|
- <result property="createUnitName" column="create_unit_name" />
|
|
|
- <result property="updateTimeStr" column="update_time_str" />
|
|
|
- <result property="updateUserId" column="update_user_id" />
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
- <result property="updateUnit" column="update_unit" />
|
|
|
- <result property="updateUnitName" column="update_unit_name" />
|
|
|
- <result property="state" column="state" />
|
|
|
- </resultMap>
|
|
|
-
|
|
|
- <sql id="selectSysZbgzVo">
|
|
|
- select id, xh,is_upload, zt, daxx, zbnr, zbxz, is_jgxfaqtsgc, jcfs, tmdnpz, create_time_str, create_user_id, create_by, create_unit, create_unit_name, update_time_str, update_user_id, update_by, update_unit, update_unit_name, state from sys_zbgz
|
|
|
- </sql>
|
|
|
-
|
|
|
- <select id="selectSysZbgzList" parameterType="com.ruoyi.system.domain.SysZbgz" resultMap="SysZbgzResult">
|
|
|
- <include refid="selectSysZbgzVo"/>
|
|
|
-
|
|
|
- <where>
|
|
|
- <if test="xh != null "> and xh = #{xh}</if>
|
|
|
- <if test="zt != null "> and zt = #{zt}</if>
|
|
|
- </where>
|
|
|
- ORDER BY xh ASC
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="selectSysZbgzCount" resultType="String">
|
|
|
- SELECT COUNT(*) FROM sys_zbgz
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="selectSysZbgzById" parameterType="String" resultMap="SysZbgzResult">
|
|
|
- <include refid="selectSysZbgzVo"/>
|
|
|
- where id = #{id}
|
|
|
- </select>
|
|
|
-
|
|
|
- <insert id="insertSysZbgz" parameterType="com.ruoyi.system.domain.SysZbgz">
|
|
|
- insert into sys_zbgz
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">id,</if>
|
|
|
- <if test="xh != null">xh,</if>
|
|
|
- <if test="isUpload != null and isUpload != ''">is_upload,</if>
|
|
|
- <if test="zbnr != null and zbnr != ''">zbnr,</if>
|
|
|
- <if test="zbxz != null and zbxz != ''">zbxz,</if>
|
|
|
- <if test="jcfs != null and jcfs != ''">jcfs,</if>
|
|
|
- <if test="tmdnpz != null and tmdnpz != ''">tmdnpz,</if>
|
|
|
- <if test="tmsydx != null and tmsydx != ''">tmsydx,</if>
|
|
|
- create_time_str,
|
|
|
- create_user_id,
|
|
|
- create_user_type,
|
|
|
- create_by,
|
|
|
- create_unit,
|
|
|
- create_unit_name,
|
|
|
- <if test="state != null">state,</if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">#{id},</if>
|
|
|
- <if test="xh != null">#{xh},</if>
|
|
|
- <if test="isUpload != null and isUpload != ''">#{isUpload},</if>
|
|
|
- <if test="zbnr != null and zbnr != ''">#{zbnr},</if>
|
|
|
- <if test="zbxz != null and zbxz != ''">#{zbxz},</if>
|
|
|
- <if test="jcfs != null and jcfs != ''">#{jcfs},</if>
|
|
|
- <if test="tmdnpz != null and tmdnpz != ''">#{tmdnpz},</if>
|
|
|
- <if test="tmsydx != null and tmsydx != ''">#{tmsydx},</if>
|
|
|
- #{createTimeStr},
|
|
|
- #{createUserId},
|
|
|
- #{createUserType},
|
|
|
- #{createBy},
|
|
|
- #{createUnit},
|
|
|
- #{createUnitName},
|
|
|
- <if test="state != null">#{state},</if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
-
|
|
|
- <update id="updateSysZbgz" parameterType="com.ruoyi.system.domain.SysZbgz">
|
|
|
- update sys_zbgz
|
|
|
- <trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="xh != null">xh = #{xh},</if>
|
|
|
- <if test="isUpload != null and isUpload != ''">is_upload = #{isUpload},</if>
|
|
|
- <if test="zbnr != null and zbnr != ''">zbnr = #{zbnr},</if>
|
|
|
- <if test="zbxz != null and zbxz != ''">zbxz = #{zbxz},</if>
|
|
|
- <if test="jcfs != null and jcfs != ''">jcfs = #{jcfs},</if>
|
|
|
- <if test="tmdnpz != null and tmdnpz != ''">tmdnpz = #{tmdnpz},</if>
|
|
|
- <if test="isjgxfaqtsgc != null and isjgxfaqtsgc != ''">is_jgxfaqtsgc = #{isjgxfaqtsgc},</if>
|
|
|
- update_time_str = #{updateTimeStr},
|
|
|
- update_user_id = #{updateUserId},
|
|
|
- update_by = #{updateBy},
|
|
|
- update_unit = #{updateUnit},
|
|
|
- update_unit_name = #{updateUnitName},
|
|
|
- <if test="state != null">state = #{state},</if>
|
|
|
- </trim>
|
|
|
- where id = #{id}
|
|
|
- </update>
|
|
|
-
|
|
|
- <delete id="deleteSysZbgzById" parameterType="String">
|
|
|
- delete from sys_zbgz where id = #{id}
|
|
|
- </delete>
|
|
|
-
|
|
|
- <delete id="deleteSysZbgzByIds" parameterType="String">
|
|
|
- delete from sys_zbgz where id in
|
|
|
- <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- </delete>
|
|
|
-
|
|
|
- <select id="selectZbgzById" parameterType="String" resultType="java.util.Map">
|
|
|
- select id, xh,is_upload as isUpload, tmsydx, daxx, zbnr, zbxz, jcfs, zt, state
|
|
|
- from sys_zbgz
|
|
|
- where id = #{id}
|
|
|
- </select>
|
|
|
-</mapper>
|