| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- 核三框架升级自动生成mapper文件 -->
- <!-- SDJL表牵涉到的sql文件 -->
- <!DOCTYPE mapper
- PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
- "http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd">
- <mapper namespace="SDJL">
- <!-- SDJL 全字段 -->
- <sql id="SDJL_COL">
- SDJLID,YWGLH,YWXTID,YWLBID,JBR,JBSJ,SDZTID,
- SDZT
- </sql>
- <!-- SDJL 选择字段 -->
- <sql id="SDJL_COLSEL">
- <trim suffixOverrides=",">
- <if test="SDJLID != null">
- SDJLID,
- </if>
- <if test="YWGLH != null">
- YWGLH,
- </if>
- <if test="YWXTID != null">
- YWXTID,
- </if>
- <if test="YWLBID != null">
- YWLBID,
- </if>
- <if test="JBR != null">
- JBR,
- </if>
- <if test="JBSJ != null">
- JBSJ,
- </if>
- <if test="SDZTID != null">
- SDZTID,
- </if>
- <if test="SDZT != null">
- SDZT
- </if>
- </trim>
- </sql>
- <!-- SDJL 记录数 -->
- <select id="SDJL_CNT" parameterType="hashmap" resultType="long">
- select count(1)
- from SDJL
- <where>
- <if test="SDJLID != null">
- and SDJLID=#{SDJLID}
- </if>
- <if test="YWGLH != null">
- and YWGLH=#{YWGLH}
- </if>
- <if test="YWXTID != null">
- and YWXTID=#{YWXTID}
- </if>
- <if test="YWLBID != null">
- and YWLBID=#{YWLBID}
- </if>
- <if test="JBR != null">
- and JBR=#{JBR}
- </if>
- <if test="JBSJ != null">
- and JBSJ=#{JBSJ}
- </if>
- <if test="SDZTID != null">
- and SDZTID=#{SDZTID}
- </if>
- <if test="SDZT != null">
- and SDZT=#{SDZT}
- </if>
- </where>
- </select>
- <!-- SDJL 全字段查询 -->
- <select id="SDJL_Q" parameterType="hashmap" resultType="hashmap">
- select
- <include refid="SDJL_COL" /> <!--引用前边定义的所有字段 -->
- from SDJL
- <where>
- <if test="SDJLID != null">
- and SDJLID=#{SDJLID}
- </if>
- <if test="YWGLH != null">
- and YWGLH=#{YWGLH}
- </if>
- <if test="YWXTID != null">
- and YWXTID=#{YWXTID}
- </if>
- <if test="YWLBID != null">
- and YWLBID=#{YWLBID}
- </if>
- <if test="JBR != null">
- and JBR=#{JBR}
- </if>
- <if test="JBSJ != null">
- and JBSJ=#{JBSJ}
- </if>
- <if test="SDZTID != null">
- and SDZTID=#{SDZTID}
- </if>
- <if test="SDZT != null">
- and SDZT=#{SDZT}
- </if>
- </where>
- </select>
- <!-- SDJL 选择查询 -->
- <select id="SDJL_QS" parameterType="hashmap" resultType="hashmap">
- select
- <include refid="SDJL_COLSEL" /> <!--引用前边定义的所有字段 -->
- from SDJL
- <where>
- <if test="SDJLID != null">
- and SDJLID=#{SDJLID}
- </if>
- <if test="YWGLH != null">
- and YWGLH=#{YWGLH}
- </if>
- <if test="YWXTID != null">
- and YWXTID=#{YWXTID}
- </if>
- <if test="YWLBID != null">
- and YWLBID=#{YWLBID}
- </if>
- <if test="JBR != null">
- and JBR=#{JBR}
- </if>
- <if test="JBSJ != null">
- and JBSJ=#{JBSJ}
- </if>
- <if test="SDZTID != null">
- and SDZTID=#{SDZTID}
- </if>
- <if test="SDZT != null">
- and SDZT=#{SDZT}
- </if>
- </where>
- </select>
- <!-- SDJL 插入 -->
- <insert id="SDJL_I" parameterType="hashmap">
- insert into SDJL (
- SDJLID,YWGLH,YWXTID,YWLBID,JBR,JBSJ,SDZTID,
- SDZT
- ) values (
- #{SDJLID},#{YWGLH},#{YWXTID},#{YWLBID},#{JBR},#{JBSJ},#{SDZTID},
- #{SDZT}
- )
- </insert>
- <!-- SDJL 插入-类型映射 -->
- <insert id="SDJL_IT" parameterType="hashmap">
- insert into SDJL (
- SDJLID,YWGLH,YWXTID,YWLBID,JBR,JBSJ,SDZTID,
- SDZT
- ) values (
- #{SDJLID ,javaType=long,jdbcType=NUMERIC},#{YWGLH ,javaType=string,jdbcType=VARCHAR},
- #{YWXTID ,javaType=long,jdbcType=NUMERIC},#{YWLBID ,javaType=long,jdbcType=NUMERIC},#{JBR ,javaType=string,jdbcType=VARCHAR},
- #{JBSJ ,javaType=long,jdbcType=NUMERIC},#{SDZTID ,javaType=long,jdbcType=NUMERIC},#{SDZT ,javaType=string,jdbcType=VARCHAR}
- )
- </insert>
- <!-- SDJL 选择字段插入 -->
- <insert id="SDJL_IS" parameterType="hashmap">
- insert into SDJL (
- <trim suffixOverrides=",">
- <if test="SDJLID != null">SDJLID,</if>
- <if test="YWGLH != null">YWGLH,</if>
- <if test="YWXTID != null">YWXTID,</if>
- <if test="YWLBID != null">YWLBID,</if>
- <if test="JBR != null">JBR,</if>
- <if test="JBSJ != null">JBSJ,</if>
- <if test="SDZTID != null">SDZTID,</if>
- <if test="SDZT != null">SDZT,</if>
- </trim>
- ) values (
- <trim suffixOverrides=",">
- <if test="SDJLID != null">#{SDJLID},</if>
- <if test="YWGLH != null">#{YWGLH},</if>
- <if test="YWXTID != null">#{YWXTID},</if>
- <if test="YWLBID != null">#{YWLBID},</if>
- <if test="JBR != null">#{JBR},</if>
- <if test="JBSJ != null">#{JBSJ},</if>
- <if test="SDZTID != null">#{SDZTID},</if>
- <if test="SDZT != null">#{SDZT},</if>
- </trim>
- )
- </insert>
- <!-- SDJL 修改 -->
- <update id="SDJL_U" parameterType="hashmap">
- update SDJL
- set
- SDJLID= #{SDJLID},YWGLH= #{YWGLH},YWXTID= #{YWXTID},
- YWLBID= #{YWLBID},JBR= #{JBR},JBSJ= #{JBSJ},SDZTID= #{SDZTID},
- SDZT= #{SDZT}
- where
- SDJLID = #{SDJLID}
- </update>
- <!-- SDJL 选择修改 -->
- <update id="SDJL_US" parameterType="hashmap">
- update SDJL
- set
- <trim suffixOverrides=",">
- <if test="SDJLID != null">SDJLID=#{SDJLID},</if>
- <if test="YWGLH != null">YWGLH=#{YWGLH},</if>
- <if test="YWXTID != null">YWXTID=#{YWXTID},</if>
- <if test="YWLBID != null">YWLBID=#{YWLBID},</if>
- <if test="JBR != null">JBR=#{JBR},</if>
- <if test="JBSJ != null">JBSJ=#{JBSJ},</if>
- <if test="SDZTID != null">SDZTID=#{SDZTID},</if>
- <if test="SDZT != null">SDZT=#{SDZT},</if>
- </trim>
- where
- SDJLID = #{SDJLID}
- </update>
- <!-- SDJL 删除 -->
- <delete id="SDJL_D" parameterType="hashmap">
- delete from SDJL
- <where>
- SDJLID = #{SDJLID}
- </where>
- </delete>
- <!-- SDJL 序列 -->
- <select id="SDJLID_SEQ" parameterType="hashmap" resultType="string">
- select seq_sdjlid.nextval from dual
- </select>
- </mapper>
|