| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- 核三框架升级自动生成mapper文件 -->
- <!-- SDSZZCXX表牵涉到的sql文件 -->
- <!DOCTYPE mapper
- PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
- "http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd">
- <mapper namespace="SDSZZCXX">
- <!-- SDSZZCXX 全字段 -->
- <sql id="SDSZZCXX_COL">
- DZZZBZ,ORDERNO,SFBSBZ,SDSZID,YWLBID,ZLLBID,SDFS,
- FS,SFGDBZ,YJFS,FYJFS,CLSM,CLXS
- </sql>
- <!-- SDSZZCXX 选择字段 -->
- <sql id="SDSZZCXX_COLSEL">
- <trim suffixOverrides=",">
- <if test="DZZZBZ != null">
- DZZZBZ,
- </if>
- <if test="ORDERNO != null">
- ORDERNO,
- </if>
- <if test="SFBSBZ != null">
- SFBSBZ,
- </if>
- <if test="SDSZID != null">
- SDSZID,
- </if>
- <if test="YWLBID != null">
- YWLBID,
- </if>
- <if test="ZLLBID != null">
- ZLLBID,
- </if>
- <if test="SDFS != null">
- SDFS,
- </if>
- <if test="FS != null">
- FS,
- </if>
- <if test="SFGDBZ != null">
- SFGDBZ
- </if>
- </trim>
- </sql>
- <!-- SDSZZCXX 记录数 -->
- <select id="SDSZZCXX_CNT" parameterType="hashmap" resultType="long">
- select count(1)
- from SDSZZCXX
- <where>
- <if test="DZZZBZ != null">
- and DZZZBZ=#{DZZZBZ}
- </if>
- <if test="ORDERNO != null">
- and ORDERNO=#{ORDERNO}
- </if>
- <if test="SFBSBZ != null">
- and SFBSBZ=#{SFBSBZ}
- </if>
- <if test="SDSZID != null">
- and SDSZID=#{SDSZID}
- </if>
- <if test="YWLBID != null">
- and YWLBID=#{YWLBID}
- </if>
- <if test="ZLLBID != null">
- and ZLLBID=#{ZLLBID}
- </if>
- <if test="SDFS != null">
- and SDFS=#{SDFS}
- </if>
- <if test="FS != null">
- and FS=#{FS}
- </if>
- <if test="SFGDBZ != null">
- and SFGDBZ=#{SFGDBZ}
- </if>
- </where>
- </select>
- <!-- SDSZZCXX 全字段查询 -->
- <select id="SDSZZCXX_Q" parameterType="hashmap" resultType="hashmap">
- select
- <include refid="SDSZZCXX_COL" /> <!--引用前边定义的所有字段 -->
- from SDSZZCXX
- <where>
- <if test="DZZZBZ != null">
- and DZZZBZ=#{DZZZBZ}
- </if>
- <if test="ORDERNO != null">
- and ORDERNO=#{ORDERNO}
- </if>
- <if test="SFBSBZ != null">
- and SFBSBZ=#{SFBSBZ}
- </if>
- <if test="SDSZID != null">
- and SDSZID=#{SDSZID}
- </if>
- <if test="YWLBID != null">
- and YWLBID=#{YWLBID}
- </if>
- <if test="ZLLBID != null">
- and ZLLBID=#{ZLLBID}
- </if>
- <if test="SDFS != null">
- and SDFS=#{SDFS}
- </if>
- <if test="FS != null">
- and FS=#{FS}
- </if>
- <if test="SFGDBZ != null">
- and SFGDBZ=#{SFGDBZ}
- </if>
- <if test="SYDX != null">
- and SYDX like '%' || #{SYDX} || '%'
- </if>
- </where>
- </select>
- <!-- SDSZZCXX 选择查询 -->
- <select id="SDSZZCXX_QS" parameterType="hashmap" resultType="hashmap">
- select
- <include refid="SDSZZCXX_COLSEL" /> <!--引用前边定义的所有字段 -->
- from SDSZZCXX
- <where>
- <if test="DZZZBZ != null">
- and DZZZBZ=#{DZZZBZ}
- </if>
- <if test="ORDERNO != null">
- and ORDERNO=#{ORDERNO}
- </if>
- <if test="SFBSBZ != null">
- and SFBSBZ=#{SFBSBZ}
- </if>
- <if test="SDSZID != null">
- and SDSZID=#{SDSZID}
- </if>
- <if test="YWLBID != null">
- and YWLBID=#{YWLBID}
- </if>
- <if test="ZLLBID != null">
- and ZLLBID=#{ZLLBID}
- </if>
- <if test="SDFS != null">
- and SDFS=#{SDFS}
- </if>
- <if test="FS != null">
- and FS=#{FS}
- </if>
- <if test="SFGDBZ != null">
- and SFGDBZ=#{SFGDBZ}
- </if>
- </where>
- </select>
- <!-- SDSZZCXX 插入 -->
- <insert id="SDSZZCXX_I" parameterType="hashmap">
- insert into SDSZZCXX (
- DZZZBZ,ORDERNO,SFBSBZ,SDSZID,YWLBID,ZLLBID,SDFS,
- FS,SFGDBZ
- ) values (
- #{DZZZBZ},#{ORDERNO},#{SFBSBZ},#{SDSZID},#{YWLBID},#{ZLLBID},#{SDFS},
- #{FS},#{SFGDBZ}
- )
- </insert>
- <!-- SDSZZCXX 插入-类型映射 -->
- <insert id="SDSZZCXX_IT" parameterType="hashmap">
- insert into SDSZZCXX (
- DZZZBZ,ORDERNO,SFBSBZ,SDSZID,YWLBID,ZLLBID,SDFS,
- FS,SFGDBZ
- ) values (
- #{DZZZBZ ,javaType=string,jdbcType=VARCHAR},#{ORDERNO ,javaType=long,jdbcType=NUMERIC},
- #{SFBSBZ ,javaType=string,jdbcType=VARCHAR},#{SDSZID ,javaType=long,jdbcType=NUMERIC},#{YWLBID ,javaType=long,jdbcType=NUMERIC},
- #{ZLLBID ,javaType=long,jdbcType=NUMERIC},#{SDFS ,javaType=string,jdbcType=VARCHAR},#{FS ,javaType=long,jdbcType=NUMERIC},
- #{SFGDBZ ,javaType=string,jdbcType=VARCHAR}
- )
- </insert>
- <!-- SDSZZCXX 选择字段插入 -->
- <insert id="SDSZZCXX_IS" parameterType="hashmap">
- insert into SDSZZCXX (
- <trim suffixOverrides=",">
- <if test="DZZZBZ != null">DZZZBZ,</if>
- <if test="ORDERNO != null">ORDERNO,</if>
- <if test="SFBSBZ != null">SFBSBZ,</if>
- <if test="SDSZID != null">SDSZID,</if>
- <if test="YWLBID != null">YWLBID,</if>
- <if test="ZLLBID != null">ZLLBID,</if>
- <if test="SDFS != null">SDFS,</if>
- <if test="FS != null">FS,</if>
- <if test="SFGDBZ != null">SFGDBZ,</if>
- </trim>
- ) values (
- <trim suffixOverrides=",">
- <if test="DZZZBZ != null">#{DZZZBZ},</if>
- <if test="ORDERNO != null">#{ORDERNO},</if>
- <if test="SFBSBZ != null">#{SFBSBZ},</if>
- <if test="SDSZID != null">#{SDSZID},</if>
- <if test="YWLBID != null">#{YWLBID},</if>
- <if test="ZLLBID != null">#{ZLLBID},</if>
- <if test="SDFS != null">#{SDFS},</if>
- <if test="FS != null">#{FS},</if>
- <if test="SFGDBZ != null">#{SFGDBZ},</if>
- </trim>
- )
- </insert>
- <!-- SDSZZCXX 修改 -->
- <update id="SDSZZCXX_U" parameterType="hashmap">
- update SDSZZCXX
- set
- DZZZBZ= #{DZZZBZ},ORDERNO= #{ORDERNO},SFBSBZ= #{SFBSBZ},
- SDSZID= #{SDSZID},YWLBID= #{YWLBID},ZLLBID= #{ZLLBID},SDFS= #{SDFS},
- FS= #{FS},SFGDBZ= #{SFGDBZ}
- where
- SDSZID = #{SDSZID}
- </update>
- <!-- SDSZZCXX 选择修改 -->
- <update id="SDSZZCXX_US" parameterType="hashmap">
- update SDSZZCXX
- set
- <trim suffixOverrides=",">
- <if test="DZZZBZ != null">DZZZBZ=#{DZZZBZ},</if>
- <if test="ORDERNO != null">ORDERNO=#{ORDERNO},</if>
- <if test="SFBSBZ != null">SFBSBZ=#{SFBSBZ},</if>
- <if test="SDSZID != null">SDSZID=#{SDSZID},</if>
- <if test="YWLBID != null">YWLBID=#{YWLBID},</if>
- <if test="ZLLBID != null">ZLLBID=#{ZLLBID},</if>
- <if test="SDFS != null">SDFS=#{SDFS},</if>
- <if test="FS != null">FS=#{FS},</if>
- <if test="SFGDBZ != null">SFGDBZ=#{SFGDBZ},</if>
- </trim>
- where
- SDSZID = #{SDSZID}
- </update>
- <!-- SDSZZCXX 删除 -->
- <delete id="SDSZZCXX_D" parameterType="hashmap">
- delete from SDSZZCXX
- <where>
- SDSZID = #{SDSZID}
- </where>
- </delete>
- </mapper>
|