廖井涛
2024-09-10 caf567becb6378f848b3b930821a4b38cb7564a5
north-glass-erp/src/main/java/com/example/erp/controller/pp/ReportingWorkController.java
@@ -144,8 +144,17 @@
    @ApiOperation("mes报工接口")
    @PostMapping  ("/mesReportingWork")
    public Result mesReportingWork(@RequestBody Map<String,Object> reportingWork){
        return Result.seccess(reportingWorkService.mesReportingWorkSv(reportingWork));
        Boolean aBoolean = reportingWorkService.mesReportingWorkSv(reportingWork);
        if(aBoolean){
            return Result.seccess(aBoolean);
        }else{
            throw new ServiceException(Constants.Code_600, "上工序已完工数量小于本工序报工数量,请检查");
        }
    }
    @ApiOperation("mes报工次破新增")
    @PostMapping  ("/mesSaveReportingWorkWorn")
    public Result mesSaveReportingWorkWorn(@RequestBody Map<String,Object> reportingWork)  {
        return  Result.seccess(reportingWorkService.SaveReportingWorkSv(reportingWork));
    }
}