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