123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <?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.TgjjGrdkzhxxMapper2">
- <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.TgjjGrdkzhxx" id="TgjjGrdkzhxxResult">
- </resultMap>
- <parameterMap id="TgjjGrdkzhxx" type="com.sooka.model.bo.TgjjGrdkzhxx"></parameterMap>
- <sql id="selectTgjjGrdkzhxxVo">
- select ID, DKZH, JKHTBH, DKFXDJ, DKFFE, DKFFRQ, DKYE, DKLL, DQJHHKJE, DQJHGHBJ, DQJHGHLX, DQYHJE, DQYHBJ, DQYHLX, DQYHFX, DKJQRQ, HSBJZE, HSLXZE, FXZE, TQGHBJZE, YQBJZE, YQLXZE, LJYQQS, DKZT, ZXBH, LAST_UPDATE_TIME lastUpdateTime, SCHKFSRQ, CLLX from tgjj_grdkzhxx
- </sql>
- <select id="selectTgjjGrdkzhxxList" parameterMap="TgjjGrdkzhxx" resultMap="TgjjGrdkzhxxResult">
- <include refid="selectTgjjGrdkzhxxVo"/>
- <where>
- <if test="DKZH != null and DKZH != ''">and DKZH = #{DKZH}</if>
- <if test="JKHTBH != null and JKHTBH != ''">and JKHTBH = #{JKHTBH}</if>
- <if test="DKFXDJ != null and DKFXDJ != ''">and DKFXDJ = #{DKFXDJ}</if>
- <if test="DKFFE != null ">and DKFFE = #{DKFFE}</if>
- <if test="DKFFRQ != null ">and DKFFRQ = #{DKFFRQ}</if>
- <if test="DKYE != null ">and DKYE = #{DKYE}</if>
- <if test="DKLL != null ">and DKLL = #{DKLL}</if>
- <if test="DQJHHKJE != null ">and DQJHHKJE = #{DQJHHKJE}</if>
- <if test="DQJHGHBJ != null ">and DQJHGHBJ = #{DQJHGHBJ}</if>
- <if test="DQJHGHLX != null ">and DQJHGHLX = #{DQJHGHLX}</if>
- <if test="DQYHJE != null ">and DQYHJE = #{DQYHJE}</if>
- <if test="DQYHBJ != null ">and DQYHBJ = #{DQYHBJ}</if>
- <if test="DQYHLX != null ">and DQYHLX = #{DQYHLX}</if>
- <if test="DQYHFX != null ">and DQYHFX = #{DQYHFX}</if>
- <if test="DKJQRQ != null ">and DKJQRQ = #{DKJQRQ}</if>
- <if test="HSBJZE != null ">and HSBJZE = #{HSBJZE}</if>
- <if test="HSLXZE != null ">and HSLXZE = #{HSLXZE}</if>
- <if test="FXZE != null ">and FXZE = #{FXZE}</if>
- <if test="TQGHBJZE != null ">and TQGHBJZE = #{TQGHBJZE}</if>
- <if test="YQBJZE != null ">and YQBJZE = #{YQBJZE}</if>
- <if test="YQLXZE != null ">and YQLXZE = #{YQLXZE}</if>
- <if test="LJYQQS != null ">and LJYQQS = #{LJYQQS}</if>
- <if test="DKZT != null and DKZT != ''">and DKZT = #{DKZT}</if>
- <if test="ZXBH != null and ZXBH != ''">and ZXBH = #{ZXBH}</if>
- <if test="lastUpdateTime != null ">and LAST_UPDATE_TIME = #{lastUpdateTime}</if>
- <if test="SCHKFSRQ != null ">and SCHKFSRQ = #{SCHKFSRQ}</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="selectTgjjGrdkzhxxById" parameterType="Long" resultMap="TgjjGrdkzhxxResult">
- <include refid="selectTgjjGrdkzhxxVo"/>
- where ID = #{ID}
- </select>
- <insert id="insertTgjjGrdkzhxx" parameterMap="TgjjGrdkzhxx" useGeneratedKeys="true" keyProperty="ID">
- insert into tgjj_grdkzhxx
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <include refid="global_name"></include>
- <if test="DKZH != null">DKZH,</if>
- <if test="JKHTBH != null">JKHTBH,</if>
- <if test="DKFXDJ != null">DKFXDJ,</if>
- <if test="DKFFE != null">DKFFE,</if>
- <if test="DKFFRQ != null">DKFFRQ,</if>
- <if test="DKYE != null">DKYE,</if>
- <if test="DKLL != null">DKLL,</if>
- <if test="DQJHHKJE != null">DQJHHKJE,</if>
- <if test="DQJHGHBJ != null">DQJHGHBJ,</if>
- <if test="DQJHGHLX != null">DQJHGHLX,</if>
- <if test="DQYHJE != null">DQYHJE,</if>
- <if test="DQYHBJ != null">DQYHBJ,</if>
- <if test="DQYHLX != null">DQYHLX,</if>
- <if test="DQYHFX != null">DQYHFX,</if>
- <if test="DKJQRQ != null">DKJQRQ,</if>
- <if test="HSBJZE != null">HSBJZE,</if>
- <if test="HSLXZE != null">HSLXZE,</if>
- <if test="FXZE != null">FXZE,</if>
- <if test="TQGHBJZE != null">TQGHBJZE,</if>
- <if test="YQBJZE != null">YQBJZE,</if>
- <if test="YQLXZE != null">YQLXZE,</if>
- <if test="LJYQQS != null">LJYQQS,</if>
- <if test="DKZT != null">DKZT,</if>
- <if test="ZXBH != null">ZXBH,</if>
- <if test="lastUpdateTime != null">LAST_UPDATE_TIME,</if>
- <if test="SCHKFSRQ != null">SCHKFSRQ,</if>
- <if test="CLLX != null">CLLX,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <include refid="global_value"></include>
- <if test="DKZH != null">#{DKZH},</if>
- <if test="JKHTBH != null">#{JKHTBH},</if>
- <if test="DKFXDJ != null">#{DKFXDJ},</if>
- <if test="DKFFE != null">#{DKFFE},</if>
- <if test="DKFFRQ != null">#{DKFFRQ},</if>
- <if test="DKYE != null">#{DKYE},</if>
- <if test="DKLL != null">#{DKLL},</if>
- <if test="DQJHHKJE != null">#{DQJHHKJE},</if>
- <if test="DQJHGHBJ != null">#{DQJHGHBJ},</if>
- <if test="DQJHGHLX != null">#{DQJHGHLX},</if>
- <if test="DQYHJE != null">#{DQYHJE},</if>
- <if test="DQYHBJ != null">#{DQYHBJ},</if>
- <if test="DQYHLX != null">#{DQYHLX},</if>
- <if test="DQYHFX != null">#{DQYHFX},</if>
- <if test="DKJQRQ != null">#{DKJQRQ},</if>
- <if test="HSBJZE != null">#{HSBJZE},</if>
- <if test="HSLXZE != null">#{HSLXZE},</if>
- <if test="FXZE != null">#{FXZE},</if>
- <if test="TQGHBJZE != null">#{TQGHBJZE},</if>
- <if test="YQBJZE != null">#{YQBJZE},</if>
- <if test="YQLXZE != null">#{YQLXZE},</if>
- <if test="LJYQQS != null">#{LJYQQS},</if>
- <if test="DKZT != null">#{DKZT},</if>
- <if test="ZXBH != null">#{ZXBH},</if>
- <if test="lastUpdateTime != null">#{lastUpdateTime},</if>
- <if test="SCHKFSRQ != null">#{SCHKFSRQ},</if>
- <if test="CLLX != null">#{CLLX},</if>
- </trim>
- </insert>
- <update id="updateTgjjGrdkzhxx" parameterMap="TgjjGrdkzhxx">
- update tgjj_grdkzhxx
- <trim prefix="SET" suffixOverrides=",">
- <include refid="update_sql"></include>
- <if test="DKZH != null">DKZH = #{DKZH},</if>
- <if test="JKHTBH != null">JKHTBH = #{JKHTBH},</if>
- <if test="DKFXDJ != null">DKFXDJ = #{DKFXDJ},</if>
- <if test="DKFFE != null">DKFFE = #{DKFFE},</if>
- <if test="DKFFRQ != null">DKFFRQ = #{DKFFRQ},</if>
- <if test="DKYE != null">DKYE = #{DKYE},</if>
- <if test="DKLL != null">DKLL = #{DKLL},</if>
- <if test="DQJHHKJE != null">DQJHHKJE = #{DQJHHKJE},</if>
- <if test="DQJHGHBJ != null">DQJHGHBJ = #{DQJHGHBJ},</if>
- <if test="DQJHGHLX != null">DQJHGHLX = #{DQJHGHLX},</if>
- <if test="DQYHJE != null">DQYHJE = #{DQYHJE},</if>
- <if test="DQYHBJ != null">DQYHBJ = #{DQYHBJ},</if>
- <if test="DQYHLX != null">DQYHLX = #{DQYHLX},</if>
- <if test="DQYHFX != null">DQYHFX = #{DQYHFX},</if>
- <if test="DKJQRQ != null">DKJQRQ = #{DKJQRQ},</if>
- <if test="HSBJZE != null">HSBJZE = #{HSBJZE},</if>
- <if test="HSLXZE != null">HSLXZE = #{HSLXZE},</if>
- <if test="FXZE != null">FXZE = #{FXZE},</if>
- <if test="TQGHBJZE != null">TQGHBJZE = #{TQGHBJZE},</if>
- <if test="YQBJZE != null">YQBJZE = #{YQBJZE},</if>
- <if test="YQLXZE != null">YQLXZE = #{YQLXZE},</if>
- <if test="LJYQQS != null">LJYQQS = #{LJYQQS},</if>
- <if test="DKZT != null">DKZT = #{DKZT},</if>
- <if test="ZXBH != null">ZXBH = #{ZXBH},</if>
- <if test="lastUpdateTime != null">LAST_UPDATE_TIME = #{lastUpdateTime},</if>
- <if test="SCHKFSRQ != null">SCHKFSRQ = #{SCHKFSRQ},</if>
- <if test="CLLX != null">CLLX = #{CLLX},</if>
- </trim>
- where ID = #{ID}
- </update>
- <select id="selectTgjjGrdkzhxxList_select_grdkzhxx" parameterMap="TgjjGrdkzhxx" resultMap="TgjjGrdkzhxxResult">
- <include refid="selectTgjjGrdkzhxxVo"/>
- <where>
- <if test="DKZH != null and DKZH != ''">
- and DKZH = #{DKZH}
- </if>
- </where>
- </select>
- </mapper>
|