commit
67b892ce29
19 changed files with 304 additions and 60 deletions
@ -0,0 +1,91 @@ |
||||
package org.jeecg.modules.largeScreen; |
||||
|
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.jeecg.common.api.vo.Result; |
||||
import org.jeecg.common.aspect.annotation.AutoLog; |
||||
import org.jeecg.modules.demo.zyorders.entity.ZyOrders; |
||||
import org.jeecg.modules.demo.zyorders.service.IZyOrdersService; |
||||
import org.jeecg.modules.orderbymakeclothplan.vo.TodayOrderAndQIriVo; |
||||
import org.jeecg.modules.shop.vo.OrderSales; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author Lee |
||||
*下单的时候,直接生成生产订单(zy_make_order)====> 审核生产订单 ==========>通过的话,就生成对应的zy_make_cloth_plan |
||||
*/ |
||||
@Api(tags = "大屏数据") |
||||
@RequestMapping("/largeScreen") |
||||
@RestController |
||||
@Slf4j |
||||
public class LargeScreenController { |
||||
|
||||
|
||||
@Autowired |
||||
private IZyOrdersService zyOrdersService; |
||||
|
||||
|
||||
/********************************************订单大数据监控系统********************************************/ |
||||
|
||||
/************************************实时订单展示************************************/ |
||||
|
||||
/** |
||||
* 查询订单的状态 |
||||
* |
||||
* @return |
||||
*/ |
||||
@AutoLog (value = "获取订单的状态") |
||||
@ApiOperation(value = "获取订单的状态", notes = "获取订单的状态") |
||||
@GetMapping("/getOrderStatus") |
||||
public Result<?> getOrderStatus() { |
||||
List<ZyOrders> zyOrderList = zyOrdersService.getOrderStatus(); |
||||
if (!zyOrderList.isEmpty()) |
||||
{ |
||||
return Result.OK("查询成功!", zyOrderList); |
||||
} |
||||
else |
||||
{ |
||||
return Result.error("今天没有生成订单!"); |
||||
} |
||||
|
||||
} |
||||
|
||||
@AutoLog(value = "获取历史订单") |
||||
@ApiOperation(value = "获取历史订单", notes = "获取历史订单") |
||||
@GetMapping("/getOldOrder") |
||||
public Result<?> getOldOrder() { |
||||
List<ZyOrders> orderList = zyOrdersService.getOldOrder(); |
||||
if (!orderList.isEmpty()){ |
||||
return Result.OK("查询成功!", orderList); |
||||
}else { |
||||
return Result.error("获取订单失败!"); |
||||
} |
||||
} |
||||
|
||||
|
||||
// @AutoLog(value = "订单销售分析")
|
||||
// @ApiOperation(value = "订单销售分析", notes = "订单销售分析")
|
||||
// @GetMapping("/selectOrderSale")
|
||||
// public Result<?> selectOrderSale(){
|
||||
// List<OrderSales> list = zyOrdersService.selectOrderSale();
|
||||
// return Result.OK(list);
|
||||
// }
|
||||
/************************************销售订单数据************************************/ |
||||
|
||||
@AutoLog(value = "获取今日订单及七日订单") |
||||
@ApiOperation(value = "获取今日订单及七日订单", notes = "获取今日订单及七日订单") |
||||
@GetMapping("/getOrder") |
||||
public Result<?> getOrder() { |
||||
TodayOrderAndQIriVo todayOrderAndQIriVo = zyOrdersService.getOrder(); |
||||
if (todayOrderAndQIriVo != null) { |
||||
return Result.OK(todayOrderAndQIriVo); |
||||
}else { |
||||
return Result.OK("没有工作安排"); |
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue