|
@@ -58,9 +58,10 @@ public class CloudSupplyChainController {
|
|
|
* @param businessKey
|
|
|
* @return
|
|
|
*/
|
|
|
+ @Log
|
|
|
@RequestMapping(value = "selectCurrentProcess")
|
|
|
@ResponseBody
|
|
|
- public List<HistoricActivityInstance> selectCurrentProcess(@RequestParam("businessKey") String businessKey) {
|
|
|
+ public BaseResult selectCurrentProcess(@RequestParam("businessKey") String businessKey) {
|
|
|
// TODO,需在流程展示的类型均需在此配置
|
|
|
Set<String> typeSet = new HashSet<String>();
|
|
|
typeSet.add(BpmnXMLConstants.ELEMENT_TASK_USER);
|
|
@@ -73,9 +74,9 @@ public class CloudSupplyChainController {
|
|
|
.activityTypes(typeSet)
|
|
|
.orderByHistoricActivityInstanceStartTime()
|
|
|
.asc().list();
|
|
|
- return historicActivityInstanceList;
|
|
|
+ return new BaseResult(historicActivityInstanceList);
|
|
|
} else {
|
|
|
- return null;
|
|
|
+ return new BaseResult("500", "未查询到流程", null);
|
|
|
}
|
|
|
|
|
|
}
|