mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
+2
@@ -563,6 +563,7 @@ public class OrderController {
|
|||||||
// 生产单超期(工作台)
|
// 生产单超期(工作台)
|
||||||
@GetMapping("/getOrderOverdue")
|
@GetMapping("/getOrderOverdue")
|
||||||
@Operation(summary = "生产单超期 (工作台)")
|
@Operation(summary = "生产单超期 (工作台)")
|
||||||
|
@PreAuthorize("@ss.hasPermission('homePage:work:be-overdue')")
|
||||||
public CommonResult<PageResult<OrderOverdueRespVO>> getOrderOverdue(@Valid PageParam pageParam) {
|
public CommonResult<PageResult<OrderOverdueRespVO>> getOrderOverdue(@Valid PageParam pageParam) {
|
||||||
return success(orderService.getOrderOverdue(pageParam));
|
return success(orderService.getOrderOverdue(pageParam));
|
||||||
}
|
}
|
||||||
@@ -570,6 +571,7 @@ public class OrderController {
|
|||||||
// 生产单到期告警 (工作台)
|
// 生产单到期告警 (工作台)
|
||||||
@GetMapping("/getOrderWarn")
|
@GetMapping("/getOrderWarn")
|
||||||
@Operation(summary = "生产单到期告警 (工作台)")
|
@Operation(summary = "生产单到期告警 (工作台)")
|
||||||
|
@PreAuthorize("@ss.hasPermission('homePage:work:completed-today')")
|
||||||
public CommonResult<PageResult<OrderOverdueRespVO>> getOrderNear(@Valid PageParam pageParam) {
|
public CommonResult<PageResult<OrderOverdueRespVO>> getOrderNear(@Valid PageParam pageParam) {
|
||||||
return success(orderService.getOrderNear(pageParam));
|
return success(orderService.getOrderNear(pageParam));
|
||||||
}
|
}
|
||||||
|
|||||||
+12
@@ -5,6 +5,7 @@ import com.cf.imes.module.executor.controller.admin.order.vo.order.OrderStatisti
|
|||||||
import com.cf.imes.module.executor.service.order.OrderStatisticsService;
|
import com.cf.imes.module.executor.service.order.OrderStatisticsService;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
@@ -29,66 +30,77 @@ public class OrderStatisticsController {
|
|||||||
|
|
||||||
@GetMapping("/total")
|
@GetMapping("/total")
|
||||||
@Operation(summary = "生产单总数")
|
@Operation(summary = "生产单总数")
|
||||||
|
@PreAuthorize("@ss.hasPermission('homePage:analysis:order-statistic')")
|
||||||
public CommonResult<Integer> getOrderCount() {
|
public CommonResult<Integer> getOrderCount() {
|
||||||
return success(orderStatisticsService.orderCount());
|
return success(orderStatisticsService.orderCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/today/increase")
|
@GetMapping("/today/increase")
|
||||||
@Operation(summary = "今日新增生产单总数")
|
@Operation(summary = "今日新增生产单总数")
|
||||||
|
@PreAuthorize("@ss.hasPermission('homePage:analysis:order-statistic')")
|
||||||
public CommonResult<Integer> getOrderCountToday() {
|
public CommonResult<Integer> getOrderCountToday() {
|
||||||
return success(orderStatisticsService.orderCountToday());
|
return success(orderStatisticsService.orderCountToday());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/today/finish")
|
@GetMapping("/today/finish")
|
||||||
@Operation(summary = "今日生产单完成总数")
|
@Operation(summary = "今日生产单完成总数")
|
||||||
|
@PreAuthorize("@ss.hasPermission('homePage:analysis:order-statistic')")
|
||||||
public CommonResult<Integer> getOrderCountTodayFinish() {
|
public CommonResult<Integer> getOrderCountTodayFinish() {
|
||||||
return success(orderStatisticsService.orderCountTodayFinish());
|
return success(orderStatisticsService.orderCountTodayFinish());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/producing/total")
|
@GetMapping("/producing/total")
|
||||||
@Operation(summary = "生产中生产单总数")
|
@Operation(summary = "生产中生产单总数")
|
||||||
|
@PreAuthorize("@ss.hasPermission('homePage:analysis:order-statistic')")
|
||||||
public CommonResult<Integer> getOrderCountProduce() {
|
public CommonResult<Integer> getOrderCountProduce() {
|
||||||
return success(orderStatisticsService.orderCountProduce());
|
return success(orderStatisticsService.orderCountProduce());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/producing/square")
|
@GetMapping("/producing/square")
|
||||||
@Operation(summary = "生产中生产平方数")
|
@Operation(summary = "生产中生产平方数")
|
||||||
|
@PreAuthorize("@ss.hasPermission('homePage:analysis:order-statistic')")
|
||||||
public CommonResult<Double> getOrderSquareProduce() {
|
public CommonResult<Double> getOrderSquareProduce() {
|
||||||
return success(orderStatisticsService.orderSquareProduce());
|
return success(orderStatisticsService.orderSquareProduce());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/orderStatus/group")
|
@GetMapping("/orderStatus/group")
|
||||||
@Operation(summary = "生产单状态分组统计")
|
@Operation(summary = "生产单状态分组统计")
|
||||||
|
@PreAuthorize("@ss.hasPermission('homePage:analysis:order-status')")
|
||||||
public CommonResult<Map<String, Object>> getOrderStatusCount(@Valid OrderStatisticsReqVO reqVO) {
|
public CommonResult<Map<String, Object>> getOrderStatusCount(@Valid OrderStatisticsReqVO reqVO) {
|
||||||
return success(orderStatisticsService.getOrderStatusCount(reqVO));
|
return success(orderStatisticsService.getOrderStatusCount(reqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/orderAndPlanCount/group")
|
@GetMapping("/orderAndPlanCount/group")
|
||||||
@Operation(summary = "生产单、排单单量分组统计")
|
@Operation(summary = "生产单、排单单量分组统计")
|
||||||
|
@PreAuthorize("@ss.hasPermission('homePage:analysis:orderAndPlan-count')")
|
||||||
public CommonResult<Map<String, Object>> getOrderAndPlanCountGroup(@Valid OrderStatisticsReqVO reqVO) {
|
public CommonResult<Map<String, Object>> getOrderAndPlanCountGroup(@Valid OrderStatisticsReqVO reqVO) {
|
||||||
return success(orderStatisticsService.getOrderAndPlanCountGroup(reqVO));
|
return success(orderStatisticsService.getOrderAndPlanCountGroup(reqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/orderAndPlanArea/group")
|
@GetMapping("/orderAndPlanArea/group")
|
||||||
@Operation(summary = "生产单、排单平方数分组统计")
|
@Operation(summary = "生产单、排单平方数分组统计")
|
||||||
|
@PreAuthorize("@ss.hasPermission('homePage:analysis:orderAndPlan-square-num')")
|
||||||
public CommonResult<Map<String, Object>> getOrderAndPlanAreaGroup(@Valid OrderStatisticsReqVO reqVO) {
|
public CommonResult<Map<String, Object>> getOrderAndPlanAreaGroup(@Valid OrderStatisticsReqVO reqVO) {
|
||||||
return success(orderStatisticsService.getOrderAndPlanAreaSumGroup(reqVO));
|
return success(orderStatisticsService.getOrderAndPlanAreaSumGroup(reqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/plateCount/group")
|
@GetMapping("/plateCount/group")
|
||||||
@Operation(summary = "小板数量分组统计")
|
@Operation(summary = "小板数量分组统计")
|
||||||
|
@PreAuthorize("@ss.hasPermission('homePage:analysis:plate-count')")
|
||||||
public CommonResult<Map<String,Object>> getPlateCount(@Valid OrderStatisticsReqVO reqVO) {
|
public CommonResult<Map<String,Object>> getPlateCount(@Valid OrderStatisticsReqVO reqVO) {
|
||||||
return success(orderStatisticsService.getOrderPlateCountGroup(reqVO));
|
return success(orderStatisticsService.getOrderPlateCountGroup(reqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/plateArea/group")
|
@GetMapping("/plateArea/group")
|
||||||
@Operation(summary = "小板面积分组统计")
|
@Operation(summary = "小板面积分组统计")
|
||||||
|
@PreAuthorize("@ss.hasPermission('homePage:analysis:plate-area')")
|
||||||
public CommonResult<Map<String,Object>> getPlateArea(@Valid OrderStatisticsReqVO reqVO) {
|
public CommonResult<Map<String,Object>> getPlateArea(@Valid OrderStatisticsReqVO reqVO) {
|
||||||
return success(orderStatisticsService.getOrderPlateAreaGroup(reqVO));
|
return success(orderStatisticsService.getOrderPlateAreaGroup(reqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/bigPlateCount/group")
|
@GetMapping("/bigPlateCount/group")
|
||||||
@Operation(summary = "大板数量分组统计")
|
@Operation(summary = "大板数量分组统计")
|
||||||
|
@PreAuthorize("@ss.hasPermission('homePage:analysis:goods-count')")
|
||||||
public CommonResult<Map<String, Object>> getBigPlateCount(@Valid OrderStatisticsReqVO reqVO) {
|
public CommonResult<Map<String, Object>> getBigPlateCount(@Valid OrderStatisticsReqVO reqVO) {
|
||||||
return success(orderStatisticsService.getBigPlateCountGroup(reqVO));
|
return success(orderStatisticsService.getBigPlateCountGroup(reqVO));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user