未符合项目整改--》批量关闭未符合项目接口 直接修改的closeStatus

This commit is contained in:
yuezhihang
2021-12-10 13:51:26 +08:00
parent 5cfa69c8e3
commit 483429fb8b
@@ -68,7 +68,7 @@ public class SarStandUnqualifiedController extends BaseController<SarStandUnqual
}
}
@ApiOperation("未符合项整改新增")
@ApiOperation("未符合项整改修改")
@PostMapping("/updateOne")
public ResponseMessage<Object> update(@RequestBody SarStandUnqualified sarStandUnqualified){
if (sarStandUnqualifiedService.updateById(sarStandUnqualified)) {
@@ -79,6 +79,17 @@ public class SarStandUnqualifiedController extends BaseController<SarStandUnqual
}
}
@ApiOperation("未符合项整改修改")
@PostMapping("/updateBatch")
public ResponseMessage<Object> updateBatch(@RequestBody List<SarStandUnqualified> sarStandUnqualified){
if (sarStandUnqualifiedService.saveOrUpdateBatch(sarStandUnqualified)) {
return Result.success("新增成功");
}
else{
return Result.error("新增失败");
}
}
/**
* 分页查询未符合项
* @param sarStandUnqualifiedPage:筛选、分页信息