123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- <?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.TgjjDbxxMapper2">
- <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.TgjjDbxx" id="TgjjDbxxResult">
- </resultMap>
- <parameterMap id="TgjjDbxx" type="com.sooka.model.bo.TgjjDbxx"></parameterMap>
- <sql id="selectTgjjDbxxVo">
- select ID, DBHTBH, JKHTBH, DBJGMC, DYWQZH, DYWTXQZH, DYWFWZL, DYQJLRQ, DYQJCRQ, DYWPGJZ, BZHTBH, BZJGMC, DKBZJ, ZYHTBH, ZYWBH, ZYWMC, ZYWJZ, ZYHTKSRQ, ZYHTJSRQ, ZXBH, LAST_UPDATE_TIME lastUpdateTime, DYFWGFHTH, CLLX from tgjj_dbxx
- </sql>
- <select id="selectTgjjDbxxList" parameterMap="TgjjDbxx" resultMap="TgjjDbxxResult">
- <include refid="selectTgjjDbxxVo"/>
- <where>
- <if test="DBHTBH != null and DBHTBH != ''">and DBHTBH = #{DBHTBH}</if>
- <if test="JKHTBH != null and JKHTBH != ''">and JKHTBH = #{JKHTBH}</if>
- <if test="DBJGMC != null and DBJGMC != ''">and DBJGMC = #{DBJGMC}</if>
- <if test="DYWQZH != null and DYWQZH != ''">and DYWQZH = #{DYWQZH}</if>
- <if test="DYWTXQZH != null and DYWTXQZH != ''">and DYWTXQZH = #{DYWTXQZH}</if>
- <if test="DYWFWZL != null and DYWFWZL != ''">and DYWFWZL = #{DYWFWZL}</if>
- <if test="DYQJLRQ != null ">and DYQJLRQ = #{DYQJLRQ}</if>
- <if test="DYQJCRQ != null ">and DYQJCRQ = #{DYQJCRQ}</if>
- <if test="DYWPGJZ != null ">and DYWPGJZ = #{DYWPGJZ}</if>
- <if test="BZHTBH != null and BZHTBH != ''">and BZHTBH = #{BZHTBH}</if>
- <if test="BZJGMC != null and BZJGMC != ''">and BZJGMC = #{BZJGMC}</if>
- <if test="DKBZJ != null ">and DKBZJ = #{DKBZJ}</if>
- <if test="ZYHTBH != null and ZYHTBH != ''">and ZYHTBH = #{ZYHTBH}</if>
- <if test="ZYWBH != null and ZYWBH != ''">and ZYWBH = #{ZYWBH}</if>
- <if test="ZYWMC != null and ZYWMC != ''">and ZYWMC = #{ZYWMC}</if>
- <if test="ZYWJZ != null ">and ZYWJZ = #{ZYWJZ}</if>
- <if test="ZYHTKSRQ != null ">and ZYHTKSRQ = #{ZYHTKSRQ}</if>
- <if test="ZYHTJSRQ != null ">and ZYHTJSRQ = #{ZYHTJSRQ}</if>
- <if test="ZXBH != null and ZXBH != ''">and ZXBH = #{ZXBH}</if>
- <if test="lastUpdateTime != null ">and LAST_UPDATE_TIME = #{lastUpdateTime}</if>
- <if test="DYFWGFHTH != null and DYFWGFHTH != ''">and DYFWGFHTH = #{DYFWGFHTH}</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="selectTgjjDbxxById" parameterType="Long" resultMap="TgjjDbxxResult">
- <include refid="selectTgjjDbxxVo"/>
- where ID = #{ID}
- </select>
- <insert id="insertTgjjDbxx" parameterMap="TgjjDbxx" useGeneratedKeys="true" keyProperty="ID">
- insert into tgjj_dbxx
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <include refid="global_name"></include>
- <if test="DBHTBH != null">DBHTBH,</if>
- <if test="JKHTBH != null">JKHTBH,</if>
- <if test="DBJGMC != null">DBJGMC,</if>
- <if test="DYWQZH != null">DYWQZH,</if>
- <if test="DYWTXQZH != null">DYWTXQZH,</if>
- <if test="DYWFWZL != null">DYWFWZL,</if>
- <if test="DYQJLRQ != null">DYQJLRQ,</if>
- <if test="DYQJCRQ != null">DYQJCRQ,</if>
- <if test="DYWPGJZ != null">DYWPGJZ,</if>
- <if test="BZHTBH != null">BZHTBH,</if>
- <if test="BZJGMC != null">BZJGMC,</if>
- <if test="DKBZJ != null">DKBZJ,</if>
- <if test="ZYHTBH != null">ZYHTBH,</if>
- <if test="ZYWBH != null">ZYWBH,</if>
- <if test="ZYWMC != null">ZYWMC,</if>
- <if test="ZYWJZ != null">ZYWJZ,</if>
- <if test="ZYHTKSRQ != null">ZYHTKSRQ,</if>
- <if test="ZYHTJSRQ != null">ZYHTJSRQ,</if>
- <if test="ZXBH != null">ZXBH,</if>
- <if test="lastUpdateTime != null">LAST_UPDATE_TIME,</if>
- <if test="DYFWGFHTH != null">DYFWGFHTH,</if>
- <if test="CLLX != null">CLLX,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <include refid="global_value"></include>
- <if test="DBHTBH != null">#{DBHTBH},</if>
- <if test="JKHTBH != null">#{JKHTBH},</if>
- <if test="DBJGMC != null">#{DBJGMC},</if>
- <if test="DYWQZH != null">#{DYWQZH},</if>
- <if test="DYWTXQZH != null">#{DYWTXQZH},</if>
- <if test="DYWFWZL != null">#{DYWFWZL},</if>
- <if test="DYQJLRQ != null">#{DYQJLRQ},</if>
- <if test="DYQJCRQ != null">#{DYQJCRQ},</if>
- <if test="DYWPGJZ != null">#{DYWPGJZ},</if>
- <if test="BZHTBH != null">#{BZHTBH},</if>
- <if test="BZJGMC != null">#{BZJGMC},</if>
- <if test="DKBZJ != null">#{DKBZJ},</if>
- <if test="ZYHTBH != null">#{ZYHTBH},</if>
- <if test="ZYWBH != null">#{ZYWBH},</if>
- <if test="ZYWMC != null">#{ZYWMC},</if>
- <if test="ZYWJZ != null">#{ZYWJZ},</if>
- <if test="ZYHTKSRQ != null">#{ZYHTKSRQ},</if>
- <if test="ZYHTJSRQ != null">#{ZYHTJSRQ},</if>
- <if test="ZXBH != null">#{ZXBH},</if>
- <if test="lastUpdateTime != null">#{lastUpdateTime},</if>
- <if test="DYFWGFHTH != null">#{DYFWGFHTH},</if>
- <if test="CLLX != null">#{CLLX},</if>
- </trim>
- </insert>
- <update id="updateTgjjDbxx" parameterMap="TgjjDbxx">
- update tgjj_dbxx
- <trim prefix="SET" suffixOverrides=",">
- <include refid="update_sql"></include>
- <if test="DBHTBH != null">DBHTBH = #{DBHTBH},</if>
- <if test="JKHTBH != null">JKHTBH = #{JKHTBH},</if>
- <if test="DBJGMC != null">DBJGMC = #{DBJGMC},</if>
- <if test="DYWQZH != null">DYWQZH = #{DYWQZH},</if>
- <if test="DYWTXQZH != null">DYWTXQZH = #{DYWTXQZH},</if>
- <if test="DYWFWZL != null">DYWFWZL = #{DYWFWZL},</if>
- <if test="DYQJLRQ != null">DYQJLRQ = #{DYQJLRQ},</if>
- <if test="DYQJCRQ != null">DYQJCRQ = #{DYQJCRQ},</if>
- <if test="DYWPGJZ != null">DYWPGJZ = #{DYWPGJZ},</if>
- <if test="BZHTBH != null">BZHTBH = #{BZHTBH},</if>
- <if test="BZJGMC != null">BZJGMC = #{BZJGMC},</if>
- <if test="DKBZJ != null">DKBZJ = #{DKBZJ},</if>
- <if test="ZYHTBH != null">ZYHTBH = #{ZYHTBH},</if>
- <if test="ZYWBH != null">ZYWBH = #{ZYWBH},</if>
- <if test="ZYWMC != null">ZYWMC = #{ZYWMC},</if>
- <if test="ZYWJZ != null">ZYWJZ = #{ZYWJZ},</if>
- <if test="ZYHTKSRQ != null">ZYHTKSRQ = #{ZYHTKSRQ},</if>
- <if test="ZYHTJSRQ != null">ZYHTJSRQ = #{ZYHTJSRQ},</if>
- <if test="ZXBH != null">ZXBH = #{ZXBH},</if>
- <if test="lastUpdateTime != null">LAST_UPDATE_TIME = #{lastUpdateTime},</if>
- <if test="DYFWGFHTH != null">DYFWGFHTH = #{DYFWGFHTH},</if>
- <if test="CLLX != null">CLLX = #{CLLX},</if>
- </trim>
- where ID = #{ID}
- </update>
- </mapper>
|