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