|
@@ -3,10 +3,13 @@ package com.diagbot.facade;
|
|
import com.diagbot.client.StandConvertServiceClient;
|
|
import com.diagbot.client.StandConvertServiceClient;
|
|
import com.diagbot.dto.IndicationDTO;
|
|
import com.diagbot.dto.IndicationDTO;
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
|
|
+import com.diagbot.exception.CommonErrorCode;
|
|
|
|
+import com.diagbot.exception.CommonException;
|
|
import com.diagbot.util.CoreUtil;
|
|
import com.diagbot.util.CoreUtil;
|
|
import com.diagbot.util.ListUtil;
|
|
import com.diagbot.util.ListUtil;
|
|
import com.diagbot.vo.IndicationPushVO;
|
|
import com.diagbot.vo.IndicationPushVO;
|
|
import com.diagbot.vo.StandConvert;
|
|
import com.diagbot.vo.StandConvert;
|
|
|
|
+import io.github.lvyahui8.spring.aggregate.facade.DataBeanAggregateQueryFacade;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
@@ -32,6 +35,8 @@ public class IndicationFacade {
|
|
BillFacade billFacade;
|
|
BillFacade billFacade;
|
|
@Autowired
|
|
@Autowired
|
|
StandConvertServiceClient standConvertServiceClient;
|
|
StandConvertServiceClient standConvertServiceClient;
|
|
|
|
+ @Autowired
|
|
|
|
+ DataBeanAggregateQueryFacade dataBeanAggregateQueryFacade;
|
|
|
|
|
|
private static final Map<String, List<String>> methodMap;
|
|
private static final Map<String, List<String>> methodMap;
|
|
|
|
|
|
@@ -51,6 +56,8 @@ public class IndicationFacade {
|
|
public IndicationDTO indicationFac(IndicationPushVO indicationPushVO) {
|
|
public IndicationDTO indicationFac(IndicationPushVO indicationPushVO) {
|
|
//方法适配处理
|
|
//方法适配处理
|
|
List<String> ruleTypeList = Arrays.asList(indicationPushVO.getRuleType().split(","));
|
|
List<String> ruleTypeList = Arrays.asList(indicationPushVO.getRuleType().split(","));
|
|
|
|
+ indicationPushVO.setRuleTypeList(ruleTypeList);
|
|
|
|
+
|
|
List<String> methodList = new ArrayList<>();
|
|
List<String> methodList = new ArrayList<>();
|
|
for (String ruleType : ruleTypeList) {
|
|
for (String ruleType : ruleTypeList) {
|
|
if (ListUtil.isNotEmpty(methodMap.get(ruleType))) {
|
|
if (ListUtil.isNotEmpty(methodMap.get(ruleType))) {
|
|
@@ -81,15 +88,15 @@ public class IndicationFacade {
|
|
CoreUtil.getDubugStr(l2, "同义词转换", res.getDubugStr());
|
|
CoreUtil.getDubugStr(l2, "同义词转换", res.getDubugStr());
|
|
}
|
|
}
|
|
|
|
|
|
- long l3 = System.currentTimeMillis();
|
|
|
|
- // 开单合理性
|
|
|
|
- if (ruleTypeList.contains("2")) {
|
|
|
|
- billFacade.billFac(indicationPushVO, wordCrfDTO, res);
|
|
|
|
|
|
+ try {
|
|
|
|
+ Map<String, Object> invokeParams = new HashMap<>();
|
|
|
|
+ invokeParams.put("wordCrfDTO", wordCrfDTO);
|
|
|
|
+ invokeParams.put("indicationPushVO", indicationPushVO);
|
|
|
|
+ res = dataBeanAggregateQueryFacade.get("indicationAll", invokeParams, IndicationDTO.class);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "提醒类服务出错" + e.getMessage());
|
|
}
|
|
}
|
|
- // 其他类型提示
|
|
|
|
|
|
|
|
- // 调试信息
|
|
|
|
- CoreUtil.getDubugStr(l3, "开单合理性规则处理", res.getDubugStr());
|
|
|
|
CoreUtil.getDubugStr(l1, "本次调用总计", res.getDubugStr());
|
|
CoreUtil.getDubugStr(l1, "本次调用总计", res.getDubugStr());
|
|
return res;
|
|
return res;
|
|
}
|
|
}
|