新增汇总指定任务接口/queryTaskIndex

This commit is contained in:
cuijiaming
2022-12-14 11:56:26 +08:00
parent a3cbb25e49
commit bc0584fb59
@@ -1775,6 +1775,24 @@ public class TodoTaskController extends BaseAction {
}
}
/**
* 查询第index步
* @param bpnId
* @return
*/
@ApiOperation(value = "查询index步")
@GetMapping("/queryTaskIndex")
public BusProcessName queryTaskIndex(String bpnId,Integer index) {
QueryWrapper<BusProcessName> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("ID", bpnId);
List<BusProcessName> list = iBusProcessNameService.list(queryWrapper);
if (list.size() >= index) {
return list.get(index);
} else {
return null;
}
}
/**
* 查询草稿
*