|
@@ -0,0 +1,190 @@
|
|
|
+<?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.slibra.business.mapper.TXinyiTytjParamsMapper">
|
|
|
+
|
|
|
+ <resultMap type="TXinyiTytjParams" id="TXinyiTytjParamsResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="kzmbplbjz" column="kzmbplbjz" />
|
|
|
+ <result property="hycxsygkz" column="hycxsygkz" />
|
|
|
+ <result property="xhycbjz" column="xhycbjz" />
|
|
|
+ <result property="jylpybjz" column="jylpybjz" />
|
|
|
+ <result property="timeVal" column="time_val" />
|
|
|
+ <result property="minJsll" column="min_jsll" />
|
|
|
+ <result property="maxJsll" column="max_jsll" />
|
|
|
+ <result property="minJsCod" column="min_js_cod" />
|
|
|
+ <result property="maxJsCod" column="max_js_cod" />
|
|
|
+ <result property="minAddAmount" column="min_add_amount" />
|
|
|
+ <result property="maxAddAmount" column="max_add_amount" />
|
|
|
+ <result property="stopAddFlag" column="stop_add_flag" />
|
|
|
+ <result property="jzxs" column="jzxs" />
|
|
|
+ <result property="xzxs" column="xzxs" />
|
|
|
+ <result property="slfpxs" column="slfpxs" />
|
|
|
+ <result property="tydl" column="tydl" />
|
|
|
+ <result property="zhxs" column="zhxs" />
|
|
|
+ <result property="sxps" column="sxps" />
|
|
|
+ <result property="yymd" column="yymd" />
|
|
|
+ <result property="tdb" column="tdb" />
|
|
|
+ <result property="zxqdll" column="zxqdll" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="revision" column="revision" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="remark" column="remark" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectTXinyiTytjParamsVo">
|
|
|
+ select id, kzmbplbjz, hycxsygkz, xhycbjz, jylpybjz, time_val, min_jsll, max_jsll, min_js_cod, max_js_cod, min_add_amount, max_add_amount, stop_add_flag, jzxs, xzxs, slfpxs, tydl, zhxs, sxps, yymd, tdb, zxqdll, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_tytj_params
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectTXinyiTytjParamsList" parameterType="TXinyiTytjParams" resultMap="TXinyiTytjParamsResult">
|
|
|
+ <include refid="selectTXinyiTytjParamsVo"/>
|
|
|
+ <where>
|
|
|
+ 1 = 1
|
|
|
+ <if test="kzmbplbjz != null "> and kzmbplbjz = #{kzmbplbjz}</if>
|
|
|
+ <if test="hycxsygkz != null "> and hycxsygkz = #{hycxsygkz}</if>
|
|
|
+ <if test="xhycbjz != null "> and xhycbjz = #{xhycbjz}</if>
|
|
|
+ <if test="jylpybjz != null "> and jylpybjz = #{jylpybjz}</if>
|
|
|
+ <if test="timeVal != null "> and time_val = #{timeVal}</if>
|
|
|
+ <if test="minJsll != null "> and min_jsll = #{minJsll}</if>
|
|
|
+ <if test="maxJsll != null "> and max_jsll = #{maxJsll}</if>
|
|
|
+ <if test="minJsCod != null "> and min_js_cod = #{minJsCod}</if>
|
|
|
+ <if test="maxJsCod != null "> and max_js_cod = #{maxJsCod}</if>
|
|
|
+ <if test="minAddAmount != null "> and min_add_amount = #{minAddAmount}</if>
|
|
|
+ <if test="maxAddAmount != null "> and max_add_amount = #{maxAddAmount}</if>
|
|
|
+ <if test="stopAddFlag != null "> and stop_add_flag = #{stopAddFlag}</if>
|
|
|
+ <if test="jzxs != null "> and jzxs = #{jzxs}</if>
|
|
|
+ <if test="xzxs != null "> and xzxs = #{xzxs}</if>
|
|
|
+ <if test="slfpxs != null "> and slfpxs = #{slfpxs}</if>
|
|
|
+ <if test="tydl != null "> and tydl = #{tydl}</if>
|
|
|
+ <if test="zhxs != null "> and zhxs = #{zhxs}</if>
|
|
|
+ <if test="sxps != null "> and sxps = #{sxps}</if>
|
|
|
+ <if test="yymd != null "> and yymd = #{yymd}</if>
|
|
|
+ <if test="tdb != null "> and tdb = #{tdb}</if>
|
|
|
+ <if test="zxqdll != null "> and zxqdll = #{zxqdll}</if>
|
|
|
+ <if test="revision != null "> and revision = #{revision}</if>
|
|
|
+ </where>
|
|
|
+ and del_flag = 0 order by id desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectTXinyiTytjParamsById" parameterType="Long" resultMap="TXinyiTytjParamsResult">
|
|
|
+ <include refid="selectTXinyiTytjParamsVo"/>
|
|
|
+ where id = #{id} and del_flag = 0
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertTXinyiTytjParams" parameterType="TXinyiTytjParams" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ insert into t_xinyi_tytj_params
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="kzmbplbjz != null">kzmbplbjz,</if>
|
|
|
+ <if test="hycxsygkz != null">hycxsygkz,</if>
|
|
|
+ <if test="xhycbjz != null">xhycbjz,</if>
|
|
|
+ <if test="jylpybjz != null">jylpybjz,</if>
|
|
|
+ <if test="timeVal != null">time_val,</if>
|
|
|
+ <if test="minJsll != null">min_jsll,</if>
|
|
|
+ <if test="maxJsll != null">max_jsll,</if>
|
|
|
+ <if test="minJsCod != null">min_js_cod,</if>
|
|
|
+ <if test="maxJsCod != null">max_js_cod,</if>
|
|
|
+ <if test="minAddAmount != null">min_add_amount,</if>
|
|
|
+ <if test="maxAddAmount != null">max_add_amount,</if>
|
|
|
+ <if test="stopAddFlag != null">stop_add_flag,</if>
|
|
|
+ <if test="jzxs != null">jzxs,</if>
|
|
|
+ <if test="xzxs != null">xzxs,</if>
|
|
|
+ <if test="slfpxs != null">slfpxs,</if>
|
|
|
+ <if test="tydl != null">tydl,</if>
|
|
|
+ <if test="zhxs != null">zhxs,</if>
|
|
|
+ <if test="sxps != null">sxps,</if>
|
|
|
+ <if test="yymd != null">yymd,</if>
|
|
|
+ <if test="tdb != null">tdb,</if>
|
|
|
+ <if test="zxqdll != null">zxqdll,</if>
|
|
|
+ <if test="delFlag != null">del_flag,</if>
|
|
|
+ <if test="revision != null">revision,</if>
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="remark != null">remark,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="kzmbplbjz != null">#{kzmbplbjz},</if>
|
|
|
+ <if test="hycxsygkz != null">#{hycxsygkz},</if>
|
|
|
+ <if test="xhycbjz != null">#{xhycbjz},</if>
|
|
|
+ <if test="jylpybjz != null">#{jylpybjz},</if>
|
|
|
+ <if test="timeVal != null">#{timeVal},</if>
|
|
|
+ <if test="minJsll != null">#{minJsll},</if>
|
|
|
+ <if test="maxJsll != null">#{maxJsll},</if>
|
|
|
+ <if test="minJsCod != null">#{minJsCod},</if>
|
|
|
+ <if test="maxJsCod != null">#{maxJsCod},</if>
|
|
|
+ <if test="minAddAmount != null">#{minAddAmount},</if>
|
|
|
+ <if test="maxAddAmount != null">#{maxAddAmount},</if>
|
|
|
+ <if test="stopAddFlag != null">#{stopAddFlag},</if>
|
|
|
+ <if test="jzxs != null">#{jzxs},</if>
|
|
|
+ <if test="xzxs != null">#{xzxs},</if>
|
|
|
+ <if test="slfpxs != null">#{slfpxs},</if>
|
|
|
+ <if test="tydl != null">#{tydl},</if>
|
|
|
+ <if test="zhxs != null">#{zhxs},</if>
|
|
|
+ <if test="sxps != null">#{sxps},</if>
|
|
|
+ <if test="yymd != null">#{yymd},</if>
|
|
|
+ <if test="tdb != null">#{tdb},</if>
|
|
|
+ <if test="zxqdll != null">#{zxqdll},</if>
|
|
|
+ <if test="delFlag != null">#{delFlag},</if>
|
|
|
+ <if test="revision != null">#{revision},</if>
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="remark != null">#{remark},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateTXinyiTytjParams" parameterType="TXinyiTytjParams">
|
|
|
+ update t_xinyi_tytj_params
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="kzmbplbjz != null">kzmbplbjz = #{kzmbplbjz},</if>
|
|
|
+ <if test="hycxsygkz != null">hycxsygkz = #{hycxsygkz},</if>
|
|
|
+ <if test="xhycbjz != null">xhycbjz = #{xhycbjz},</if>
|
|
|
+ <if test="jylpybjz != null">jylpybjz = #{jylpybjz},</if>
|
|
|
+ <if test="timeVal != null">time_val = #{timeVal},</if>
|
|
|
+ <if test="minJsll != null">min_jsll = #{minJsll},</if>
|
|
|
+ <if test="maxJsll != null">max_jsll = #{maxJsll},</if>
|
|
|
+ <if test="minJsCod != null">min_js_cod = #{minJsCod},</if>
|
|
|
+ <if test="maxJsCod != null">max_js_cod = #{maxJsCod},</if>
|
|
|
+ <if test="minAddAmount != null">min_add_amount = #{minAddAmount},</if>
|
|
|
+ <if test="maxAddAmount != null">max_add_amount = #{maxAddAmount},</if>
|
|
|
+ <if test="stopAddFlag != null">stop_add_flag = #{stopAddFlag},</if>
|
|
|
+ <if test="jzxs != null">jzxs = #{jzxs},</if>
|
|
|
+ <if test="xzxs != null">xzxs = #{xzxs},</if>
|
|
|
+ <if test="slfpxs != null">slfpxs = #{slfpxs},</if>
|
|
|
+ <if test="tydl != null">tydl = #{tydl},</if>
|
|
|
+ <if test="zhxs != null">zhxs = #{zhxs},</if>
|
|
|
+ <if test="sxps != null">sxps = #{sxps},</if>
|
|
|
+ <if test="yymd != null">yymd = #{yymd},</if>
|
|
|
+ <if test="tdb != null">tdb = #{tdb},</if>
|
|
|
+ <if test="zxqdll != null">zxqdll = #{zxqdll},</if>
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ <if test="revision != null">revision = #{revision},</if>
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
+ </trim>
|
|
|
+ ,revision = revision + 1
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <delete id="deleteTXinyiTytjParamsById" parameterType="Long">
|
|
|
+ update t_xinyi_tytj_params set del_flag = 2,revision = revision + 1 where del_flag = 0 and id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteTXinyiTytjParamsByIds" parameterType="String">
|
|
|
+ update t_xinyi_tytj_params set del_flag = 2,revision = revision + 1 where del_flag = 0 and id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|