pl
This commit is contained in:
@@ -5,8 +5,10 @@ import com.ruoyi.common.core.controller.BaseController;
|
|||||||
import com.ruoyi.common.core.domain.AjaxResult;
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
import com.ruoyi.common.core.domain.entity.MusicInfo;
|
import com.ruoyi.common.core.domain.entity.MusicInfo;
|
||||||
import com.ruoyi.common.core.domain.entity.Notifications;
|
import com.ruoyi.common.core.domain.entity.Notifications;
|
||||||
|
import com.ruoyi.common.core.domain.entity.PlaStatus;
|
||||||
import com.ruoyi.common.core.page.TableDataInfo;
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
import com.ruoyi.common.utils.SecurityUtils;
|
import com.ruoyi.common.utils.SecurityUtils;
|
||||||
|
import com.ruoyi.system.mapper.PlaStatusMapper;
|
||||||
import com.ruoyi.system.service.*;
|
import com.ruoyi.system.service.*;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
@@ -93,4 +95,13 @@ public class IndexController extends BaseController {
|
|||||||
List<Notifications> result = notificationsService.selectNotificationsByUserId(userId);
|
List<Notifications> result = notificationsService.selectNotificationsByUserId(userId);
|
||||||
return AjaxResult.success(result);
|
return AjaxResult.success(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private PlaStatusMapper plaStatusMapper;
|
||||||
|
|
||||||
|
@GetMapping("/palStatus")
|
||||||
|
public AjaxResult palStatus(){
|
||||||
|
PlaStatus plaStatus = plaStatusMapper.selectPlaStatusById(1L);
|
||||||
|
return AjaxResult.success(plaStatus.getShareStatus());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
spring:
|
spring:
|
||||||
profiles:
|
profiles:
|
||||||
active: dev
|
active: pro
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package com.ruoyi.common.core.domain.entity;
|
||||||
|
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 【请填写功能名称】对象 pla_status
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-11-30
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class PlaStatus extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private Boolean shareStatus;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -146,7 +146,8 @@ public class SecurityConfig
|
|||||||
"/client/version/getLastVersion","/client/search/list","/client/music/find","/client" +
|
"/client/version/getLastVersion","/client/search/list","/client/music/find","/client" +
|
||||||
"/index/getCategory","/client/index/cate/music/**","/client/consult/list",
|
"/index/getCategory","/client/index/cate/music/**","/client/consult/list",
|
||||||
"/client/index/re/music/**","/client/share/list","/file/download/**",
|
"/client/index/re/music/**","/client/share/list","/file/download/**",
|
||||||
"/client/music/getMusicInfo/**","/client/music/getPrevMusicId","/client/music/getNextMusicId").permitAll()
|
"/client/music/getMusicInfo/**","/client/music/getPrevMusicId","/client/music" +
|
||||||
|
"/getNextMusicId","/client/index/palStatus").permitAll()
|
||||||
// 静态资源,可匿名访问
|
// 静态资源,可匿名访问
|
||||||
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
||||||
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
|
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
|
||||||
|
|||||||
@@ -0,0 +1,62 @@
|
|||||||
|
package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
|
import com.ruoyi.common.core.domain.entity.PlaStatus;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 【请填写功能名称】Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-11-30
|
||||||
|
*/
|
||||||
|
public interface PlaStatusMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询【请填写功能名称】
|
||||||
|
*
|
||||||
|
* @param id 【请填写功能名称】主键
|
||||||
|
* @return 【请填写功能名称】
|
||||||
|
*/
|
||||||
|
public PlaStatus selectPlaStatusById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询【请填写功能名称】列表
|
||||||
|
*
|
||||||
|
* @param plaStatus 【请填写功能名称】
|
||||||
|
* @return 【请填写功能名称】集合
|
||||||
|
*/
|
||||||
|
public List<PlaStatus> selectPlaStatusList(PlaStatus plaStatus);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增【请填写功能名称】
|
||||||
|
*
|
||||||
|
* @param plaStatus 【请填写功能名称】
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertPlaStatus(PlaStatus plaStatus);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改【请填写功能名称】
|
||||||
|
*
|
||||||
|
* @param plaStatus 【请填写功能名称】
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updatePlaStatus(PlaStatus plaStatus);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除【请填写功能名称】
|
||||||
|
*
|
||||||
|
* @param id 【请填写功能名称】主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deletePlaStatusById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除【请填写功能名称】
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deletePlaStatusByIds(Long[] ids);
|
||||||
|
}
|
||||||
@@ -156,7 +156,6 @@ public class OrderInfoServiceImpl implements IOrderInfoService
|
|||||||
orderInfo.setOrderName(request.getOrderName());
|
orderInfo.setOrderName(request.getOrderName());
|
||||||
orderInfo.setUserId(loginUser.getUserId());
|
orderInfo.setUserId(loginUser.getUserId());
|
||||||
Product product = productMapper.selectProductByPageType(request.getPackageType());
|
Product product = productMapper.selectProductByPageType(request.getPackageType());
|
||||||
|
|
||||||
orderInfo.setAmount(product.getCurrentPrice());
|
orderInfo.setAmount(product.getCurrentPrice());
|
||||||
orderInfo.setPayType(request.getPayType());
|
orderInfo.setPayType(request.getPayType());
|
||||||
orderInfo.setPackageType(request.getPackageType());
|
orderInfo.setPackageType(request.getPackageType());
|
||||||
|
|||||||
@@ -0,0 +1,56 @@
|
|||||||
|
<?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.system.mapper.PlaStatusMapper">
|
||||||
|
|
||||||
|
<resultMap type="PlaStatus" id="PlaStatusResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="shareStatus" column="share_status" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectPlaStatusVo">
|
||||||
|
select id, share_status from pla_status
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectPlaStatusList" parameterType="PlaStatus" resultMap="PlaStatusResult">
|
||||||
|
<include refid="selectPlaStatusVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="shareStatus != null "> and share_status = #{shareStatus}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectPlaStatusById" parameterType="Long" resultMap="PlaStatusResult">
|
||||||
|
<include refid="selectPlaStatusVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertPlaStatus" parameterType="PlaStatus" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into pla_status
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="shareStatus != null">share_status,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="shareStatus != null">#{shareStatus},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updatePlaStatus" parameterType="PlaStatus">
|
||||||
|
update pla_status
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="shareStatus != null">share_status = #{shareStatus},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deletePlaStatusById" parameterType="Long">
|
||||||
|
delete from pla_status where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deletePlaStatusByIds" parameterType="String">
|
||||||
|
delete from pla_status where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
Reference in New Issue
Block a user