2024-09-10 17:37:44 +08:00
|
|
|
<?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.bonus.base.mapper.TbWarnConfigMapper">
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.bonus.base.domain.TbWarnConfig">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
<!--@Table tb_warn_config-->
|
|
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
|
|
<result column="configu_type" jdbcType="INTEGER" property="configuType" />
|
|
|
|
|
<result column="config_name" jdbcType="VARCHAR" property="configName" />
|
|
|
|
|
<result column="config_val1_max" jdbcType="DECIMAL" property="configVal1Max" />
|
|
|
|
|
<result column="config_val1_min" jdbcType="DECIMAL" property="configVal1Min" />
|
|
|
|
|
<result column="config_val2_max" jdbcType="DECIMAL" property="configVal2Max" />
|
|
|
|
|
<result column="config_val2_min" jdbcType="DECIMAL" property="configVal2Min" />
|
|
|
|
|
<result column="config_val3_max" jdbcType="DECIMAL" property="configVal3Max" />
|
|
|
|
|
<result column="config_val3_min" jdbcType="DECIMAL" property="configVal3Min" />
|
|
|
|
|
<result column="config_val4_max" jdbcType="DECIMAL" property="configVal4Max" />
|
|
|
|
|
<result column="config_val4_min" jdbcType="DECIMAL" property="configVal4Min" />
|
|
|
|
|
<result column="config_val5_max" jdbcType="DECIMAL" property="configVal5Max" />
|
|
|
|
|
<result column="config_val5_min" jdbcType="DECIMAL" property="configVal5Min" />
|
|
|
|
|
<result column="config_val6_max" jdbcType="DECIMAL" property="configVal6Max" />
|
|
|
|
|
<result column="config_val6_min" jdbcType="DECIMAL" property="configVal6Min" />
|
|
|
|
|
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
<result column="create_user" jdbcType="INTEGER" property="createUser" />
|
|
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
<result column="update_user" jdbcType="INTEGER" property="updateUser" />
|
|
|
|
|
</resultMap>
|
2024-09-14 18:23:56 +08:00
|
|
|
|
2024-09-10 17:37:44 +08:00
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
<!--@mbg.generated-->
|
2024-09-14 18:23:56 +08:00
|
|
|
twc.id,
|
|
|
|
|
twc.configu_type,
|
|
|
|
|
sda.dict_label as typeName,
|
|
|
|
|
twc.config_name,
|
|
|
|
|
twc.config_val1_max,
|
|
|
|
|
twc.config_val1_min,
|
|
|
|
|
twc.config_val2_max,
|
|
|
|
|
twc.config_val2_min,
|
|
|
|
|
twc.config_val3_max,
|
|
|
|
|
twc.config_val3_min,
|
|
|
|
|
twc.config_val4_max,
|
|
|
|
|
twc.config_val4_min,
|
|
|
|
|
twc.config_val5_max,
|
|
|
|
|
twc.config_val5_min,
|
|
|
|
|
twc.config_val6_max,
|
|
|
|
|
twc.config_val6_min
|
2024-09-10 17:37:44 +08:00
|
|
|
</sql>
|
2024-09-14 18:23:56 +08:00
|
|
|
|
2024-09-10 17:37:44 +08:00
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
2024-09-14 18:23:56 +08:00
|
|
|
from tb_warn_config twc
|
|
|
|
|
left join sys_dict_data sda on twc.configu_type = sda.dict_code
|
|
|
|
|
where id = #{id}
|
|
|
|
|
<if test="configuType != null and configuType != ''">
|
|
|
|
|
and twc.configu_type = #{configuType}
|
|
|
|
|
</if>
|
2024-09-10 17:37:44 +08:00
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
|
|
update tb_warn_config set del_flag = 1
|
|
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<insert id="insert" parameterType="com.bonus.base.domain.TbWarnConfig">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
insert into tb_warn_config (id, configu_type, config_name,
|
|
|
|
|
config_val1_max, config_val1_min, config_val2_max,
|
|
|
|
|
config_val2_min, config_val3_max, config_val3_min,
|
|
|
|
|
config_val4_max, config_val4_min, config_val5_max,
|
|
|
|
|
config_val5_min, config_val6_max, config_val6_min,
|
|
|
|
|
del_flag, create_time, create_user,
|
|
|
|
|
update_time, update_user)
|
|
|
|
|
values (#{id,jdbcType=BIGINT}, #{configuType,jdbcType=INTEGER}, #{configName,jdbcType=VARCHAR},
|
|
|
|
|
#{configVal1Max,jdbcType=DECIMAL}, #{configVal1Min,jdbcType=DECIMAL}, #{configVal2Max,jdbcType=DECIMAL},
|
|
|
|
|
#{configVal2Min,jdbcType=DECIMAL}, #{configVal3Max,jdbcType=DECIMAL}, #{configVal3Min,jdbcType=DECIMAL},
|
|
|
|
|
#{configVal4Max,jdbcType=DECIMAL}, #{configVal4Min,jdbcType=DECIMAL}, #{configVal5Max,jdbcType=DECIMAL},
|
|
|
|
|
#{configVal5Min,jdbcType=DECIMAL}, #{configVal6Max,jdbcType=DECIMAL}, #{configVal6Min,jdbcType=DECIMAL},
|
|
|
|
|
#{delFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=INTEGER},
|
|
|
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.bonus.base.domain.TbWarnConfig">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
insert into tb_warn_config
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="configuType != null">
|
|
|
|
|
configu_type,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configName != null and configName != ''">
|
|
|
|
|
config_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal1Max != null">
|
|
|
|
|
config_val1_max,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal1Min != null">
|
|
|
|
|
config_val1_min,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal2Max != null">
|
|
|
|
|
config_val2_max,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal2Min != null">
|
|
|
|
|
config_val2_min,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal3Max != null">
|
|
|
|
|
config_val3_max,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal3Min != null">
|
|
|
|
|
config_val3_min,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal4Max != null">
|
|
|
|
|
config_val4_max,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal4Min != null">
|
|
|
|
|
config_val4_min,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal5Max != null">
|
|
|
|
|
config_val5_max,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal5Min != null">
|
|
|
|
|
config_val5_min,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal6Max != null">
|
|
|
|
|
config_val6_max,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal6Min != null">
|
|
|
|
|
config_val6_min,
|
|
|
|
|
</if>
|
|
|
|
|
del_flag,
|
|
|
|
|
create_time,
|
|
|
|
|
<if test="createUser != null">
|
|
|
|
|
create_user,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="configuType != null">
|
|
|
|
|
#{configuType,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configName != null and configName != ''">
|
|
|
|
|
#{configName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal1Max != null">
|
|
|
|
|
#{configVal1Max,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal1Min != null">
|
|
|
|
|
#{configVal1Min,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal2Max != null">
|
|
|
|
|
#{configVal2Max,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal2Min != null">
|
|
|
|
|
#{configVal2Min,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal3Max != null">
|
|
|
|
|
#{configVal3Max,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal3Min != null">
|
|
|
|
|
#{configVal3Min,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal4Max != null">
|
|
|
|
|
#{configVal4Max,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal4Min != null">
|
|
|
|
|
#{configVal4Min,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal5Max != null">
|
|
|
|
|
#{configVal5Max,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal5Min != null">
|
|
|
|
|
#{configVal5Min,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal6Max != null">
|
|
|
|
|
#{configVal6Max,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal6Min != null">
|
|
|
|
|
#{configVal6Min,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
2024-09-14 18:23:56 +08:00
|
|
|
0,
|
|
|
|
|
NOW(),
|
2024-09-10 17:37:44 +08:00
|
|
|
<if test="createUser != null">
|
|
|
|
|
#{createUser,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.bonus.base.domain.TbWarnConfig">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
update tb_warn_config
|
|
|
|
|
<set>
|
|
|
|
|
<if test="configuType != null">
|
|
|
|
|
configu_type = #{configuType,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configName != null and configName != ''">
|
|
|
|
|
config_name = #{configName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal1Max != null">
|
|
|
|
|
config_val1_max = #{configVal1Max,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal1Min != null">
|
|
|
|
|
config_val1_min = #{configVal1Min,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal2Max != null">
|
|
|
|
|
config_val2_max = #{configVal2Max,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal2Min != null">
|
|
|
|
|
config_val2_min = #{configVal2Min,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal3Max != null">
|
|
|
|
|
config_val3_max = #{configVal3Max,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal3Min != null">
|
|
|
|
|
config_val3_min = #{configVal3Min,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal4Max != null">
|
|
|
|
|
config_val4_max = #{configVal4Max,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal4Min != null">
|
|
|
|
|
config_val4_min = #{configVal4Min,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal5Max != null">
|
|
|
|
|
config_val5_max = #{configVal5Max,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal5Min != null">
|
|
|
|
|
config_val5_min = #{configVal5Min,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal6Max != null">
|
|
|
|
|
config_val6_max = #{configVal6Max,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configVal6Min != null">
|
|
|
|
|
config_val6_min = #{configVal6Min,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="delFlag != null">
|
|
|
|
|
del_flag = #{delFlag,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
2024-09-14 18:23:56 +08:00
|
|
|
update_time = NOW(),
|
2024-09-10 17:37:44 +08:00
|
|
|
<if test="updateUser != null">
|
|
|
|
|
update_user = #{updateUser,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
2024-09-14 18:23:56 +08:00
|
|
|
|
2024-09-10 17:37:44 +08:00
|
|
|
<update id="updateByPrimaryKey" parameterType="com.bonus.base.domain.TbWarnConfig">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
update tb_warn_config
|
|
|
|
|
set configu_type = #{configuType,jdbcType=INTEGER},
|
|
|
|
|
config_name = #{configName,jdbcType=VARCHAR},
|
|
|
|
|
config_val1_max = #{configVal1Max,jdbcType=DECIMAL},
|
|
|
|
|
config_val1_min = #{configVal1Min,jdbcType=DECIMAL},
|
|
|
|
|
config_val2_max = #{configVal2Max,jdbcType=DECIMAL},
|
|
|
|
|
config_val2_min = #{configVal2Min,jdbcType=DECIMAL},
|
|
|
|
|
config_val3_max = #{configVal3Max,jdbcType=DECIMAL},
|
|
|
|
|
config_val3_min = #{configVal3Min,jdbcType=DECIMAL},
|
|
|
|
|
config_val4_max = #{configVal4Max,jdbcType=DECIMAL},
|
|
|
|
|
config_val4_min = #{configVal4Min,jdbcType=DECIMAL},
|
|
|
|
|
config_val5_max = #{configVal5Max,jdbcType=DECIMAL},
|
|
|
|
|
config_val5_min = #{configVal5Min,jdbcType=DECIMAL},
|
|
|
|
|
config_val6_max = #{configVal6Max,jdbcType=DECIMAL},
|
|
|
|
|
config_val6_min = #{configVal6Min,jdbcType=DECIMAL},
|
|
|
|
|
del_flag = #{delFlag,jdbcType=INTEGER},
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
create_user = #{createUser,jdbcType=INTEGER},
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
update_user = #{updateUser,jdbcType=INTEGER}
|
|
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="updateBatch" parameterType="java.util.List">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
update tb_warn_config
|
|
|
|
|
<trim prefix="set" suffixOverrides=",">
|
|
|
|
|
<trim prefix="configu_type = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configuType,jdbcType=INTEGER}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="config_name = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configName,jdbcType=VARCHAR}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="config_val1_max = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configVal1Max,jdbcType=DECIMAL}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="config_val1_min = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configVal1Min,jdbcType=DECIMAL}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="config_val2_max = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configVal2Max,jdbcType=DECIMAL}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="config_val2_min = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configVal2Min,jdbcType=DECIMAL}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="config_val3_max = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configVal3Max,jdbcType=DECIMAL}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="config_val3_min = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configVal3Min,jdbcType=DECIMAL}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="config_val4_max = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configVal4Max,jdbcType=DECIMAL}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="config_val4_min = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configVal4Min,jdbcType=DECIMAL}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="config_val5_max = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configVal5Max,jdbcType=DECIMAL}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="config_val5_min = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configVal5Min,jdbcType=DECIMAL}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="config_val6_max = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configVal6Max,jdbcType=DECIMAL}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="config_val6_min = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.configVal6Min,jdbcType=DECIMAL}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="del_flag = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.delFlag,jdbcType=INTEGER}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="create_time = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="create_user = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.createUser,jdbcType=INTEGER}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="update_time = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="update_user = case" suffix="end,">
|
|
|
|
|
<foreach collection="list" index="index" item="item">
|
|
|
|
|
when id = #{item.id,jdbcType=BIGINT} then #{item.updateUser,jdbcType=INTEGER}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</trim>
|
|
|
|
|
where id in
|
|
|
|
|
<foreach close=")" collection="list" item="item" open="(" separator=", ">
|
|
|
|
|
#{item.id,jdbcType=BIGINT}
|
|
|
|
|
</foreach>
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteByPrimaryKeyIn">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
delete from tb_warn_config where id in
|
|
|
|
|
<foreach close=")" collection="list" item="id" open="(" separator=", ">
|
|
|
|
|
#{id,jdbcType=BIGINT}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<!--by syruan on 2024-09-10-->
|
2024-09-14 18:23:56 +08:00
|
|
|
<select id="selectByName" resultType="com.bonus.base.domain.TbWarnConfig">
|
|
|
|
|
select * from tb_warn_config where config_name = #{configName} and del_flag = 0 and configu_type = #{configuType}
|
2024-09-10 17:37:44 +08:00
|
|
|
</select>
|
2024-09-14 18:23:56 +08:00
|
|
|
|
|
|
|
|
<select id="getAll" resultType="com.bonus.base.domain.TbWarnConfig">
|
|
|
|
|
select
|
|
|
|
|
twc.id as id,
|
|
|
|
|
twc.configu_type as configuType,
|
|
|
|
|
sda.dict_label as typeName,
|
|
|
|
|
twc.config_name as configName,
|
|
|
|
|
twc.config_val1_max as configVal1Max,
|
|
|
|
|
twc.config_val1_min as configVal1Min,
|
|
|
|
|
twc.config_val2_max as configVal2Max,
|
|
|
|
|
twc.config_val2_min as configVal2Min,
|
|
|
|
|
twc.config_val3_max as configVal3Max,
|
|
|
|
|
twc.config_val3_min as configVal3Min,
|
|
|
|
|
twc.config_val4_max as configVal4Max,
|
|
|
|
|
twc.config_val4_min as configVal4Min,
|
|
|
|
|
twc.config_val5_max as configVal5Max,
|
|
|
|
|
twc.config_val5_min as configVal5Min,
|
|
|
|
|
twc.config_val6_max as configVal6Max,
|
|
|
|
|
twc.config_val6_min as configVal6Min
|
|
|
|
|
from tb_warn_config twc
|
|
|
|
|
left join sys_dict_data sda on twc.configu_type = sda.dict_code
|
|
|
|
|
where twc.del_flag = 0
|
|
|
|
|
<if test="configuType != null and configuType != ''">
|
|
|
|
|
and twc.configu_type = #{configuType}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="configName != null and configName != ''">
|
|
|
|
|
and twc.config_name like concat('%',#{configName},'%')
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
|
2024-09-10 17:37:44 +08:00
|
|
|
</mapper>
|