123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <?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.TgjjGrckzhbdxxMapper2">
- <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.TgjjGrckzhbdxx" id="TgjjGrckzhbdxxResult">
- </resultMap>
- <parameterMap id="TgjjGrckzhbdxx" type="com.sooka.model.bo.TgjjGrckzhbdxx"></parameterMap>
- <sql id="selectTgjjGrckzhbdxxVo">
- select ID, GRZH, JZRQ, GJHTQYWLX, FSE, DNGJFSE, SNJZFSE, FSLXE, TQYY, TQFS, YWLSH, CZBZ, GRZHYE, ZXBH, LAST_UPDATE_TIME lastUpdateTime, CLLX from tgjj_grckzhbdxx
- </sql>
- <select id="selectTgjjGrckzhbdxxList" parameterMap="TgjjGrckzhbdxx" resultMap="TgjjGrckzhbdxxResult">
- <include refid="selectTgjjGrckzhbdxxVo"/>
- <where>
- <if test="GRZH != null and GRZH != ''"> and GRZH = #{GRZH}</if>
- <if test="JZRQ != null "> and JZRQ = #{JZRQ}</if>
- <if test="GJHTQYWLX != null and GJHTQYWLX != ''"> and GJHTQYWLX = #{GJHTQYWLX}</if>
- <if test="FSE != null "> and FSE = #{FSE}</if>
- <if test="DNGJFSE != null "> and DNGJFSE = #{DNGJFSE}</if>
- <if test="SNJZFSE != null "> and SNJZFSE = #{SNJZFSE}</if>
- <if test="FSLXE != null "> and FSLXE = #{FSLXE}</if>
- <if test="TQYY != null and TQYY != ''"> and TQYY = #{TQYY}</if>
- <if test="TQFS != null and TQFS != ''"> and TQFS = #{TQFS}</if>
- <if test="YWLSH != null and YWLSH != ''"> and YWLSH = #{YWLSH}</if>
- <if test="CZBZ != null and CZBZ != ''"> and CZBZ = #{CZBZ}</if>
- <if test="GRZHYE != null "> and GRZHYE = #{GRZHYE}</if>
- <if test="ZXBH != null and ZXBH != ''"> and ZXBH = #{ZXBH}</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="selectTgjjGrckzhbdxxById" parameterType="Long" resultMap="TgjjGrckzhbdxxResult">
- <include refid="selectTgjjGrckzhbdxxVo"/>
- where ID = #{ID}
- </select>
- <insert id="insertTgjjGrckzhbdxx" parameterMap="TgjjGrckzhbdxx" useGeneratedKeys="true" keyProperty="ID">
- insert into tgjj_grckzhbdxx
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <include refid="global_name"></include>
- <if test="GRZH != null">GRZH,</if>
- <if test="JZRQ != null">JZRQ,</if>
- <if test="GJHTQYWLX != null">GJHTQYWLX,</if>
- <if test="FSE != null">FSE,</if>
- <if test="DNGJFSE != null">DNGJFSE,</if>
- <if test="SNJZFSE != null">SNJZFSE,</if>
- <if test="FSLXE != null">FSLXE,</if>
- <if test="TQYY != null">TQYY,</if>
- <if test="TQFS != null">TQFS,</if>
- <if test="YWLSH != null">YWLSH,</if>
- <if test="CZBZ != null">CZBZ,</if>
- <if test="GRZHYE != null">GRZHYE,</if>
- <if test="ZXBH != null">ZXBH,</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="GRZH != null">#{GRZH},</if>
- <if test="JZRQ != null">#{JZRQ},</if>
- <if test="GJHTQYWLX != null">#{GJHTQYWLX},</if>
- <if test="FSE != null">#{FSE},</if>
- <if test="DNGJFSE != null">#{DNGJFSE},</if>
- <if test="SNJZFSE != null">#{SNJZFSE},</if>
- <if test="FSLXE != null">#{FSLXE},</if>
- <if test="TQYY != null">#{TQYY},</if>
- <if test="TQFS != null">#{TQFS},</if>
- <if test="YWLSH != null">#{YWLSH},</if>
- <if test="CZBZ != null">#{CZBZ},</if>
- <if test="GRZHYE != null">#{GRZHYE},</if>
- <if test="ZXBH != null">#{ZXBH},</if>
- <if test="lastUpdateTime != null">#{lastUpdateTime},</if>
- <if test="CLLX != null">#{CLLX},</if>
- </trim>
- </insert>
- <update id="updateTgjjGrckzhbdxx" parameterMap="TgjjGrckzhbdxx">
- update tgjj_grckzhbdxx
- <trim prefix="SET" suffixOverrides=",">
- <include refid="update_sql"></include>
- <if test="GRZH != null">GRZH = #{GRZH},</if>
- <if test="JZRQ != null">JZRQ = #{JZRQ},</if>
- <if test="GJHTQYWLX != null">GJHTQYWLX = #{GJHTQYWLX},</if>
- <if test="FSE != null">FSE = #{FSE},</if>
- <if test="DNGJFSE != null">DNGJFSE = #{DNGJFSE},</if>
- <if test="SNJZFSE != null">SNJZFSE = #{SNJZFSE},</if>
- <if test="FSLXE != null">FSLXE = #{FSLXE},</if>
- <if test="TQYY != null">TQYY = #{TQYY},</if>
- <if test="TQFS != null">TQFS = #{TQFS},</if>
- <if test="YWLSH != null">YWLSH = #{YWLSH},</if>
- <if test="CZBZ != null">CZBZ = #{CZBZ},</if>
- <if test="GRZHYE != null">GRZHYE = #{GRZHYE},</if>
- <if test="ZXBH != null">ZXBH = #{ZXBH},</if>
- <if test="lastUpdateTime != null">LAST_UPDATE_TIME = #{lastUpdateTime},</if>
- <if test="CLLX != null">CLLX = #{CLLX},</if>
- </trim>
- where ID = #{ID}
- </update>
- <select id="selectTgjjGrckzhbdxxList_select_grckbdfw" parameterMap="TgjjGrckzhbdxx" resultMap="TgjjGrckzhbdxxResult">
- <include refid="selectTgjjGrckzhbdxxVo"/>
- <where>
- <if test="GRZH != null and GRZH != ''">
- and GRZH = #{GRZH}
- </if>
- </where>
- </select>
- </mapper>
|