修改--后台添加权限判断
This commit is contained in:
parent
f04b8d4823
commit
8aaa830384
@ -22,6 +22,7 @@ import com.ruoyi.system.service.*;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
@ -58,6 +59,7 @@ public class SysAppUserController {
|
||||
|
||||
|
||||
// 当前这里还没写权限管理, 传递参数SysUser user---搜索时使用
|
||||
@PreAuthorize("@ss.hasPermi('system:customer:list')")
|
||||
@Log(title = "用户管理--获取所有app用户列表", businessType = BusinessType.GET)
|
||||
@GetMapping("/getAllAppUserInfo")
|
||||
public TableDataInfo getAllAppUserInfo(SysUser user){
|
||||
@ -71,6 +73,7 @@ public class SysAppUserController {
|
||||
|
||||
}
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('system:customer:list')")
|
||||
@Log(title = "用户管理--获取指定id用户信息", businessType = BusinessType.GET)
|
||||
@GetMapping("/{userId}")
|
||||
public AjaxResult getUserInfoByUserId(@PathVariable Long userId){
|
||||
@ -84,6 +87,7 @@ public class SysAppUserController {
|
||||
|
||||
}
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('system:customer:list')")
|
||||
@Log(title = "用户管理--修改用户状态", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/changeUserStatus")
|
||||
public AjaxResult changeUserState(@RequestBody UpdateUserStateDto updateUserStateDto){
|
||||
@ -107,6 +111,7 @@ public class SysAppUserController {
|
||||
}
|
||||
}
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('system:customer:list')")
|
||||
@Log(title = "用户管理--获取指定id用户信息", businessType = BusinessType.GET)
|
||||
@GetMapping("/user/{userId}")
|
||||
public AjaxResult getUserByUserId(@PathVariable Long userId){
|
||||
@ -120,6 +125,7 @@ public class SysAppUserController {
|
||||
|
||||
|
||||
// 获取前一天用户总数和大前天用户总数
|
||||
@PreAuthorize("@ss.hasPermi('system:customer:list')")
|
||||
@GetMapping("/getUserCount")
|
||||
public AjaxResult getUserCount(){
|
||||
|
||||
@ -156,6 +162,7 @@ public class SysAppUserController {
|
||||
}
|
||||
|
||||
//获取收入总额和较前天增长的数据
|
||||
@PreAuthorize("@ss.hasPermi('system:customer:list')")
|
||||
@GetMapping("/getTodayIncome")
|
||||
public AjaxResult getTodayIncome(){
|
||||
|
||||
@ -189,6 +196,7 @@ public class SysAppUserController {
|
||||
}
|
||||
|
||||
//获取用户自定参数的在线时长
|
||||
@PreAuthorize("@ss.hasPermi('system:customer:list')")
|
||||
@GetMapping("/getOnlineTime/{day}")
|
||||
public AjaxResult getOnlineTime(@PathVariable int day){
|
||||
LocalDate now = LocalDate.now();
|
||||
@ -219,6 +227,7 @@ public class SysAppUserController {
|
||||
}
|
||||
|
||||
//获取用户近7天的每天在线时长
|
||||
@PreAuthorize("@ss.hasPermi('system:customer:list')")
|
||||
@GetMapping("/getSOnlineTime")
|
||||
public AjaxResult getSOnlineTime(){
|
||||
|
||||
@ -246,6 +255,7 @@ public class SysAppUserController {
|
||||
}
|
||||
|
||||
//获取用户近30天的每天在线时长
|
||||
@PreAuthorize("@ss.hasPermi('system:customer:list')")
|
||||
@GetMapping("/getThOnlineTime")
|
||||
public AjaxResult getThOnlineTime(){
|
||||
|
||||
@ -273,6 +283,7 @@ public class SysAppUserController {
|
||||
}
|
||||
|
||||
// 获取指定城市,指定天数的每个资源位MR总在线时长
|
||||
@PreAuthorize("@ss.hasPermi('system:customer:list')")
|
||||
@PostMapping("/getMRTime")
|
||||
public AjaxResult getMRTime(@RequestParam String city, @RequestParam int day){
|
||||
|
||||
@ -339,6 +350,7 @@ public class SysAppUserController {
|
||||
}
|
||||
|
||||
//获取资源位近7天指定景点每个资源位MR总在线时长
|
||||
@PreAuthorize("@ss.hasPermi('system:customer:list')")
|
||||
@PostMapping("/getSMRTime")
|
||||
public AjaxResult getSMRTime(@RequestParam String city){
|
||||
System.out.println("传递参数city是" + city);
|
||||
|
||||
@ -14,6 +14,7 @@ import com.ruoyi.system.service.IDailySysService;
|
||||
import com.ruoyi.system.service.IOrderInfoService;
|
||||
import com.ruoyi.system.service.ISysOrderService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.time.LocalDate;
|
||||
@ -36,6 +37,9 @@ public class SysMarketController extends BaseController {
|
||||
private IOrderInfoService orderInfoService;
|
||||
|
||||
|
||||
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('system:order:query')")
|
||||
@GetMapping("/getStIncome")
|
||||
public AjaxResult getStIncome() {
|
||||
|
||||
@ -83,6 +87,7 @@ public class SysMarketController extends BaseController {
|
||||
}
|
||||
|
||||
// 根据天数获取每天的收入额
|
||||
@PreAuthorize("@ss.hasPermi('system:order:query')")
|
||||
@GetMapping("/getStIncome/{day}")
|
||||
public AjaxResult getStIncome(@PathVariable int day) {
|
||||
|
||||
@ -115,6 +120,7 @@ public class SysMarketController extends BaseController {
|
||||
}
|
||||
|
||||
// 获取订单列表
|
||||
@PreAuthorize("@ss.hasPermi('system:order:query')")
|
||||
@GetMapping("/getOrderList")
|
||||
public TableDataInfo getOrderList(SysOrder sysOrder) {
|
||||
|
||||
@ -154,6 +160,7 @@ public class SysMarketController extends BaseController {
|
||||
}
|
||||
|
||||
//获取订单详情
|
||||
@PreAuthorize("@ss.hasPermi('system:order:query')")
|
||||
@Log(title = "营销管理--查看订单详情", businessType = BusinessType.GET)
|
||||
@PostMapping("/getOrderDetail")
|
||||
public AjaxResult getOrderDetail(@RequestBody GetOrderDetailDto getOrderDetailDto){
|
||||
|
||||
@ -16,6 +16,7 @@ import com.ruoyi.system.service.*;
|
||||
import com.ruoyi.web.controller.app.baidu.GsonUtils;
|
||||
import org.apache.commons.collections.map.HashedMap;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
@ -73,6 +74,7 @@ public class SysSourceController extends BaseController {
|
||||
* */
|
||||
|
||||
// 获取系统资源位列表, 附带搜索功能
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@GetMapping("/getAllSource")
|
||||
public TableDataInfo getAllSource(SysSource sysSource) {
|
||||
|
||||
@ -121,6 +123,7 @@ public class SysSourceController extends BaseController {
|
||||
}
|
||||
|
||||
// 获取城市数, 景区数, 资源位数, 展示中的资源位个数, 互动次数, 分享次数.
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@GetMapping("/getStSource")
|
||||
public AjaxResult getStSource() {
|
||||
|
||||
@ -165,6 +168,7 @@ public class SysSourceController extends BaseController {
|
||||
}
|
||||
|
||||
// 根据天数获取资源位利用情况, 还要加城市.现在只有济南,先不写了.
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@GetMapping("/getSourceUseCount/{day}")
|
||||
public AjaxResult getSourceUseCount(@PathVariable int day) {
|
||||
|
||||
@ -213,6 +217,7 @@ public class SysSourceController extends BaseController {
|
||||
}
|
||||
|
||||
// 根据天数获取资源位利用情况, 还要加城市----------------后期要修改
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@PostMapping("/getSourceUseCount")
|
||||
public AjaxResult getSourceUseCount(@RequestParam String city, @RequestParam int day) {
|
||||
|
||||
@ -264,6 +269,7 @@ public class SysSourceController extends BaseController {
|
||||
|
||||
// 热门作者榜单--以user_info中的 receive_rockets 为基准排序, 返回前6 然后再查他们的作品数
|
||||
// 作品数 ----暂定都查询--连带着草稿都查询
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@GetMapping("/getHotAuthor")
|
||||
public AjaxResult getHotAuthor() {
|
||||
|
||||
@ -291,6 +297,7 @@ public class SysSourceController extends BaseController {
|
||||
}
|
||||
|
||||
//资源位榜单--以 sys_source 中的 b_bought 为基准排序, 返回前10
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@GetMapping("/getHotSource")
|
||||
public AjaxResult getHotSource() {
|
||||
|
||||
@ -307,6 +314,7 @@ public class SysSourceController extends BaseController {
|
||||
}
|
||||
|
||||
//查看资源位详情
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@Log(title = "产品管理--查看资源位详情", businessType = BusinessType.GET)
|
||||
@GetMapping("/getSource/{sourceId}")
|
||||
public AjaxResult getSource(@PathVariable Long sourceId) {
|
||||
@ -360,6 +368,7 @@ public class SysSourceController extends BaseController {
|
||||
// 设置--价格
|
||||
|
||||
// 查询分区价格和图片
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@GetMapping("/getPartPriceAndWork")
|
||||
public AjaxResult getPartPrice(SysScenic scenic) {
|
||||
|
||||
@ -404,6 +413,7 @@ public class SysSourceController extends BaseController {
|
||||
}
|
||||
|
||||
// 修改默认价格和图片--------默认价格修改
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@Transactional
|
||||
@Log(title = "产品管理--修改资源位默认价格", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/changeSourcePriceAndWork")
|
||||
@ -494,6 +504,7 @@ public class SysSourceController extends BaseController {
|
||||
|
||||
|
||||
// 下拉框返回城市和景区列表
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@GetMapping("/getCityAndScenic")
|
||||
public AjaxResult getCityAndScenic() {
|
||||
|
||||
@ -513,6 +524,7 @@ public class SysSourceController extends BaseController {
|
||||
|
||||
// 上传默认资源位图片--并更新sys_scenic_default默认的图片
|
||||
// 修改默认被购买的资源位的默认图片---未完成
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@Transactional
|
||||
@Log(title = "产品管理--修改资源位默认图片", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/changeSourceImage")
|
||||
@ -620,6 +632,7 @@ public class SysSourceController extends BaseController {
|
||||
}
|
||||
|
||||
// 产品管理--设置--获取资源位分布坐标, 便于修改单个资源位图片
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@PostMapping("/getAllSourceCoordinate")
|
||||
public AjaxResult getAllSourceCoordinate(@RequestBody SysSource sysSource) {
|
||||
|
||||
@ -673,6 +686,7 @@ public class SysSourceController extends BaseController {
|
||||
}
|
||||
|
||||
// 产品管理--设置--修改指定资源位的当前背景,
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@Log(title = "产品管理--修改指定资源位默认图片", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/changeSingleSourceImage")
|
||||
public AjaxResult changeSingleSourceImage(@RequestParam("sourceImage") MultipartFile sourceImage,
|
||||
@ -715,6 +729,7 @@ public class SysSourceController extends BaseController {
|
||||
|
||||
}
|
||||
// 产品管理--设置--批量修改指定资源位图片
|
||||
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
||||
@PostMapping("/changeMultiSourceImage")
|
||||
public AjaxResult changeMultiSourceImage(@RequestParam("sourceImage") MultipartFile sourceImage,
|
||||
@RequestParam("sourceStrList") String sourceStrList) {
|
||||
|
||||
@ -19,6 +19,7 @@ import com.ruoyi.system.domain.dto.SeUserWorkCountDto;
|
||||
import com.ruoyi.system.domain.dto.UserWorkReviewDto;
|
||||
import com.ruoyi.system.service.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@ -62,6 +63,7 @@ public class SysWorkReviewController extends BaseController {
|
||||
//所有总数 workStatus=null
|
||||
|
||||
// 获取所有作品数量统计数据
|
||||
@PreAuthorize("@ss.hasPermi('system:check:list')")
|
||||
@GetMapping("/getStWorkCount")
|
||||
public AjaxResult getStWorkCount(){
|
||||
//作品总数
|
||||
@ -106,6 +108,7 @@ public class SysWorkReviewController extends BaseController {
|
||||
|
||||
|
||||
//获取指定天数的用户作品总量
|
||||
@PreAuthorize("@ss.hasPermi('system:check:list')")
|
||||
@Log(title = "内容审核--获取指定天数的用户作品总量", businessType = BusinessType.GET)
|
||||
@GetMapping("/getDayWorkCount/{day}")
|
||||
public AjaxResult getDayWorkCount(@PathVariable int day){
|
||||
@ -140,6 +143,7 @@ public class SysWorkReviewController extends BaseController {
|
||||
|
||||
//获取所有作品列表-----作品图片 名称 内容 创建时间 作者 资源位 审核状态 审核记录
|
||||
// 后续要加搜索功能------没添加搜索功能
|
||||
@PreAuthorize("@ss.hasPermi('system:check:list')")
|
||||
@Log(title = "内容审核--获取作品列表", businessType = BusinessType.GET)
|
||||
@GetMapping("/getAllUserWork")
|
||||
public TableDataInfo getAllUserWork(UserWork userWork){
|
||||
@ -154,6 +158,7 @@ public class SysWorkReviewController extends BaseController {
|
||||
}
|
||||
|
||||
// 根据作品id获取作品详情
|
||||
@PreAuthorize("@ss.hasPermi('system:check:list')")
|
||||
@Log(title = "内容审核--查看审核详情", businessType = BusinessType.GET)
|
||||
@GetMapping("/getUserWork/{workId}")
|
||||
public AjaxResult getUserWork(@PathVariable Long workId){
|
||||
@ -191,6 +196,7 @@ public class SysWorkReviewController extends BaseController {
|
||||
// 默认没有第4个人审核---------如果有的话需要修改相关逻辑
|
||||
// 审核完成后---------发送消息通知
|
||||
// 20241212---------审核以最后一个人的审核标准为准.----------------
|
||||
@PreAuthorize("@ss.hasPermi('system:check:list')")
|
||||
@Log(title = "内容审核--审核作品", businessType = BusinessType.UPDATE)
|
||||
@Transactional
|
||||
@PostMapping("/reviewWork")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user