Commit 8edd47e0 by jianshuqin

增加批量审核通过

parent a67e97ee
...@@ -246,6 +246,23 @@ public class CostController { ...@@ -246,6 +246,23 @@ public class CostController {
return CostResult.success(); return CostResult.success();
} }
@ApiOperation("批量部门审核通过")
@GetMapping("/check/batchDepartmentCheck")
public CostResult<Void> batchDepartmentCheck(@RequestParam(name = "costNos") List<String> costNos,
@RequestParam Integer userid) {
if (costNos != null && costNos.size() > 0) {
for (String costNo : costNos){
CostContext costContext = new CostContext(costNo, userid);
costContext.setCostState(departmentCheckState);
costContext.handle(null);
}
return CostResult.success();
} else {
return CostResult.error();
}
}
@GetMapping("/check/departmentRefuse") @GetMapping("/check/departmentRefuse")
@ApiOperation("部门审核驳回") @ApiOperation("部门审核驳回")
public CostResult<Void> departmentCheckRefuse(@RequestParam String costNo, public CostResult<Void> departmentCheckRefuse(@RequestParam String costNo,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment