| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- 核三框架升级自动生成mapper文件 -->
- <!-- SDZLSX表牵涉到的sql文件 -->
- <!DOCTYPE mapper
- PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
- "http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd">
- <mapper namespace="SDZLSX">
- <!-- SDZLSX 全字段 -->
- <sql id="SDZLSX_COL">
- ZLLBID,ZLLBDM,ZLMC,ZLYSSX
- </sql>
- <!-- SDZLSX 选择字段 -->
- <sql id="SDZLSX_COLSEL">
- <trim suffixOverrides=",">
- <if test="ZLLBID != null">
- ZLLBID,
- </if>
- <if test="ZLLBDM != null">
- ZLLBDM,
- </if>
- <if test="ZLMC != null">
- ZLMC,
- </if>
- <if test="ZLYSSX != null">
- ZLYSSX
- </if>
- </trim>
- </sql>
- <!-- SDZLSX 记录数 -->
- <select id="SDZLSX_CNT" parameterType="hashmap" resultType="long">
- select count(1)
- from SDZLSX
- <where>
- <if test="ZLLBID != null">
- and ZLLBID=#{ZLLBID}
- </if>
- <if test="ZLLBDM != null">
- and ZLLBDM=#{ZLLBDM}
- </if>
- <if test="ZLMC != null">
- and ZLMC=#{ZLMC}
- </if>
- <if test="ZLYSSX != null">
- and ZLYSSX=#{ZLYSSX}
- </if>
- </where>
- </select>
- <!-- SDZLSX 全字段查询 -->
- <select id="SDZLSX_Q" parameterType="hashmap" resultType="hashmap">
- select
- <include refid="SDZLSX_COL" /> <!--引用前边定义的所有字段 -->
- from SDZLSX
- <where>
- <if test="ZLLBID != null">
- and ZLLBID=#{ZLLBID}
- </if>
- <if test="ZLLBDM != null">
- and ZLLBDM=#{ZLLBDM}
- </if>
- <if test="ZLMC != null">
- and ZLMC=#{ZLMC}
- </if>
- <if test="ZLYSSX != null">
- and ZLYSSX=#{ZLYSSX}
- </if>
- </where>
- </select>
- <!-- SDZLSX 选择查询 -->
- <select id="SDZLSX_QS" parameterType="hashmap" resultType="hashmap">
- select
- <include refid="SDZLSX_COLSEL" /> <!--引用前边定义的所有字段 -->
- from SDZLSX
- <where>
- <if test="ZLLBID != null">
- and ZLLBID=#{ZLLBID}
- </if>
- <if test="ZLLBDM != null">
- and ZLLBDM=#{ZLLBDM}
- </if>
- <if test="ZLMC != null">
- and ZLMC=#{ZLMC}
- </if>
- <if test="ZLYSSX != null">
- and ZLYSSX=#{ZLYSSX}
- </if>
- </where>
- </select>
- <!-- SDZLSX 插入 -->
- <insert id="SDZLSX_I" parameterType="hashmap">
- insert into SDZLSX (
- ZLLBID,ZLLBDM,ZLMC,ZLYSSX
- ) values (
- #{ZLLBID},#{ZLLBDM},#{ZLMC},#{ZLYSSX}
- )
- </insert>
- <!-- SDZLSX 插入-类型映射 -->
- <insert id="SDZLSX_IT" parameterType="hashmap">
- insert into SDZLSX (
- ZLLBID,ZLLBDM,ZLMC,ZLYSSX
- ) values (
- #{ZLLBID ,javaType=long,jdbcType=NUMERIC},#{ZLLBDM ,javaType=string,jdbcType=VARCHAR},
- #{ZLMC ,javaType=string,jdbcType=VARCHAR},#{ZLYSSX ,javaType=string,jdbcType=VARCHAR}
- )
- </insert>
- <!-- SDZLSX 选择字段插入 -->
- <insert id="SDZLSX_IS" parameterType="hashmap">
- insert into SDZLSX (
- <trim suffixOverrides=",">
- <if test="ZLLBID != null">ZLLBID,</if>
- <if test="ZLLBDM != null">ZLLBDM,</if>
- <if test="ZLMC != null">ZLMC,</if>
- <if test="ZLYSSX != null">ZLYSSX,</if>
- </trim>
- ) values (
- <trim suffixOverrides=",">
- <if test="ZLLBID != null">#{ZLLBID},</if>
- <if test="ZLLBDM != null">#{ZLLBDM},</if>
- <if test="ZLMC != null">#{ZLMC},</if>
- <if test="ZLYSSX != null">#{ZLYSSX},</if>
- </trim>
- )
- </insert>
- <!-- SDZLSX 修改 -->
- <update id="SDZLSX_U" parameterType="hashmap">
- update SDZLSX
- set
- ZLLBID= #{ZLLBID},ZLLBDM= #{ZLLBDM},ZLMC= #{ZLMC},
- ZLYSSX= #{ZLYSSX}
- where
- ZLLBID = #{ZLLBID}
- </update>
- <!-- SDZLSX 选择修改 -->
- <update id="SDZLSX_US" parameterType="hashmap">
- update SDZLSX
- set
- <trim suffixOverrides=",">
- <if test="ZLLBID != null">ZLLBID=#{ZLLBID},</if>
- <if test="ZLLBDM != null">ZLLBDM=#{ZLLBDM},</if>
- <if test="ZLMC != null">ZLMC=#{ZLMC},</if>
- <if test="ZLYSSX != null">ZLYSSX=#{ZLYSSX},</if>
- </trim>
- where
- ZLLBID = #{ZLLBID}
- </update>
- <!-- SDZLSX 删除 -->
- <delete id="SDZLSX_D" parameterType="hashmap">
- delete from SDZLSX
- <where>
- ZLLBID = #{ZLLBID}
- </where>
- </delete>
- </mapper>
|