首页2,权限修改
This commit is contained in:
@@ -6,6 +6,8 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.ruoyi.common.annotation.Anonymous;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import com.ruoyi.index.domain.ViewIndexJob;
|
||||
import com.ruoyi.index.mapper.ViewIndexJobMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -52,30 +54,33 @@ public class IndexController extends BaseController {
|
||||
/**
|
||||
* 查询单据状态统计
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('index:bill:list')")
|
||||
//@PreAuthorize("@ss.hasPermi('index:bill:list')")
|
||||
@Anonymous
|
||||
@GetMapping("/bill/status")
|
||||
public AjaxResult getBillStatusCount() {
|
||||
List<BillStatusCount> list = billStatusCountService.selectAllBillStatusCount();
|
||||
List<BillStatusCount> list = billStatusCountService.selectAllBillStatusCount(new BaseEntity());
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询各状态货位数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('index:cargospace:list')")
|
||||
//@PreAuthorize("@ss.hasPermi('index:cargospace:list')")
|
||||
@Anonymous
|
||||
@GetMapping("/cargospace/count")
|
||||
public AjaxResult getCargoSpaceCount() {
|
||||
CargoSpaceCount cargoSpaceCount = cargoSpaceCountService.selectStatusCount();
|
||||
CargoSpaceCount cargoSpaceCount = cargoSpaceCountService.selectStatusCount(new BaseEntity());
|
||||
return success(cargoSpaceCount);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询已完成单据数量统计
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('index:count:list')")
|
||||
//@PreAuthorize("@ss.hasPermi('index:count:list')")
|
||||
@Anonymous
|
||||
@GetMapping("/finishCount")
|
||||
public AjaxResult getFinishCount() {
|
||||
IndexCount indexCount = indexCountService.selectFinishCount();
|
||||
IndexCount indexCount = indexCountService.selectFinishCount(new BaseEntity());
|
||||
return success(indexCount);
|
||||
}
|
||||
|
||||
@@ -86,9 +91,10 @@ public class IndexController extends BaseController {
|
||||
/**
|
||||
* 获取任务状态统计
|
||||
*/
|
||||
@Anonymous
|
||||
@GetMapping("/job/status")
|
||||
public AjaxResult getJobStatusCount() {
|
||||
List<ViewIndexJob> allJobs = viewIndexJobMapper.selectViewIndexJobByStatus(null);
|
||||
List<ViewIndexJob> allJobs = viewIndexJobMapper.selectViewIndexJobByStatus(new BaseEntity());
|
||||
Map<String, List<ViewIndexJob>> result = new HashMap<>();
|
||||
result.put("status2", allJobs.stream().filter(job -> "2".equals(job.getStatus())).collect(Collectors.toList()));
|
||||
result.put("status3", allJobs.stream().filter(job -> "3".equals(job.getStatus())).collect(Collectors.toList()));
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.ruoyi.index.controller;
|
||||
|
||||
import com.ruoyi.common.annotation.Anonymous;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -25,10 +27,11 @@ public class WeekJobCountController
|
||||
/**
|
||||
* 获取近一周的入库和出库作业数量统计
|
||||
*/
|
||||
@Anonymous
|
||||
@GetMapping("/count")
|
||||
public AjaxResult getWeekJobCount()
|
||||
{
|
||||
WeekJobCount weekJobCount = weekJobCountService.getWeekJobCount();
|
||||
WeekJobCount weekJobCount = weekJobCountService.getWeekJobCount(new BaseEntity());
|
||||
return AjaxResult.success(weekJobCount);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user