123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- <?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.PfDnjzjyMapper">
- <resultMap id="BaseResultMap" type="com.ghsc.partybuild.model.PfDnjzjy">
- <id column="id" jdbcType="VARCHAR" property="id" />
- <result column="dzzdm" jdbcType="VARCHAR" property="dzzdm" />
- <result column="jykssj" jdbcType="VARCHAR" property="jykssj" />
- <result column="jyjssj" jdbcType="VARCHAR" property="jyjssj" />
- <result column="zt" jdbcType="VARCHAR" property="zt" />
- <result column="zygzbz" jdbcType="VARCHAR" property="zygzbz" />
- <result column="qddcx" jdbcType="VARCHAR" property="qddcx" />
- <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, jykssj, jyjssj, zt, zygzbz, qddcx, create_time, create_userid, update_time,
- update_userid
- </sql>
- <select id="selectByExample" parameterType="com.ghsc.partybuild.model.PfDnjzjyExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from pf_dnjzjy
- <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 pf_dnjzjy
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from pf_dnjzjy
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.ghsc.partybuild.model.PfDnjzjyExample">
- delete from pf_dnjzjy
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.ghsc.partybuild.model.PfDnjzjy">
- insert into pf_dnjzjy (id, dzzdm, jykssj,
- jyjssj, zt, zygzbz,
- qddcx, create_time, create_userid,
- update_time, update_userid)
- values (#{id,jdbcType=VARCHAR}, #{dzzdm,jdbcType=VARCHAR}, #{jykssj,jdbcType=VARCHAR},
- #{jyjssj,jdbcType=VARCHAR}, #{zt,jdbcType=VARCHAR}, #{zygzbz,jdbcType=VARCHAR},
- #{qddcx,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=VARCHAR},
- #{updateTime,jdbcType=TIMESTAMP}, #{updateUserid,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.ghsc.partybuild.model.PfDnjzjy">
- insert into pf_dnjzjy
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="dzzdm != null">
- dzzdm,
- </if>
- <if test="jykssj != null">
- jykssj,
- </if>
- <if test="jyjssj != null">
- jyjssj,
- </if>
- <if test="zt != null">
- zt,
- </if>
- <if test="zygzbz != null">
- zygzbz,
- </if>
- <if test="qddcx != null">
- qddcx,
- </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="jykssj != null">
- #{jykssj,jdbcType=VARCHAR},
- </if>
- <if test="jyjssj != null">
- #{jyjssj,jdbcType=VARCHAR},
- </if>
- <if test="zt != null">
- #{zt,jdbcType=VARCHAR},
- </if>
- <if test="zygzbz != null">
- #{zygzbz,jdbcType=VARCHAR},
- </if>
- <if test="qddcx != null">
- #{qddcx,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.PfDnjzjyExample" resultType="java.lang.Long">
- select count(*) from pf_dnjzjy
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update pf_dnjzjy
- <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.jykssj != null">
- jykssj = #{record.jykssj,jdbcType=VARCHAR},
- </if>
- <if test="record.jyjssj != null">
- jyjssj = #{record.jyjssj,jdbcType=VARCHAR},
- </if>
- <if test="record.zt != null">
- zt = #{record.zt,jdbcType=VARCHAR},
- </if>
- <if test="record.zygzbz != null">
- zygzbz = #{record.zygzbz,jdbcType=VARCHAR},
- </if>
- <if test="record.qddcx != null">
- qddcx = #{record.qddcx,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 pf_dnjzjy
- set id = #{record.id,jdbcType=VARCHAR},
- dzzdm = #{record.dzzdm,jdbcType=VARCHAR},
- jykssj = #{record.jykssj,jdbcType=VARCHAR},
- jyjssj = #{record.jyjssj,jdbcType=VARCHAR},
- zt = #{record.zt,jdbcType=VARCHAR},
- zygzbz = #{record.zygzbz,jdbcType=VARCHAR},
- qddcx = #{record.qddcx,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.PfDnjzjy">
- update pf_dnjzjy
- <set>
- <if test="dzzdm != null">
- dzzdm = #{dzzdm,jdbcType=VARCHAR},
- </if>
- <if test="jykssj != null">
- jykssj = #{jykssj,jdbcType=VARCHAR},
- </if>
- <if test="jyjssj != null">
- jyjssj = #{jyjssj,jdbcType=VARCHAR},
- </if>
- <if test="zt != null">
- zt = #{zt,jdbcType=VARCHAR},
- </if>
- <if test="zygzbz != null">
- zygzbz = #{zygzbz,jdbcType=VARCHAR},
- </if>
- <if test="qddcx != null">
- qddcx = #{qddcx,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.PfDnjzjy">
- update pf_dnjzjy
- set dzzdm = #{dzzdm,jdbcType=VARCHAR},
- jykssj = #{jykssj,jdbcType=VARCHAR},
- jyjssj = #{jyjssj,jdbcType=VARCHAR},
- zt = #{zt,jdbcType=VARCHAR},
- zygzbz = #{zygzbz,jdbcType=VARCHAR},
- qddcx = #{qddcx,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>
|