|
@@ -31,7 +31,7 @@ public class InvalidProcessController {
|
|
|
|
|
|
@Operation(summary = "添加无效事务")
|
|
|
@PostMapping("/add")
|
|
|
- public String add( String invalidProcessStr, MultipartFile file) {
|
|
|
+ public String add(String invalidProcessStr, MultipartFile file) {
|
|
|
if (invalidProcessStr != null && invalidProcessStr != "") {
|
|
|
invalidProcessService.addInvalidProcess(invalidProcessStr, file);
|
|
|
return Response.success("添加成功");
|
|
@@ -43,7 +43,7 @@ public class InvalidProcessController {
|
|
|
@Operation(summary = "删除无效事务")
|
|
|
@GetMapping("/delete")
|
|
|
public String delete(Integer id) {
|
|
|
- if(id != null && id > 0) {
|
|
|
+ if (id != null && id > 0) {
|
|
|
invalidProcessService.removeInvalidProcess(id);
|
|
|
return Response.success("删除成功");
|
|
|
} else {
|
|
@@ -53,8 +53,8 @@ public class InvalidProcessController {
|
|
|
|
|
|
@Operation(summary = "修改无效事务")
|
|
|
@PostMapping("/update")
|
|
|
- public String update(String invalidProcessStr,MultipartFile file) throws IOException {
|
|
|
- if(invalidProcessStr != null && invalidProcessStr != "") {
|
|
|
+ public String update(String invalidProcessStr, MultipartFile file) throws IOException {
|
|
|
+ if (invalidProcessStr != null && invalidProcessStr != "") {
|
|
|
invalidProcessService.updateInvalidProcess(invalidProcessStr, file);
|
|
|
return Response.success("修改无效事务成功");
|
|
|
} else {
|
|
@@ -64,9 +64,9 @@ public class InvalidProcessController {
|
|
|
|
|
|
@Operation(summary = "查询无效事务")
|
|
|
@GetMapping("/query")
|
|
|
- public String query(Integer reportId, Integer orderBy,Integer type) throws IOException {
|
|
|
- if(reportId != null && reportId != 0){
|
|
|
- return Response.success(invalidProcessService.queryInvalidProcess(reportId, orderBy,type));
|
|
|
+ public String query(Integer reportId, Integer orderBy, Integer type) throws IOException {
|
|
|
+ if (reportId != null && reportId != 0) {
|
|
|
+ return Response.success(invalidProcessService.queryInvalidProcess(reportId, orderBy, type));
|
|
|
} else {
|
|
|
return Response.error("传入报告id不可为空");
|
|
|
}
|