123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <?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.TgjjDwckzhbdxxMapper">
- <resultMap type="com.sooka.model.bo.TgjjDwckzhbdxx" id="TgjjDwckzhbdxxResult">
- </resultMap>
- <parameterMap id="TgjjDwckzhbdxx" type="com.sooka.model.bo.TgjjDwckzhbdxx" ></parameterMap>
- <sql id="selectTgjjDwckzhbdxxVo">
- select ID, DWZH, JZRQ, FSE, FSLXE, FSRS, YWMXLX, HBJNY, YWLSH, CZBZ, DWZHYE, ZXBH, LAST_UPDATE_TIME lastUpdateTime, CLLX from tgjj_dwckzhbdxx
- </sql>
- <select id="selectTgjjDwckzhbdxxList" parameterMap="TgjjDwckzhbdxx" resultMap="TgjjDwckzhbdxxResult">
- <include refid="selectTgjjDwckzhbdxxVo"/>
- <where>
- <if test="DWZH != null and DWZH != ''"> and DWZH = #{DWZH}</if>
- <if test="JZRQ != null "> and JZRQ = #{JZRQ}</if>
- <if test="FSE != null "> and FSE = #{FSE}</if>
- <if test="FSLXE != null "> and FSLXE = #{FSLXE}</if>
- <if test="FSRS != null "> and FSRS = #{FSRS}</if>
- <if test="YWMXLX != null and YWMXLX != ''"> and YWMXLX = #{YWMXLX}</if>
- <if test="HBJNY != null and HBJNY != ''"> and HBJNY = #{HBJNY}</if>
- <if test="YWLSH != null and YWLSH != ''"> and YWLSH = #{YWLSH}</if>
- <if test="CZBZ != null and CZBZ != ''"> and CZBZ = #{CZBZ}</if>
- <if test="DWZHYE != null "> and DWZHYE = #{DWZHYE}</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="selectTgjjDwckzhbdxxById" parameterType="Long" resultMap="TgjjDwckzhbdxxResult">
- <include refid="selectTgjjDwckzhbdxxVo"/>
- where ID = #{ID}
- </select>
- <insert id="insertTgjjDwckzhbdxx" parameterMap="TgjjDwckzhbdxx" useGeneratedKeys="true" keyProperty="ID">
- insert into tgjj_dwckzhbdxx
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="ID != null">ID,</if>
- <if test="DWZH != null">DWZH,</if>
- <if test="JZRQ != null">JZRQ,</if>
- <if test="FSE != null">FSE,</if>
- <if test="FSLXE != null">FSLXE,</if>
- <if test="FSRS != null">FSRS,</if>
- <if test="YWMXLX != null">YWMXLX,</if>
- <if test="HBJNY != null">HBJNY,</if>
- <if test="YWLSH != null">YWLSH,</if>
- <if test="CZBZ != null">CZBZ,</if>
- <if test="DWZHYE != null">DWZHYE,</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=",">
- <if test="ID != null">#{ID},</if>
- <if test="DWZH != null">#{DWZH},</if>
- <if test="JZRQ != null">#{JZRQ},</if>
- <if test="FSE != null">#{FSE},</if>
- <if test="FSLXE != null">#{FSLXE},</if>
- <if test="FSRS != null">#{FSRS},</if>
- <if test="YWMXLX != null">#{YWMXLX},</if>
- <if test="HBJNY != null">#{HBJNY},</if>
- <if test="YWLSH != null">#{YWLSH},</if>
- <if test="CZBZ != null">#{CZBZ},</if>
- <if test="DWZHYE != null">#{DWZHYE},</if>
- <if test="ZXBH != null">#{ZXBH},</if>
- <if test="lastUpdateTime != null">#{lastUpdateTime},</if>
- <if test="CLLX != null">#{CLLX},</if>
- </trim>
- </insert>
- <update id="updateTgjjDwckzhbdxx" parameterMap="TgjjDwckzhbdxx">
- update tgjj_dwckzhbdxx
- <trim prefix="SET" suffixOverrides=",">
- <if test="DWZH != null">DWZH = #{DWZH},</if>
- <if test="JZRQ != null">JZRQ = #{JZRQ},</if>
- <if test="FSE != null">FSE = #{FSE},</if>
- <if test="FSLXE != null">FSLXE = #{FSLXE},</if>
- <if test="FSRS != null">FSRS = #{FSRS},</if>
- <if test="YWMXLX != null">YWMXLX = #{YWMXLX},</if>
- <if test="HBJNY != null">HBJNY = #{HBJNY},</if>
- <if test="YWLSH != null">YWLSH = #{YWLSH},</if>
- <if test="CZBZ != null">CZBZ = #{CZBZ},</if>
- <if test="DWZHYE != null">DWZHYE = #{DWZHYE},</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>
- </mapper>
|