未符合项目整改--》批量关闭未符合项目接口 直接修改的closeStatus
This commit is contained in:
+12
-1
@@ -68,7 +68,7 @@ public class SarStandUnqualifiedController extends BaseController<SarStandUnqual
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("未符合项整改新增")
|
@ApiOperation("未符合项整改修改")
|
||||||
@PostMapping("/updateOne")
|
@PostMapping("/updateOne")
|
||||||
public ResponseMessage<Object> update(@RequestBody SarStandUnqualified sarStandUnqualified){
|
public ResponseMessage<Object> update(@RequestBody SarStandUnqualified sarStandUnqualified){
|
||||||
if (sarStandUnqualifiedService.updateById(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:筛选、分页信息
|
* @param sarStandUnqualifiedPage:筛选、分页信息
|
||||||
|
|||||||
Reference in New Issue
Block a user