|
@@ -0,0 +1,338 @@
|
|
|
+<?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.ghsc.partybuild.mapper.PubDzzfcMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.ghsc.partybuild.model.PubDzzfc">
|
|
|
+ <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="dzzdm" jdbcType="VARCHAR" property="dzzdm" />
|
|
|
+ <result column="ztmc" jdbcType="VARCHAR" property="ztmc" />
|
|
|
+ <result column="fc_type" jdbcType="INTEGER" property="fcType" />
|
|
|
+ <result column="jj" jdbcType="VARCHAR" property="jj" />
|
|
|
+ <result column="nr" jdbcType="VARCHAR" property="nr" />
|
|
|
+ <result column="sj" jdbcType="VARCHAR" property="sj" />
|
|
|
+ <result column="lj" jdbcType="VARCHAR" property="lj" />
|
|
|
+ <result column="remark" jdbcType="VARCHAR" property="remark" />
|
|
|
+ <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
+ <result column="create_userid" jdbcType="VARCHAR" property="createUserid" />
|
|
|
+ <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
+ <result column="update_userid" jdbcType="VARCHAR" property="updateUserid" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Update_By_Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id, dzzdm, ztmc, fc_type, jj, nr, sj, lj, remark, create_time, create_userid, update_time,
|
|
|
+ update_userid
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.ghsc.partybuild.model.PubDzzfcExample" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from pub_dzzfc
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from pub_dzzfc
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ delete from pub_dzzfc
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.ghsc.partybuild.model.PubDzzfcExample">
|
|
|
+ delete from pub_dzzfc
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.ghsc.partybuild.model.PubDzzfc">
|
|
|
+ insert into pub_dzzfc (id, dzzdm, ztmc,
|
|
|
+ fc_type, jj, nr, sj,
|
|
|
+ lj, remark, create_time,
|
|
|
+ create_userid, update_time, update_userid
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{dzzdm,jdbcType=VARCHAR}, #{ztmc,jdbcType=VARCHAR},
|
|
|
+ #{fcType,jdbcType=INTEGER}, #{jj,jdbcType=VARCHAR}, #{nr,jdbcType=VARCHAR}, #{sj,jdbcType=VARCHAR},
|
|
|
+ #{lj,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{createUserid,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{updateUserid,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.ghsc.partybuild.model.PubDzzfc">
|
|
|
+ insert into pub_dzzfc
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="dzzdm != null">
|
|
|
+ dzzdm,
|
|
|
+ </if>
|
|
|
+ <if test="ztmc != null">
|
|
|
+ ztmc,
|
|
|
+ </if>
|
|
|
+ <if test="fcType != null">
|
|
|
+ fc_type,
|
|
|
+ </if>
|
|
|
+ <if test="jj != null">
|
|
|
+ jj,
|
|
|
+ </if>
|
|
|
+ <if test="nr != null">
|
|
|
+ nr,
|
|
|
+ </if>
|
|
|
+ <if test="sj != null">
|
|
|
+ sj,
|
|
|
+ </if>
|
|
|
+ <if test="lj != null">
|
|
|
+ lj,
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">
|
|
|
+ remark,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ <if test="createUserid != null">
|
|
|
+ create_userid,
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time,
|
|
|
+ </if>
|
|
|
+ <if test="updateUserid != null">
|
|
|
+ update_userid,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="dzzdm != null">
|
|
|
+ #{dzzdm,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ztmc != null">
|
|
|
+ #{ztmc,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fcType != null">
|
|
|
+ #{fcType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="jj != null">
|
|
|
+ #{jj,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="nr != null">
|
|
|
+ #{nr,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sj != null">
|
|
|
+ #{sj,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="lj != null">
|
|
|
+ #{lj,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">
|
|
|
+ #{remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="createUserid != null">
|
|
|
+ #{createUserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateUserid != null">
|
|
|
+ #{updateUserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.ghsc.partybuild.model.PubDzzfcExample" resultType="java.lang.Long">
|
|
|
+ select count(*) from pub_dzzfc
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ update pub_dzzfc
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.dzzdm != null">
|
|
|
+ dzzdm = #{record.dzzdm,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.ztmc != null">
|
|
|
+ ztmc = #{record.ztmc,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.fcType != null">
|
|
|
+ fc_type = #{record.fcType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.jj != null">
|
|
|
+ jj = #{record.jj,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.nr != null">
|
|
|
+ nr = #{record.nr,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.sj != null">
|
|
|
+ sj = #{record.sj,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.lj != null">
|
|
|
+ lj = #{record.lj,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.remark != null">
|
|
|
+ remark = #{record.remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createTime != null">
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.createUserid != null">
|
|
|
+ create_userid = #{record.createUserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.updateTime != null">
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.updateUserid != null">
|
|
|
+ update_userid = #{record.updateUserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update pub_dzzfc
|
|
|
+ set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ dzzdm = #{record.dzzdm,jdbcType=VARCHAR},
|
|
|
+ ztmc = #{record.ztmc,jdbcType=VARCHAR},
|
|
|
+ fc_type = #{record.fcType,jdbcType=INTEGER},
|
|
|
+ jj = #{record.jj,jdbcType=VARCHAR},
|
|
|
+ nr = #{record.nr,jdbcType=VARCHAR},
|
|
|
+ sj = #{record.sj,jdbcType=VARCHAR},
|
|
|
+ lj = #{record.lj,jdbcType=VARCHAR},
|
|
|
+ remark = #{record.remark,jdbcType=VARCHAR},
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ create_userid = #{record.createUserid,jdbcType=VARCHAR},
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ update_userid = #{record.updateUserid,jdbcType=VARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.ghsc.partybuild.model.PubDzzfc">
|
|
|
+ update pub_dzzfc
|
|
|
+ <set>
|
|
|
+ <if test="dzzdm != null">
|
|
|
+ dzzdm = #{dzzdm,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ztmc != null">
|
|
|
+ ztmc = #{ztmc,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fcType != null">
|
|
|
+ fc_type = #{fcType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="jj != null">
|
|
|
+ jj = #{jj,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="nr != null">
|
|
|
+ nr = #{nr,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sj != null">
|
|
|
+ sj = #{sj,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="lj != null">
|
|
|
+ lj = #{lj,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">
|
|
|
+ remark = #{remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="createUserid != null">
|
|
|
+ create_userid = #{createUserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateUserid != null">
|
|
|
+ update_userid = #{updateUserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.ghsc.partybuild.model.PubDzzfc">
|
|
|
+ update pub_dzzfc
|
|
|
+ set dzzdm = #{dzzdm,jdbcType=VARCHAR},
|
|
|
+ ztmc = #{ztmc,jdbcType=VARCHAR},
|
|
|
+ fc_type = #{fcType,jdbcType=INTEGER},
|
|
|
+ jj = #{jj,jdbcType=VARCHAR},
|
|
|
+ nr = #{nr,jdbcType=VARCHAR},
|
|
|
+ sj = #{sj,jdbcType=VARCHAR},
|
|
|
+ lj = #{lj,jdbcType=VARCHAR},
|
|
|
+ remark = #{remark,jdbcType=VARCHAR},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ create_userid = #{createUserid,jdbcType=VARCHAR},
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ update_userid = #{updateUserid,jdbcType=VARCHAR}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|