大客流一张图界面地图服务更换测试

This commit is contained in:
chenll 2025-06-20 22:16:03 +08:00
parent 0d8343008b
commit fe87e0e54f
1 changed files with 102 additions and 0 deletions

View File

@ -0,0 +1,102 @@
<?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.dkl.large.mapper.DklWarningThresholdMapper">
<resultMap type="DklWarningThreshold" id="DklWarningThresholdResult">
<result property="id" column="id" />
<result property="warningLevel" column="warning_level" />
<result property="maxCapacity" column="max_capacity" />
<result property="minCapacity" column="min_capacity" />
<result property="takeSteps" column="take_steps" />
<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="delFlag" column="del_flag" />
<result property="deptId" column="dept_id" />
<result property="icon" column="icon" />
</resultMap>
<sql id="selectDklWarningThresholdVo">
select id, warning_level, max_capacity, min_capacity, take_steps, create_by, create_time, update_by, update_time, del_flag, dept_id, icon from dkl_warning_threshold
</sql>
<select id="selectDklWarningThresholdList" parameterType="DklWarningThreshold" resultMap="DklWarningThresholdResult">
<include refid="selectDklWarningThresholdVo"/>
<where>
<if test="warningLevel != null and warningLevel != ''"> and warning_level = #{warningLevel}</if>
<if test="maxCapacity != null and maxCapacity != ''"> and max_capacity = #{maxCapacity}</if>
<if test="minCapacity != null and minCapacity != ''"> and min_capacity = #{minCapacity}</if>
<if test="takeSteps != null and takeSteps != ''"> and take_steps = #{takeSteps}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="delFlag != null and delFlag != ''"> and del_flag = #{delFlag}</if>
<if test="icon != null and icon != ''"> and icon = #{icon}</if>
</where>
</select>
<select id="selectDklWarningThresholdById" parameterType="Integer" resultMap="DklWarningThresholdResult">
<include refid="selectDklWarningThresholdVo"/>
where id = #{id}
</select>
<insert id="insertDklWarningThreshold" parameterType="DklWarningThreshold">
insert into dkl_warning_threshold
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="warningLevel != null">warning_level,</if>
<if test="maxCapacity != null">max_capacity,</if>
<if test="minCapacity != null">min_capacity,</if>
<if test="takeSteps != null">take_steps,</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="delFlag != null">del_flag,</if>
<if test="deptId != null">dept_id,</if>
<if test="icon != null">icon,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="warningLevel != null">#{warningLevel},</if>
<if test="maxCapacity != null">#{maxCapacity},</if>
<if test="minCapacity != null">#{minCapacity},</if>
<if test="takeSteps != null">#{takeSteps},</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="delFlag != null">#{delFlag},</if>
<if test="deptId != null">#{deptId},</if>
<if test="icon != null">#{icon},</if>
</trim>
</insert>
<update id="updateDklWarningThreshold" parameterType="DklWarningThreshold">
update dkl_warning_threshold
<trim prefix="SET" suffixOverrides=",">
<if test="warningLevel != null">warning_level = #{warningLevel},</if>
<if test="maxCapacity != null">max_capacity = #{maxCapacity},</if>
<if test="minCapacity != null">min_capacity = #{minCapacity},</if>
<if test="takeSteps != null">take_steps = #{takeSteps},</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="delFlag != null">del_flag = #{delFlag},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="icon != null">icon = #{icon},</if>
</trim>
where id = #{id}
</update>
<update id="deleteDklWarningThresholdById" parameterType="int">
update dkl_warning_threshold set del_flag = 2 where id = #{id}
</update>
<update id="deleteDklWarningThresholdByIds" parameterType="int">
update dkl_warning_threshold set del_flag = 2 where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>