parent
3a92312db1
commit
58f1e7e858
6 changed files with 130 additions and 1 deletions
@ -0,0 +1,64 @@ |
||||
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.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("获取订单失败!"); |
||||
} |
||||
} |
||||
|
||||
|
||||
} |
Loading…
Reference in new issue