zss
2023-09-25 44a9b4729e058e75dfba2892803038ee91963d77
inspect-server/src/main/java/com/yuanchu/mom/controller/ProcessInspectController.java
@@ -58,16 +58,17 @@
    @ApiOperation(value = "上报(更新检验状态)")
    @ApiImplicitParams(value = {
            @ApiImplicitParam(name = "id", value = "检验单id", dataTypeClass = Integer.class, required = true)
            @ApiImplicitParam(name = "id", value = "检验单id", dataTypeClass = Integer.class, required = true),
            @ApiImplicitParam(name = "number", value = "不合格数量", dataTypeClass = Integer.class)
    })
    @PostMapping("/updateProcessInspectsById")
    public Result updateProcessInspectsById(Integer id) {
    public Result updateProcessInspectsById(Integer id,Integer number) {
        //如果已经上报了不能再一次上报
        ProcessInspect processInspect = processInspectService.getById(id);
        if (ObjectUtils.isNotEmpty(processInspect.getResult())) {
            return Result.fail("已经上报过了,不能再次上报!");
        }
        return Result.success(processInspectService.updateProcessInspectsById(id));
        return Result.success(processInspectService.updateProcessInspectsById(id,number));
    }
    @ApiOperation(value = "根据检验单id查询过程检验单详情")