XiaoRuby
2023-09-04 91b2da2c3a42656e842f7c9e0c4af6aa02dbaa3a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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() {
        manufactureSchedulingService.reportSelectScheduling();
        return Result.success();
    }
 
    @ApiOperation(value = "报工增加")
    @PostMapping("add")
    public Result<?> productionReportAdd() {
 
        return Result.success();
    }
}