123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <?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.TgjjGrdkzhbdxxMapper2">
- <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.TgjjGrdkzhbdxx" id="TgjjGrdkzhbdxxResult">
- </resultMap>
- <parameterMap id="TgjjGrdkzhbdxx" type="com.sooka.model.bo.TgjjGrdkzhbdxx"></parameterMap>
- <sql id="selectTgjjGrdkzhbdxxVo">
- select ID, DKZH, YWLSH, DKYWMXLX, YWFSRQ, DKYHDM, FSE, BJJE, LXJE, FXJE, DQQC, ZCZYQBJJE, YQZZCBJJE, JZRQ, ZXBH, LAST_UPDATE_TIME lastUpdateTime, CLLX from tgjj_grdkzhbdxx
- </sql>
- <select id="selectTgjjGrdkzhbdxxList" parameterMap="TgjjGrdkzhbdxx" resultMap="TgjjGrdkzhbdxxResult">
- <include refid="selectTgjjGrdkzhbdxxVo"/>
- <where>
- <if test="DKZH != null and DKZH != ''"> and DKZH = #{DKZH}</if>
- <if test="YWLSH != null and YWLSH != ''"> and YWLSH = #{YWLSH}</if>
- <if test="DKYWMXLX != null and DKYWMXLX != ''"> and DKYWMXLX = #{DKYWMXLX}</if>
- <if test="YWFSRQ != null "> and YWFSRQ = #{YWFSRQ}</if>
- <if test="DKYHDM != null and DKYHDM != ''"> and DKYHDM = #{DKYHDM}</if>
- <if test="FSE != null "> and FSE = #{FSE}</if>
- <if test="BJJE != null "> and BJJE = #{BJJE}</if>
- <if test="LXJE != null "> and LXJE = #{LXJE}</if>
- <if test="FXJE != null "> and FXJE = #{FXJE}</if>
- <if test="DQQC != null "> and DQQC = #{DQQC}</if>
- <if test="ZCZYQBJJE != null "> and ZCZYQBJJE = #{ZCZYQBJJE}</if>
- <if test="YQZZCBJJE != null "> and YQZZCBJJE = #{YQZZCBJJE}</if>
- <if test="JZRQ != null "> and JZRQ = #{JZRQ}</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="selectTgjjGrdkzhbdxxById" parameterType="Long" resultMap="TgjjGrdkzhbdxxResult">
- <include refid="selectTgjjGrdkzhbdxxVo"/>
- where ID = #{ID}
- </select>
- <insert id="insertTgjjGrdkzhbdxx" parameterMap="TgjjGrdkzhbdxx" useGeneratedKeys="true" keyProperty="ID">
- insert into tgjj_grdkzhbdxx
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <include refid="global_name"></include>
- <if test="DKZH != null">DKZH,</if>
- <if test="YWLSH != null">YWLSH,</if>
- <if test="DKYWMXLX != null">DKYWMXLX,</if>
- <if test="YWFSRQ != null">YWFSRQ,</if>
- <if test="DKYHDM != null">DKYHDM,</if>
- <if test="FSE != null">FSE,</if>
- <if test="BJJE != null">BJJE,</if>
- <if test="LXJE != null">LXJE,</if>
- <if test="FXJE != null">FXJE,</if>
- <if test="DQQC != null">DQQC,</if>
- <if test="ZCZYQBJJE != null">ZCZYQBJJE,</if>
- <if test="YQZZCBJJE != null">YQZZCBJJE,</if>
- <if test="JZRQ != null">JZRQ,</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="DKZH != null">#{DKZH},</if>
- <if test="YWLSH != null">#{YWLSH},</if>
- <if test="DKYWMXLX != null">#{DKYWMXLX},</if>
- <if test="YWFSRQ != null">#{YWFSRQ},</if>
- <if test="DKYHDM != null">#{DKYHDM},</if>
- <if test="FSE != null">#{FSE},</if>
- <if test="BJJE != null">#{BJJE},</if>
- <if test="LXJE != null">#{LXJE},</if>
- <if test="FXJE != null">#{FXJE},</if>
- <if test="DQQC != null">#{DQQC},</if>
- <if test="ZCZYQBJJE != null">#{ZCZYQBJJE},</if>
- <if test="YQZZCBJJE != null">#{YQZZCBJJE},</if>
- <if test="JZRQ != null">#{JZRQ},</if>
- <if test="ZXBH != null">#{ZXBH},</if>
- <if test="lastUpdateTime != null">#{lastUpdateTime},</if>
- <if test="CLLX != null">#{CLLX},</if>
- </trim>
- </insert>
- <update id="updateTgjjGrdkzhbdxx" parameterMap="TgjjGrdkzhbdxx">
- update tgjj_grdkzhbdxx
- <trim prefix="SET" suffixOverrides=",">
- <include refid="update_sql"></include>
- <if test="DKZH != null">DKZH = #{DKZH},</if>
- <if test="YWLSH != null">YWLSH = #{YWLSH},</if>
- <if test="DKYWMXLX != null">DKYWMXLX = #{DKYWMXLX},</if>
- <if test="YWFSRQ != null">YWFSRQ = #{YWFSRQ},</if>
- <if test="DKYHDM != null">DKYHDM = #{DKYHDM},</if>
- <if test="FSE != null">FSE = #{FSE},</if>
- <if test="BJJE != null">BJJE = #{BJJE},</if>
- <if test="LXJE != null">LXJE = #{LXJE},</if>
- <if test="FXJE != null">FXJE = #{FXJE},</if>
- <if test="DQQC != null">DQQC = #{DQQC},</if>
- <if test="ZCZYQBJJE != null">ZCZYQBJJE = #{ZCZYQBJJE},</if>
- <if test="YQZZCBJJE != null">YQZZCBJJE = #{YQZZCBJJE},</if>
- <if test="JZRQ != null">JZRQ = #{JZRQ},</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="selectTgjjGrdkzhbdxxList_select_grdkbdxx" resultMap="TgjjGrdkzhbdxxResult" parameterMap="TgjjGrdkzhbdxx">
- <include refid="selectTgjjGrdkzhbdxxVo"/>
- <where>
- <if test="DKZH != null and DKZH != ''">
- and DKZH = #{DKZH}
- </if>
- </where>
- </select>
- </mapper>
|