package com.yuanchu.mom.controller;
|
|
import com.yuanchu.mom.service.ManufactureSchedulingService;
|
import com.yuanchu.mom.vo.Result;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiImplicitParam;
|
import io.swagger.annotations.ApiImplicitParams;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* 生产订单表(ManufactureOrder)表控制层
|
*
|
* @author XiaoRuby
|
* @since 2023-09-3 14:16:24
|
*/
|
@Api(tags = "生产管理-->生产报工")
|
@RestController
|
@RequestMapping("/productionReport")
|
public class ProductionReportController {
|
@Autowired
|
private ManufactureSchedulingService manufactureSchedulingService;
|
|
@ApiOperation(value = "查询生产订单列表")
|
@ApiImplicitParams(value = {
|
@ApiImplicitParam(name = "pageSize", value = "页数", dataTypeClass = Integer.class, required = true),
|
@ApiImplicitParam(name = "countSize", value = "条数/页", dataTypeClass = Integer.class, required = true),
|
@ApiImplicitParam(name = "customerName", value = "客户名称", dataTypeClass = String.class),
|
@ApiImplicitParam(name = "orderNumber", value = "订单编号", dataTypeClass = String.class),
|
@ApiImplicitParam(name = "productName", value = "产品名称", dataTypeClass = String.class)
|
})
|
@GetMapping("/selectAllManord")
|
public Result<?> selectAllManord(Integer pageSize, Integer countSize, String customerName, String orderNumber, String productName, Integer type) {
|
|
return Result.success();
|
}
|
|
@ApiOperation(value = "点击新增-->查询所有排产计划")
|
@PostMapping("add_show_scheduling")
|
public Result<?> reportSelectScheduling() {
|
return Result.success(manufactureSchedulingService.reportSelectScheduling());
|
}
|
|
@ApiOperation(value = "报工增加")
|
@PostMapping("add")
|
public Result<?> productionReportAdd() {
|
|
return Result.success();
|
}
|
}
|