模型字段取值bugfix
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.fibo.ddp.enginex.riskengine.runner.api;
|
||||
|
||||
import com.fibo.ddp.common.service.cache.LocalCacheService;
|
||||
import com.fibo.ddp.common.service.common.runner.RunnerSessionManager;
|
||||
import com.fibo.ddp.common.service.common.runner.SessionData;
|
||||
import com.fibo.ddp.enginex.riskengine.runner.business.DecisionApiBizData;
|
||||
@@ -27,6 +28,9 @@ public class RiskEngineApi {
|
||||
@Autowired
|
||||
public RiskEngineBusiness riskEngineBusiness;
|
||||
|
||||
@Autowired
|
||||
LocalCacheService localCacheService;
|
||||
|
||||
@RequestMapping(value = "/decision", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
|
||||
public String decision(@RequestBody DecisionApiRequest apiRequest) {
|
||||
long start = System.currentTimeMillis();
|
||||
@@ -65,4 +69,21 @@ public class RiskEngineApi {
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/getLocalCacheInfo")
|
||||
public Object getLocalCacheInfo(){
|
||||
return localCacheService.getInfo();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/getFieldCache")
|
||||
public Object getFieldCache(){
|
||||
return localCacheService.getFieldsMap();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/getModelCache")
|
||||
public Object getModelCache(){
|
||||
return localCacheService.getModelMap();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user