123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260 |
- <?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.sooka.mapper.TgjjKjhzbMappe2r">
- <sql id="global_name">
- ID,create_time,cd_time,cd_batch,cd_operation,cd_source,
- </sql>
- <sql id="global_value">
- #{ID},now(),#{cd_time},#{cd_batch},#{cd_operation},#{cd_source},
- </sql>
- <sql id="update_sql">
- create_time = now(),cd_batch = #{cd_batch},cd_operation = #{cd_operation},cd_source =#{cd_source},
- </sql>
- <resultMap type="com.sooka.model.bo.TgjjKjhzb" id="TgjjKjhzbResult">
- </resultMap>
- <parameterMap id="TgjjKjhzb" type="com.sooka.model.bo.TgjjKjhzb"></parameterMap>
- <sql id="selectTgjjKjhzbVo">
- select ID, ZXBH, BBQC, ZFGJJCK, ZZSYCK, YSLX, QTYSK, WTDK, GRDK, XMDK, YQDK, GRYQDK, XMYQDK, GJZQ, ZFGJJ, YFLX, ZXYFK, ZFGJJGLZXGLFY, CSLZFJSBCZJZXYF, QTYFK, DKFXZB, GRDKFXZB, XMDKFXZB, ZZSY, ZZSYFP, TQDKFXZB, TQGRDKFXZB, TQXMDKFXZB, TQGJJZXGLFY, CSLZZFJSBCZJ, DFPZZSY, YWSR, ZFGJJLXSR, ZZSYLXSR, WTDKLXSR, GRDKLXSR, XMDKLXSR, GJZQLXSR, QTSR, GRDKYQFXSR, XMDKYQFXSR, YWZC, ZFGJJLXZC, ZFGJJGJSXFZC, WTDKSXFZC, GRDKSXFZC, XMDKSXFZC, XMDKQTZC, QTZC, LAST_UPDATE_TIME lastUpdateTime, CLLX from tgjj_kjhzb
- </sql>
- <select id="selectTgjjKjhzbList" parameterMap="TgjjKjhzb" resultMap="TgjjKjhzbResult">
- <include refid="selectTgjjKjhzbVo"/>
- <where>
- <if test="ZXBH != null and ZXBH != ''"> and ZXBH = #{ZXBH}</if>
- <if test="BBQC != null and BBQC != ''"> and BBQC = #{BBQC}</if>
- <if test="ZFGJJCK != null "> and ZFGJJCK = #{ZFGJJCK}</if>
- <if test="ZZSYCK != null "> and ZZSYCK = #{ZZSYCK}</if>
- <if test="YSLX != null "> and YSLX = #{YSLX}</if>
- <if test="QTYSK != null "> and QTYSK = #{QTYSK}</if>
- <if test="WTDK != null "> and WTDK = #{WTDK}</if>
- <if test="GRDK != null "> and GRDK = #{GRDK}</if>
- <if test="XMDK != null "> and XMDK = #{XMDK}</if>
- <if test="YQDK != null "> and YQDK = #{YQDK}</if>
- <if test="GRYQDK != null "> and GRYQDK = #{GRYQDK}</if>
- <if test="XMYQDK != null "> and XMYQDK = #{XMYQDK}</if>
- <if test="GJZQ != null "> and GJZQ = #{GJZQ}</if>
- <if test="ZFGJJ != null "> and ZFGJJ = #{ZFGJJ}</if>
- <if test="YFLX != null "> and YFLX = #{YFLX}</if>
- <if test="ZXYFK != null "> and ZXYFK = #{ZXYFK}</if>
- <if test="ZFGJJGLZXGLFY != null "> and ZFGJJGLZXGLFY = #{ZFGJJGLZXGLFY}</if>
- <if test="CSLZFJSBCZJZXYF != null "> and CSLZFJSBCZJZXYF = #{CSLZFJSBCZJZXYF}</if>
- <if test="QTYFK != null "> and QTYFK = #{QTYFK}</if>
- <if test="DKFXZB != null "> and DKFXZB = #{DKFXZB}</if>
- <if test="GRDKFXZB != null "> and GRDKFXZB = #{GRDKFXZB}</if>
- <if test="XMDKFXZB != null "> and XMDKFXZB = #{XMDKFXZB}</if>
- <if test="ZZSY != null "> and ZZSY = #{ZZSY}</if>
- <if test="ZZSYFP != null "> and ZZSYFP = #{ZZSYFP}</if>
- <if test="TQDKFXZB != null "> and TQDKFXZB = #{TQDKFXZB}</if>
- <if test="TQGRDKFXZB != null "> and TQGRDKFXZB = #{TQGRDKFXZB}</if>
- <if test="TQXMDKFXZB != null "> and TQXMDKFXZB = #{TQXMDKFXZB}</if>
- <if test="TQGJJZXGLFY != null "> and TQGJJZXGLFY = #{TQGJJZXGLFY}</if>
- <if test="CSLZZFJSBCZJ != null "> and CSLZZFJSBCZJ = #{CSLZZFJSBCZJ}</if>
- <if test="DFPZZSY != null "> and DFPZZSY = #{DFPZZSY}</if>
- <if test="YWSR != null "> and YWSR = #{YWSR}</if>
- <if test="ZFGJJLXSR != null "> and ZFGJJLXSR = #{ZFGJJLXSR}</if>
- <if test="ZZSYLXSR != null "> and ZZSYLXSR = #{ZZSYLXSR}</if>
- <if test="WTDKLXSR != null "> and WTDKLXSR = #{WTDKLXSR}</if>
- <if test="GRDKLXSR != null "> and GRDKLXSR = #{GRDKLXSR}</if>
- <if test="XMDKLXSR != null "> and XMDKLXSR = #{XMDKLXSR}</if>
- <if test="GJZQLXSR != null "> and GJZQLXSR = #{GJZQLXSR}</if>
- <if test="QTSR != null "> and QTSR = #{QTSR}</if>
- <if test="GRDKYQFXSR != null "> and GRDKYQFXSR = #{GRDKYQFXSR}</if>
- <if test="XMDKYQFXSR != null "> and XMDKYQFXSR = #{XMDKYQFXSR}</if>
- <if test="YWZC != null "> and YWZC = #{YWZC}</if>
- <if test="ZFGJJLXZC != null "> and ZFGJJLXZC = #{ZFGJJLXZC}</if>
- <if test="ZFGJJGJSXFZC != null "> and ZFGJJGJSXFZC = #{ZFGJJGJSXFZC}</if>
- <if test="WTDKSXFZC != null "> and WTDKSXFZC = #{WTDKSXFZC}</if>
- <if test="GRDKSXFZC != null "> and GRDKSXFZC = #{GRDKSXFZC}</if>
- <if test="XMDKSXFZC != null "> and XMDKSXFZC = #{XMDKSXFZC}</if>
- <if test="XMDKQTZC != null "> and XMDKQTZC = #{XMDKQTZC}</if>
- <if test="QTZC != null "> and QTZC = #{QTZC}</if>
- <if test="lastUpdateTime != null "> and LAST_UPDATE_TIME = #{lastUpdateTime}</if>
- <if test="CLLX != null "> and CLLX = #{CLLX}</if>
- <if test="search_begintime != null"> and LAST_UPDATE_TIME >= #{search_begintime}</if>
- <if test="search_endtime != null"> and LAST_UPDATE_TIME < #{search_endtime}</if>
- </where>
- </select>
- <select id="selectTgjjKjhzbById" parameterType="Long" resultMap="TgjjKjhzbResult">
- <include refid="selectTgjjKjhzbVo"/>
- where ID = #{ID}
- </select>
- <insert id="insertTgjjKjhzb" parameterMap="TgjjKjhzb" useGeneratedKeys="true" keyProperty="ID">
- insert into tgjj_kjhzb
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <include refid="global_name"></include>
- <if test="ZXBH != null">ZXBH,</if>
- <if test="BBQC != null">BBQC,</if>
- <if test="ZFGJJCK != null">ZFGJJCK,</if>
- <if test="ZZSYCK != null">ZZSYCK,</if>
- <if test="YSLX != null">YSLX,</if>
- <if test="QTYSK != null">QTYSK,</if>
- <if test="WTDK != null">WTDK,</if>
- <if test="GRDK != null">GRDK,</if>
- <if test="XMDK != null">XMDK,</if>
- <if test="YQDK != null">YQDK,</if>
- <if test="GRYQDK != null">GRYQDK,</if>
- <if test="XMYQDK != null">XMYQDK,</if>
- <if test="GJZQ != null">GJZQ,</if>
- <if test="ZFGJJ != null">ZFGJJ,</if>
- <if test="YFLX != null">YFLX,</if>
- <if test="ZXYFK != null">ZXYFK,</if>
- <if test="ZFGJJGLZXGLFY != null">ZFGJJGLZXGLFY,</if>
- <if test="CSLZFJSBCZJZXYF != null">CSLZFJSBCZJZXYF,</if>
- <if test="QTYFK != null">QTYFK,</if>
- <if test="DKFXZB != null">DKFXZB,</if>
- <if test="GRDKFXZB != null">GRDKFXZB,</if>
- <if test="XMDKFXZB != null">XMDKFXZB,</if>
- <if test="ZZSY != null">ZZSY,</if>
- <if test="ZZSYFP != null">ZZSYFP,</if>
- <if test="TQDKFXZB != null">TQDKFXZB,</if>
- <if test="TQGRDKFXZB != null">TQGRDKFXZB,</if>
- <if test="TQXMDKFXZB != null">TQXMDKFXZB,</if>
- <if test="TQGJJZXGLFY != null">TQGJJZXGLFY,</if>
- <if test="CSLZZFJSBCZJ != null">CSLZZFJSBCZJ,</if>
- <if test="DFPZZSY != null">DFPZZSY,</if>
- <if test="YWSR != null">YWSR,</if>
- <if test="ZFGJJLXSR != null">ZFGJJLXSR,</if>
- <if test="ZZSYLXSR != null">ZZSYLXSR,</if>
- <if test="WTDKLXSR != null">WTDKLXSR,</if>
- <if test="GRDKLXSR != null">GRDKLXSR,</if>
- <if test="XMDKLXSR != null">XMDKLXSR,</if>
- <if test="GJZQLXSR != null">GJZQLXSR,</if>
- <if test="QTSR != null">QTSR,</if>
- <if test="GRDKYQFXSR != null">GRDKYQFXSR,</if>
- <if test="XMDKYQFXSR != null">XMDKYQFXSR,</if>
- <if test="YWZC != null">YWZC,</if>
- <if test="ZFGJJLXZC != null">ZFGJJLXZC,</if>
- <if test="ZFGJJGJSXFZC != null">ZFGJJGJSXFZC,</if>
- <if test="WTDKSXFZC != null">WTDKSXFZC,</if>
- <if test="GRDKSXFZC != null">GRDKSXFZC,</if>
- <if test="XMDKSXFZC != null">XMDKSXFZC,</if>
- <if test="XMDKQTZC != null">XMDKQTZC,</if>
- <if test="QTZC != null">QTZC,</if>
- <if test="lastUpdateTime != null">LAST_UPDATE_TIME,</if>
- <if test="CLLX != null">CLLX,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <include refid="global_value"></include>
- <if test="ZXBH != null">#{ZXBH},</if>
- <if test="BBQC != null">#{BBQC},</if>
- <if test="ZFGJJCK != null">#{ZFGJJCK},</if>
- <if test="ZZSYCK != null">#{ZZSYCK},</if>
- <if test="YSLX != null">#{YSLX},</if>
- <if test="QTYSK != null">#{QTYSK},</if>
- <if test="WTDK != null">#{WTDK},</if>
- <if test="GRDK != null">#{GRDK},</if>
- <if test="XMDK != null">#{XMDK},</if>
- <if test="YQDK != null">#{YQDK},</if>
- <if test="GRYQDK != null">#{GRYQDK},</if>
- <if test="XMYQDK != null">#{XMYQDK},</if>
- <if test="GJZQ != null">#{GJZQ},</if>
- <if test="ZFGJJ != null">#{ZFGJJ},</if>
- <if test="YFLX != null">#{YFLX},</if>
- <if test="ZXYFK != null">#{ZXYFK},</if>
- <if test="ZFGJJGLZXGLFY != null">#{ZFGJJGLZXGLFY},</if>
- <if test="CSLZFJSBCZJZXYF != null">#{CSLZFJSBCZJZXYF},</if>
- <if test="QTYFK != null">#{QTYFK},</if>
- <if test="DKFXZB != null">#{DKFXZB},</if>
- <if test="GRDKFXZB != null">#{GRDKFXZB},</if>
- <if test="XMDKFXZB != null">#{XMDKFXZB},</if>
- <if test="ZZSY != null">#{ZZSY},</if>
- <if test="ZZSYFP != null">#{ZZSYFP},</if>
- <if test="TQDKFXZB != null">#{TQDKFXZB},</if>
- <if test="TQGRDKFXZB != null">#{TQGRDKFXZB},</if>
- <if test="TQXMDKFXZB != null">#{TQXMDKFXZB},</if>
- <if test="TQGJJZXGLFY != null">#{TQGJJZXGLFY},</if>
- <if test="CSLZZFJSBCZJ != null">#{CSLZZFJSBCZJ},</if>
- <if test="DFPZZSY != null">#{DFPZZSY},</if>
- <if test="YWSR != null">#{YWSR},</if>
- <if test="ZFGJJLXSR != null">#{ZFGJJLXSR},</if>
- <if test="ZZSYLXSR != null">#{ZZSYLXSR},</if>
- <if test="WTDKLXSR != null">#{WTDKLXSR},</if>
- <if test="GRDKLXSR != null">#{GRDKLXSR},</if>
- <if test="XMDKLXSR != null">#{XMDKLXSR},</if>
- <if test="GJZQLXSR != null">#{GJZQLXSR},</if>
- <if test="QTSR != null">#{QTSR},</if>
- <if test="GRDKYQFXSR != null">#{GRDKYQFXSR},</if>
- <if test="XMDKYQFXSR != null">#{XMDKYQFXSR},</if>
- <if test="YWZC != null">#{YWZC},</if>
- <if test="ZFGJJLXZC != null">#{ZFGJJLXZC},</if>
- <if test="ZFGJJGJSXFZC != null">#{ZFGJJGJSXFZC},</if>
- <if test="WTDKSXFZC != null">#{WTDKSXFZC},</if>
- <if test="GRDKSXFZC != null">#{GRDKSXFZC},</if>
- <if test="XMDKSXFZC != null">#{XMDKSXFZC},</if>
- <if test="XMDKQTZC != null">#{XMDKQTZC},</if>
- <if test="QTZC != null">#{QTZC},</if>
- <if test="lastUpdateTime != null">#{lastUpdateTime},</if>
- <if test="CLLX != null">#{CLLX},</if>
- </trim>
- </insert>
- <update id="updateTgjjKjhzb" parameterMap="TgjjKjhzb">
- update tgjj_kjhzb
- <trim prefix="SET" suffixOverrides=",">
- <include refid="update_sql"></include>
- <if test="ZXBH != null">ZXBH = #{ZXBH},</if>
- <if test="BBQC != null">BBQC = #{BBQC},</if>
- <if test="ZFGJJCK != null">ZFGJJCK = #{ZFGJJCK},</if>
- <if test="ZZSYCK != null">ZZSYCK = #{ZZSYCK},</if>
- <if test="YSLX != null">YSLX = #{YSLX},</if>
- <if test="QTYSK != null">QTYSK = #{QTYSK},</if>
- <if test="WTDK != null">WTDK = #{WTDK},</if>
- <if test="GRDK != null">GRDK = #{GRDK},</if>
- <if test="XMDK != null">XMDK = #{XMDK},</if>
- <if test="YQDK != null">YQDK = #{YQDK},</if>
- <if test="GRYQDK != null">GRYQDK = #{GRYQDK},</if>
- <if test="XMYQDK != null">XMYQDK = #{XMYQDK},</if>
- <if test="GJZQ != null">GJZQ = #{GJZQ},</if>
- <if test="ZFGJJ != null">ZFGJJ = #{ZFGJJ},</if>
- <if test="YFLX != null">YFLX = #{YFLX},</if>
- <if test="ZXYFK != null">ZXYFK = #{ZXYFK},</if>
- <if test="ZFGJJGLZXGLFY != null">ZFGJJGLZXGLFY = #{ZFGJJGLZXGLFY},</if>
- <if test="CSLZFJSBCZJZXYF != null">CSLZFJSBCZJZXYF = #{CSLZFJSBCZJZXYF},</if>
- <if test="QTYFK != null">QTYFK = #{QTYFK},</if>
- <if test="DKFXZB != null">DKFXZB = #{DKFXZB},</if>
- <if test="GRDKFXZB != null">GRDKFXZB = #{GRDKFXZB},</if>
- <if test="XMDKFXZB != null">XMDKFXZB = #{XMDKFXZB},</if>
- <if test="ZZSY != null">ZZSY = #{ZZSY},</if>
- <if test="ZZSYFP != null">ZZSYFP = #{ZZSYFP},</if>
- <if test="TQDKFXZB != null">TQDKFXZB = #{TQDKFXZB},</if>
- <if test="TQGRDKFXZB != null">TQGRDKFXZB = #{TQGRDKFXZB},</if>
- <if test="TQXMDKFXZB != null">TQXMDKFXZB = #{TQXMDKFXZB},</if>
- <if test="TQGJJZXGLFY != null">TQGJJZXGLFY = #{TQGJJZXGLFY},</if>
- <if test="CSLZZFJSBCZJ != null">CSLZZFJSBCZJ = #{CSLZZFJSBCZJ},</if>
- <if test="DFPZZSY != null">DFPZZSY = #{DFPZZSY},</if>
- <if test="YWSR != null">YWSR = #{YWSR},</if>
- <if test="ZFGJJLXSR != null">ZFGJJLXSR = #{ZFGJJLXSR},</if>
- <if test="ZZSYLXSR != null">ZZSYLXSR = #{ZZSYLXSR},</if>
- <if test="WTDKLXSR != null">WTDKLXSR = #{WTDKLXSR},</if>
- <if test="GRDKLXSR != null">GRDKLXSR = #{GRDKLXSR},</if>
- <if test="XMDKLXSR != null">XMDKLXSR = #{XMDKLXSR},</if>
- <if test="GJZQLXSR != null">GJZQLXSR = #{GJZQLXSR},</if>
- <if test="QTSR != null">QTSR = #{QTSR},</if>
- <if test="GRDKYQFXSR != null">GRDKYQFXSR = #{GRDKYQFXSR},</if>
- <if test="XMDKYQFXSR != null">XMDKYQFXSR = #{XMDKYQFXSR},</if>
- <if test="YWZC != null">YWZC = #{YWZC},</if>
- <if test="ZFGJJLXZC != null">ZFGJJLXZC = #{ZFGJJLXZC},</if>
- <if test="ZFGJJGJSXFZC != null">ZFGJJGJSXFZC = #{ZFGJJGJSXFZC},</if>
- <if test="WTDKSXFZC != null">WTDKSXFZC = #{WTDKSXFZC},</if>
- <if test="GRDKSXFZC != null">GRDKSXFZC = #{GRDKSXFZC},</if>
- <if test="XMDKSXFZC != null">XMDKSXFZC = #{XMDKSXFZC},</if>
- <if test="XMDKQTZC != null">XMDKQTZC = #{XMDKQTZC},</if>
- <if test="QTZC != null">QTZC = #{QTZC},</if>
- <if test="lastUpdateTime != null">LAST_UPDATE_TIME = #{lastUpdateTime},</if>
- <if test="CLLX != null">CLLX = #{CLLX},</if>
- </trim>
- where ID = #{ID}
- </update>
- </mapper>
|