update 调整查询流程任务记录
This commit is contained in:
parent
8460316632
commit
7c3316e116
@ -127,9 +127,9 @@ public class FlwInstanceController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @param businessId 业务id
|
* @param businessId 业务id
|
||||||
*/
|
*/
|
||||||
@GetMapping("/flowImage/{businessId}")
|
@GetMapping("/flowHisTaskList/{businessId}")
|
||||||
public R<Map<String, Object>> flowImage(@PathVariable String businessId) {
|
public R<Map<String, Object>> flowHisTaskList(@PathVariable String businessId) {
|
||||||
return R.ok(flwInstanceService.flowImage(businessId));
|
return R.ok(flwInstanceService.flowHisTaskList(businessId));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -107,7 +107,7 @@ public interface IFlwInstanceService {
|
|||||||
* @param businessId 业务id
|
* @param businessId 业务id
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
Map<String, Object> flowImage(String businessId);
|
Map<String, Object> flowHisTaskList(String businessId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按照实例id更新状态
|
* 按照实例id更新状态
|
||||||
|
@ -275,7 +275,7 @@ public class FlwInstanceServiceImpl implements IFlwInstanceService {
|
|||||||
* @param businessId 业务id
|
* @param businessId 业务id
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> flowImage(String businessId) {
|
public Map<String, Object> flowHisTaskList(String businessId) {
|
||||||
FlowInstance flowInstance = this.selectInstByBusinessId(businessId);
|
FlowInstance flowInstance = this.selectInstByBusinessId(businessId);
|
||||||
if (ObjectUtil.isNull(flowInstance)) {
|
if (ObjectUtil.isNull(flowInstance)) {
|
||||||
throw new ServiceException(ExceptionCons.NOT_FOUNT_INSTANCE);
|
throw new ServiceException(ExceptionCons.NOT_FOUNT_INSTANCE);
|
||||||
@ -311,7 +311,7 @@ public class FlwInstanceServiceImpl implements IFlwInstanceService {
|
|||||||
if (CollUtil.isNotEmpty(flowHisTasks)) {
|
if (CollUtil.isNotEmpty(flowHisTasks)) {
|
||||||
list.addAll(BeanUtil.copyToList(flowHisTasks, FlowHisTaskVo.class));
|
list.addAll(BeanUtil.copyToList(flowHisTasks, FlowHisTaskVo.class));
|
||||||
}
|
}
|
||||||
return Map.of("list", list);
|
return Map.of("list", list,"instanceId",instanceId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user