增加 vip
This commit is contained in:
@@ -6,7 +6,7 @@ import lombok.Data;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 【请填写功能名称】对象 music_scene
|
* 【请填写功能名称】对象 music_scene
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
@@ -45,6 +45,9 @@ public class MusicScene extends BaseEntity
|
|||||||
/** 1删除 */
|
/** 1删除 */
|
||||||
@Excel(name = "1删除")
|
@Excel(name = "1删除")
|
||||||
private Long isDel;
|
private Long isDel;
|
||||||
|
/** 1删除 */
|
||||||
|
@Excel(name = "vip")
|
||||||
|
private Long vip;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.MusicSceneMapper">
|
<mapper namespace="com.ruoyi.system.mapper.MusicSceneMapper">
|
||||||
|
|
||||||
<resultMap type="MusicScene" id="MusicSceneResult">
|
<resultMap type="MusicScene" id="MusicSceneResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="sceneId" column="scene_id" />
|
<result property="sceneId" column="scene_id" />
|
||||||
@@ -15,15 +15,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="createTime" column="create_time" />
|
<result property="createTime" column="create_time" />
|
||||||
<result property="updateTime" column="update_time" />
|
<result property="updateTime" column="update_time" />
|
||||||
<result property="isDel" column="is_del" />
|
<result property="isDel" column="is_del" />
|
||||||
|
<result property="vip" column="vip" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectMusicSceneVo">
|
<sql id="selectMusicSceneVo">
|
||||||
select id, scene_id, scene, music_addr, creator, modify, create_time, update_time, is_del,img_addr from music_scene
|
select id, scene_id, scene, music_addr, creator, modify, create_time, update_time, is_del,img_addr,vip from music_scene
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectMusicSceneList" parameterType="MusicScene" resultMap="MusicSceneResult">
|
<select id="selectMusicSceneList" parameterType="MusicScene" resultMap="MusicSceneResult">
|
||||||
<include refid="selectMusicSceneVo"/>
|
<include refid="selectMusicSceneVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="sceneId != null "> and scene_id = #{sceneId}</if>
|
<if test="sceneId != null "> and scene_id = #{sceneId}</if>
|
||||||
<if test="scene != null and scene != ''"> and scene = #{scene}</if>
|
<if test="scene != null and scene != ''"> and scene = #{scene}</if>
|
||||||
<if test="musicAddr != null and musicAddr != ''"> and music_addr = #{musicAddr}</if>
|
<if test="musicAddr != null and musicAddr != ''"> and music_addr = #{musicAddr}</if>
|
||||||
@@ -32,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="isDel != null "> and is_del = #{isDel}</if>
|
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMusicSceneById" parameterType="String" resultMap="MusicSceneResult">
|
<select id="selectMusicSceneById" parameterType="String" resultMap="MusicSceneResult">
|
||||||
<include refid="selectMusicSceneVo"/>
|
<include refid="selectMusicSceneVo"/>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
@@ -50,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="updateTime != null">update_time,</if>
|
<if test="updateTime != null">update_time,</if>
|
||||||
<if test="isDel != null">is_del,</if>
|
<if test="isDel != null">is_del,</if>
|
||||||
<if test="imgAddr != null">img_addr,</if>
|
<if test="imgAddr != null">img_addr,</if>
|
||||||
|
<if test="vip != null">vip,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="sceneId != null">#{sceneId},</if>
|
<if test="sceneId != null">#{sceneId},</if>
|
||||||
@@ -61,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="updateTime != null">#{updateTime},</if>
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
<if test="isDel != null">#{isDel},</if>
|
<if test="isDel != null">#{isDel},</if>
|
||||||
<if test="imgAddr != null">#{imgAddr},</if>
|
<if test="imgAddr != null">#{imgAddr},</if>
|
||||||
|
<if test="vip != null">#{vip},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
@@ -76,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
<if test="isDel != null">is_del = #{isDel},</if>
|
<if test="isDel != null">is_del = #{isDel},</if>
|
||||||
<if test="imgAddr != null">img_addr = #{imgAddr},</if>
|
<if test="imgAddr != null">img_addr = #{imgAddr},</if>
|
||||||
|
<if test="vip != null">vip = #{vip},</if>
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
@@ -85,7 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteMusicSceneByIds" parameterType="String">
|
<delete id="deleteMusicSceneByIds" parameterType="String">
|
||||||
delete from music_scene where id in
|
delete from music_scene where id in
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
@@ -98,4 +102,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</foreach>
|
</foreach>
|
||||||
and is_del=0
|
and is_del=0
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user