| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- 核三框架升级自动生成mapper文件 -->
- <!-- YWLBZCXX表牵涉到的sql文件 -->
- <!DOCTYPE mapper
- PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
- "http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd">
- <mapper namespace="YWLBZCXX">
- <!-- YWLBZCXX 全字段 -->
- <sql id="YWLBZCXX_COL">
- YWLBID,YWXTID,YWLBDM,YWLBMC
- </sql>
- <!-- YWLBZCXX 选择字段 -->
- <sql id="YWLBZCXX_COLSEL">
- <trim suffixOverrides=",">
- <if test="YWLBID != null">
- YWLBID,
- </if>
- <if test="YWXTID != null">
- YWXTID,
- </if>
- <if test="YWLBDM != null">
- YWLBDM,
- </if>
- <if test="YWLBMC != null">
- YWLBMC
- </if>
- </trim>
- </sql>
- <!-- YWLBZCXX 记录数 -->
- <select id="YWLBZCXX_CNT" parameterType="hashmap" resultType="long">
- select count(1)
- from YWLBZCXX
- <where>
- <if test="YWLBID != null">
- and YWLBID=#{YWLBID}
- </if>
- <if test="YWXTID != null">
- and YWXTID=#{YWXTID}
- </if>
- <if test="YWLBDM != null">
- and YWLBDM=#{YWLBDM}
- </if>
- <if test="YWLBMC != null">
- and YWLBMC=#{YWLBMC}
- </if>
- </where>
- </select>
- <!-- YWLBZCXX 全字段查询 -->
- <select id="YWLBZCXX_Q" parameterType="hashmap" resultType="hashmap">
- select
- <include refid="YWLBZCXX_COL" /> <!--引用前边定义的所有字段 -->
- from YWLBZCXX
- <where>
- <if test="YWLBID != null">
- and YWLBID=#{YWLBID}
- </if>
- <if test="YWXTID != null">
- and YWXTID=#{YWXTID}
- </if>
- <if test="YWLBDM != null">
- and YWLBDM=#{YWLBDM}
- </if>
- <if test="YWLBMC != null">
- and YWLBMC=#{YWLBMC}
- </if>
- </where>
- </select>
- <!-- YWLBZCXX 选择查询 -->
- <select id="YWLBZCXX_QS" parameterType="hashmap" resultType="hashmap">
- select
- <include refid="YWLBZCXX_COLSEL" /> <!--引用前边定义的所有字段 -->
- from YWLBZCXX
- <where>
- <if test="YWLBID != null">
- and YWLBID=#{YWLBID}
- </if>
- <if test="YWXTID != null">
- and YWXTID=#{YWXTID}
- </if>
- <if test="YWLBDM != null">
- and YWLBDM=#{YWLBDM}
- </if>
- <if test="YWLBMC != null">
- and YWLBMC=#{YWLBMC}
- </if>
- </where>
- </select>
- <!-- YWLBZCXX 插入 -->
- <insert id="YWLBZCXX_I" parameterType="hashmap">
- insert into YWLBZCXX (
- YWLBID,YWXTID,YWLBDM,YWLBMC
- ) values (
- #{YWLBID},#{YWXTID},#{YWLBDM},#{YWLBMC}
- )
- </insert>
- <!-- YWLBZCXX 插入-类型映射 -->
- <insert id="YWLBZCXX_IT" parameterType="hashmap">
- insert into YWLBZCXX (
- YWLBID,YWXTID,YWLBDM,YWLBMC
- ) values (
- #{YWLBID ,javaType=long,jdbcType=NUMERIC},#{YWXTID ,javaType=long,jdbcType=NUMERIC},
- #{YWLBDM ,javaType=string,jdbcType=VARCHAR},#{YWLBMC ,javaType=string,jdbcType=VARCHAR}
- )
- </insert>
- <!-- YWLBZCXX 选择字段插入 -->
- <insert id="YWLBZCXX_IS" parameterType="hashmap">
- insert into YWLBZCXX (
- <trim suffixOverrides=",">
- <if test="YWLBID != null">YWLBID,</if>
- <if test="YWXTID != null">YWXTID,</if>
- <if test="YWLBDM != null">YWLBDM,</if>
- <if test="YWLBMC != null">YWLBMC,</if>
- </trim>
- ) values (
- <trim suffixOverrides=",">
- <if test="YWLBID != null">#{YWLBID},</if>
- <if test="YWXTID != null">#{YWXTID},</if>
- <if test="YWLBDM != null">#{YWLBDM},</if>
- <if test="YWLBMC != null">#{YWLBMC},</if>
- </trim>
- )
- </insert>
- <!-- YWLBZCXX 修改 -->
- <update id="YWLBZCXX_U" parameterType="hashmap">
- update YWLBZCXX
- set
- YWLBID= #{YWLBID},YWXTID= #{YWXTID},YWLBDM= #{YWLBDM},
- YWLBMC= #{YWLBMC}
- where
- YWLBID = #{YWLBID}
- </update>
- <!-- YWLBZCXX 选择修改 -->
- <update id="YWLBZCXX_US" parameterType="hashmap">
- update YWLBZCXX
- set
- <trim suffixOverrides=",">
- <if test="YWLBID != null">YWLBID=#{YWLBID},</if>
- <if test="YWXTID != null">YWXTID=#{YWXTID},</if>
- <if test="YWLBDM != null">YWLBDM=#{YWLBDM},</if>
- <if test="YWLBMC != null">YWLBMC=#{YWLBMC},</if>
- </trim>
- where
- YWLBID = #{YWLBID}
- </update>
- <!-- YWLBZCXX 删除 -->
- <delete id="YWLBZCXX_D" parameterType="hashmap">
- delete from YWLBZCXX
- <where>
- YWLBID = #{YWLBID}
- </where>
- </delete>
- </mapper>
|