|
@@ -2,6 +2,7 @@ package com.diagbot.facade;
|
|
|
|
|
|
import com.diagbot.dto.IndicationDTO;
|
|
import com.diagbot.dto.IndicationDTO;
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
|
|
+import com.diagbot.util.CoreUtil;
|
|
import com.diagbot.vo.IndicationPushVO;
|
|
import com.diagbot.vo.IndicationPushVO;
|
|
import com.diagbot.vo.StandConvert;
|
|
import com.diagbot.vo.StandConvert;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -34,22 +35,29 @@ public class IndicationFacade {
|
|
*/
|
|
*/
|
|
public IndicationDTO indicationFac(IndicationPushVO indicationPushVO) {
|
|
public IndicationDTO indicationFac(IndicationPushVO indicationPushVO) {
|
|
IndicationDTO res = new IndicationDTO();
|
|
IndicationDTO res = new IndicationDTO();
|
|
|
|
+ long l1 = System.currentTimeMillis();
|
|
// 模型处理数据
|
|
// 模型处理数据
|
|
WordCrfDTO wordCrfDTO = commonFacade.crf_process(indicationPushVO);
|
|
WordCrfDTO wordCrfDTO = commonFacade.crf_process(indicationPushVO);
|
|
|
|
+ CoreUtil.getDubugStr(l1, "处理模型数据", res.getDubugStr());
|
|
|
|
|
|
// 标准词转换
|
|
// 标准词转换
|
|
|
|
+ long l2 = System.currentTimeMillis();
|
|
StandConvert standConvert = commonFacade.dataTypeGet(wordCrfDTO);
|
|
StandConvert standConvert = commonFacade.dataTypeGet(wordCrfDTO);
|
|
Map<Integer, Map<String, String>> standConvertMap = neoFacade.standConvert(standConvert);
|
|
Map<Integer, Map<String, String>> standConvertMap = neoFacade.standConvert(standConvert);
|
|
commonFacade.dataTypeSet(wordCrfDTO, standConvertMap);
|
|
commonFacade.dataTypeSet(wordCrfDTO, standConvertMap);
|
|
|
|
+ CoreUtil.getDubugStr(l2, "同义词转换", res.getDubugStr());
|
|
|
|
|
|
List<String> ruleTypeList = Arrays.asList(indicationPushVO.getRuleType().split(","));
|
|
List<String> ruleTypeList = Arrays.asList(indicationPushVO.getRuleType().split(","));
|
|
|
|
|
|
|
|
+ long l3 = System.currentTimeMillis();
|
|
// 开单合理性
|
|
// 开单合理性
|
|
if (ruleTypeList.contains("2")) {
|
|
if (ruleTypeList.contains("2")) {
|
|
billFacade.billFac(indicationPushVO, wordCrfDTO, res);
|
|
billFacade.billFac(indicationPushVO, wordCrfDTO, res);
|
|
}
|
|
}
|
|
|
|
|
|
// TODO 其他类型提示
|
|
// TODO 其他类型提示
|
|
|
|
+ CoreUtil.getDubugStr(l3, "开单合理性规则处理", res.getDubugStr());
|
|
|
|
+ CoreUtil.getDubugStr(l1, "本次调用总计", res.getDubugStr());
|
|
return res;
|
|
return res;
|
|
}
|
|
}
|
|
}
|
|
}
|