53 lines
1.8 KiB
XML
53 lines
1.8 KiB
XML
|
|
<?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.ruoyi.app.mapper.AppLedConfigMapper">
|
||
|
|
|
||
|
|
<resultMap type="AppLedConfig" id="AppLedConfigResult">
|
||
|
|
<result property="ledId" column="led_id" />
|
||
|
|
</resultMap>
|
||
|
|
|
||
|
|
<sql id="selectAppLedConfigVo">
|
||
|
|
select led_id from app_led_config
|
||
|
|
</sql>
|
||
|
|
|
||
|
|
<select id="selectAppLedConfigList" parameterType="AppLedConfig" resultMap="AppLedConfigResult">
|
||
|
|
<include refid="selectAppLedConfigVo"/>
|
||
|
|
<where>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="selectAppLedConfigByLedId" parameterType="String" resultMap="AppLedConfigResult">
|
||
|
|
<include refid="selectAppLedConfigVo"/>
|
||
|
|
where led_id = #{ledId}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<insert id="insertAppLedConfig" parameterType="AppLedConfig">
|
||
|
|
insert into app_led_config
|
||
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
|
<if test="ledId != null">led_id,</if>
|
||
|
|
</trim>
|
||
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||
|
|
<if test="ledId != null">#{ledId},</if>
|
||
|
|
</trim>
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
<update id="updateAppLedConfig" parameterType="AppLedConfig">
|
||
|
|
update app_led_config
|
||
|
|
<trim prefix="SET" suffixOverrides=",">
|
||
|
|
</trim>
|
||
|
|
where led_id = #{ledId}
|
||
|
|
</update>
|
||
|
|
|
||
|
|
<delete id="deleteAppLedConfigByLedId" parameterType="String">
|
||
|
|
delete from app_led_config where led_id = #{ledId}
|
||
|
|
</delete>
|
||
|
|
|
||
|
|
<delete id="deleteAppLedConfigByLedIds" parameterType="String">
|
||
|
|
delete from app_led_config where led_id in
|
||
|
|
<foreach item="ledId" collection="array" open="(" separator="," close=")">
|
||
|
|
#{ledId}
|
||
|
|
</foreach>
|
||
|
|
</delete>
|
||
|
|
</mapper>
|