123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <?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.ZzzdZzlbdmnewMapper">
- <resultMap id="BaseResultMap" type="com.ghsc.partybuild.model.ZzzdZzlbdmnew">
- <id column="BM" jdbcType="VARCHAR" property="bm" />
- <result column="HZMC" jdbcType="VARCHAR" property="hzmc" />
- <result column="XH" jdbcType="DECIMAL" property="xh" />
- <result column="YL01" jdbcType="VARCHAR" property="yl01" />
- <result column="YL02" jdbcType="VARCHAR" property="yl02" />
- <result column="YL03" jdbcType="VARCHAR" property="yl03" />
- </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">
- BM, HZMC, XH, YL01, YL02, YL03
- </sql>
- <select id="selectByExample" parameterType="com.ghsc.partybuild.model.ZzzdZzlbdmnewExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from zzzd_zzlbdmnew
- <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 zzzd_zzlbdmnew
- where BM = #{bm,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from zzzd_zzlbdmnew
- where BM = #{bm,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.ghsc.partybuild.model.ZzzdZzlbdmnewExample">
- delete from zzzd_zzlbdmnew
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.ghsc.partybuild.model.ZzzdZzlbdmnew">
- insert into zzzd_zzlbdmnew (BM, HZMC, XH,
- YL01, YL02, YL03)
- values (#{bm,jdbcType=VARCHAR}, #{hzmc,jdbcType=VARCHAR}, #{xh,jdbcType=DECIMAL},
- #{yl01,jdbcType=VARCHAR}, #{yl02,jdbcType=VARCHAR}, #{yl03,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.ghsc.partybuild.model.ZzzdZzlbdmnew">
- insert into zzzd_zzlbdmnew
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="bm != null">
- BM,
- </if>
- <if test="hzmc != null">
- HZMC,
- </if>
- <if test="xh != null">
- XH,
- </if>
- <if test="yl01 != null">
- YL01,
- </if>
- <if test="yl02 != null">
- YL02,
- </if>
- <if test="yl03 != null">
- YL03,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="bm != null">
- #{bm,jdbcType=VARCHAR},
- </if>
- <if test="hzmc != null">
- #{hzmc,jdbcType=VARCHAR},
- </if>
- <if test="xh != null">
- #{xh,jdbcType=DECIMAL},
- </if>
- <if test="yl01 != null">
- #{yl01,jdbcType=VARCHAR},
- </if>
- <if test="yl02 != null">
- #{yl02,jdbcType=VARCHAR},
- </if>
- <if test="yl03 != null">
- #{yl03,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.ghsc.partybuild.model.ZzzdZzlbdmnewExample" resultType="java.lang.Long">
- select count(*) from zzzd_zzlbdmnew
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update zzzd_zzlbdmnew
- <set>
- <if test="record.bm != null">
- BM = #{record.bm,jdbcType=VARCHAR},
- </if>
- <if test="record.hzmc != null">
- HZMC = #{record.hzmc,jdbcType=VARCHAR},
- </if>
- <if test="record.xh != null">
- XH = #{record.xh,jdbcType=DECIMAL},
- </if>
- <if test="record.yl01 != null">
- YL01 = #{record.yl01,jdbcType=VARCHAR},
- </if>
- <if test="record.yl02 != null">
- YL02 = #{record.yl02,jdbcType=VARCHAR},
- </if>
- <if test="record.yl03 != null">
- YL03 = #{record.yl03,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update zzzd_zzlbdmnew
- set BM = #{record.bm,jdbcType=VARCHAR},
- HZMC = #{record.hzmc,jdbcType=VARCHAR},
- XH = #{record.xh,jdbcType=DECIMAL},
- YL01 = #{record.yl01,jdbcType=VARCHAR},
- YL02 = #{record.yl02,jdbcType=VARCHAR},
- YL03 = #{record.yl03,jdbcType=VARCHAR}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.ghsc.partybuild.model.ZzzdZzlbdmnew">
- update zzzd_zzlbdmnew
- <set>
- <if test="hzmc != null">
- HZMC = #{hzmc,jdbcType=VARCHAR},
- </if>
- <if test="xh != null">
- XH = #{xh,jdbcType=DECIMAL},
- </if>
- <if test="yl01 != null">
- YL01 = #{yl01,jdbcType=VARCHAR},
- </if>
- <if test="yl02 != null">
- YL02 = #{yl02,jdbcType=VARCHAR},
- </if>
- <if test="yl03 != null">
- YL03 = #{yl03,jdbcType=VARCHAR},
- </if>
- </set>
- where BM = #{bm,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.ghsc.partybuild.model.ZzzdZzlbdmnew">
- update zzzd_zzlbdmnew
- set HZMC = #{hzmc,jdbcType=VARCHAR},
- XH = #{xh,jdbcType=DECIMAL},
- YL01 = #{yl01,jdbcType=VARCHAR},
- YL02 = #{yl02,jdbcType=VARCHAR},
- YL03 = #{yl03,jdbcType=VARCHAR}
- where BM = #{bm,jdbcType=VARCHAR}
- </update>
- </mapper>
|