|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.xlht.xlhtproject.mapper.TXlhtConfMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="TXlhtConf" id="TXlhtConfResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="minAddAmount" column="min_add_amount" />
|
|
@@ -12,6 +12,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="maxJsll" column="max_jsll" />
|
|
|
<result property="minJsCod" column="min_js_cod" />
|
|
|
<result property="maxJsCod" column="max_js_cod" />
|
|
|
+ <result property="stopAddFlag" column="stop_add_flag" />
|
|
|
+ <result property="kzmbplbjz" column="kzmbplbjz" />
|
|
|
+ <result property="hycxsygkz" column="hycxsygkz" />
|
|
|
+ <result property="xhycbjz" column="xhycbjz" />
|
|
|
+ <result property="jylpybjz" column="jylpybjz" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="revision" column="revision" />
|
|
|
<result property="createBy" column="create_by" />
|
|
@@ -22,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTXlhtConfVo">
|
|
|
- select id, min_add_amount, max_add_amount, min_jsll, max_jsll, min_js_cod, max_js_cod, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xlht_conf
|
|
|
+ select id, min_add_amount, max_add_amount, min_jsll, max_jsll, min_js_cod, max_js_cod, stop_add_flag, kzmbplbjz, hycxsygkz, xhycbjz, jylpybjz, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xlht_conf
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTXlhtConfList" parameterType="TXlhtConf" resultMap="TXlhtConfResult">
|
|
@@ -35,16 +40,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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="stopAddFlag != null "> and stop_add_flag = #{stopAddFlag}</if>
|
|
|
+ <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="revision != null "> and revision = #{revision}</if>
|
|
|
</where>
|
|
|
and del_flag = 0 order by id desc
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectTXlhtConfById" parameterType="Long" resultMap="TXlhtConfResult">
|
|
|
<include refid="selectTXlhtConfVo"/>
|
|
|
where id = #{id} and del_flag = 0
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertTXlhtConf" parameterType="TXlhtConf" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into t_xlht_conf
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -54,6 +64,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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="stopAddFlag != null">stop_add_flag,</if>
|
|
|
+ <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="delFlag != null">del_flag,</if>
|
|
|
<if test="revision != null">revision,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -69,6 +84,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maxJsll != null">#{maxJsll},</if>
|
|
|
<if test="minJsCod != null">#{minJsCod},</if>
|
|
|
<if test="maxJsCod != null">#{maxJsCod},</if>
|
|
|
+ <if test="stopAddFlag != null">#{stopAddFlag},</if>
|
|
|
+ <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="delFlag != null">#{delFlag},</if>
|
|
|
<if test="revision != null">#{revision},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -88,6 +108,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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="stopAddFlag != null">stop_add_flag = #{stopAddFlag},</if>
|
|
|
+ <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="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
<if test="revision != null">revision = #{revision},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
@@ -100,7 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<delete id="deleteTXlhtConfById" parameterType="Long">
|
|
|
update t_xlht_conf set del_flag = 2,revision = revision + 1 where del_flag = 0 and id = #{id}
|