前端无法展示异常信息
This commit is contained in:
parent
7e53cac06c
commit
aad70245d8
|
@ -153,7 +153,7 @@ public class ResourceMountController {
|
|||
@PostMapping(value = "/undercarriage")
|
||||
@ApiOperation("批量进行能力下架申请")
|
||||
@LogOperation("批量进行能力下架申请")
|
||||
public Result<List<ProcessInstanceDTO>> undercarriage(@RequestBody TResourceUndercarriageApplyDTO tResourceUndercarriageApplyDTO) {
|
||||
public Result<Object> undercarriage(@RequestBody TResourceUndercarriageApplyDTO tResourceUndercarriageApplyDTO) {
|
||||
// 仿照请求接口 /act/process/lastestPage
|
||||
PageData<Map<String, Object>> page = actProcessService.page(undercarriage_params);
|
||||
if (page.getTotal() <= 0) { //
|
||||
|
@ -175,7 +175,7 @@ public class ResourceMountController {
|
|||
}
|
||||
}).filter(index -> index).findAny();
|
||||
if (undercarriage.isPresent()) {
|
||||
return new Result<List<ProcessInstanceDTO>>().error("该资源已发起下架");
|
||||
return new Result<>().ok("该资源已发起下架");
|
||||
}
|
||||
return new Result().ok(tResourceUndercarriageApplyDTO.getResource().stream().map(index -> {
|
||||
List<ProcessInstanceDTO> dtoList = new ArrayList<>();
|
||||
|
|
Loading…
Reference in New Issue