Commit 0429bf5a authored by maoying's avatar maoying

添加预案回放接口

parent 658abd1e
......@@ -4,6 +4,7 @@ package com.yeejoin.amos.fas.business.controller;
import com.yeejoin.amos.fas.business.service.impl.RiskSourceServiceImpl;
import com.yeejoin.amos.fas.business.service.intfc.IContingencyInstance;
import com.yeejoin.amos.fas.business.service.intfc.IContingencyOriginalDataService;
import com.yeejoin.amos.fas.business.service.intfc.IRuleRunningSnapshotService;
import com.yeejoin.amos.fas.config.Permission;
import com.yeejoin.amos.fas.core.common.request.CommonPageable;
import com.yeejoin.amos.fas.core.common.request.CommonRequest;
......@@ -37,6 +38,9 @@ public class TimeLineController extends BaseController{
@Autowired
IContingencyOriginalDataService iContingencyOriginalDataService;
@Autowired
IRuleRunningSnapshotService iRuleRunningSnapshotService;
static LinkedList<Map<String,String >> fireQueue = new LinkedList<>();
......@@ -197,5 +201,14 @@ public class TimeLineController extends BaseController{
" }" +
" ]" +
"}";
@Permission
@ApiOperation(httpMethod = "GET",value = "根据批次号查询时间轴", notes = "根据批次号查询时间轴")
@RequestMapping(value = "/replay", produces = "application/json;charset=UTF-8", method = RequestMethod.GET)
public CommonResponse queryPoint(@RequestParam("batchNo") String batchNo) throws Exception{
iRuleRunningSnapshotService.replay(batchNo);
return CommonResponseUtil.success();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment