Merge branch 'dev' into docker_package
This commit is contained in:
commit
17c54835f4
|
@ -31,8 +31,10 @@ import org.springframework.web.bind.annotation.RestController;
|
|||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* 流程的历史信息
|
||||
|
@ -125,7 +127,7 @@ public class HistoryController {
|
|||
// @RequiresPermissions("sys:his:all")
|
||||
public Result<ProcessActivityDTO> getMyHandledInstancePage(@ApiIgnore @RequestParam Map<String, Object> params) {
|
||||
PageData<ProcessActivityDTO> page = activitiService.getMyProcessInstancePage(params);
|
||||
setExtraProcessProperties(page.getList());
|
||||
setExtraProcessProperties(Optional.ofNullable(page.getList()).orElse(new ArrayList<>()));
|
||||
return new Result().ok(page);
|
||||
}
|
||||
|
||||
|
@ -138,7 +140,7 @@ public class HistoryController {
|
|||
})
|
||||
public Result<Page<ProcessActivityDTO>> getDeptHandledInstancePage(@ApiIgnore @RequestParam Map<String, Object> params) {
|
||||
Page<ProcessActivityDTO> page = activitiService.getDeptProcessInstancePage(params);
|
||||
setExtraProcessProperties(page.getRecords());
|
||||
setExtraProcessProperties(Optional.ofNullable(page.getRecords()).orElse(new ArrayList<>()));
|
||||
return new Result().ok(page);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue