|
...
|
...
|
@@ -2,6 +2,7 @@ package com.sy.service.impl; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.sy.event.EngineCheckPassedEvent;
|
|
|
|
import com.sy.mapper.RuleChannelConfigDao;
|
|
|
|
import com.sy.model.*;
|
|
|
|
import com.sy.service.*;
|
|
...
|
...
|
@@ -15,6 +16,7 @@ import org.basis.enhance.groovy.entity.ScriptQuery; |
|
|
|
import org.basis.enhance.groovy.executor.EngineExecutor;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.context.ApplicationEventPublisher;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
...
|
...
|
@@ -64,6 +66,9 @@ public class EnginCheckServiceImpl implements EnginCheckService { |
|
|
|
@Value("${devdebug}")
|
|
|
|
private Boolean debug;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private ApplicationEventPublisher eventPublisher;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Boolean enginCheckByGatherInfo(GatherInfo gatherInfo,ExecuteParams executeParams) {
|
|
...
|
...
|
@@ -395,19 +400,28 @@ public class EnginCheckServiceImpl implements EnginCheckService { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 关锁验放异步后置处理
|
|
|
|
* @param gatherInfo
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void lockNoticeContinueCheck(GatherInfo gatherInfo) {
|
|
|
|
|
|
|
|
ExecuteParams executeParams = makeParaByGagherInfo(gatherInfo);
|
|
|
|
Boolean check = enginCheckByLockNotice(gatherInfo,executeParams);
|
|
|
|
if (check){
|
|
|
|
log.info("脚本验放通过");
|
|
|
|
log.info("[关锁异步验放流程]-规则脚本验放通过");
|
|
|
|
//放行
|
|
|
|
pass(gatherInfo,executeParams);
|
|
|
|
|
|
|
|
formRelease(gatherInfo,executeParams);
|
|
|
|
|
|
|
|
//发布事件.
|
|
|
|
eventPublisher.publishEvent(
|
|
|
|
new EngineCheckPassedEvent(this, gatherInfo, executeParams)
|
|
|
|
);
|
|
|
|
}else {
|
|
|
|
log.error("验放失败");
|
|
|
|
log.error("[关锁异步验放流程]-验放失败");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|