|
@@ -8,10 +8,13 @@ import com.diagbot.dto.KlRuleByIdDTO;
|
|
|
import com.diagbot.dto.KlRuleByIdParDTO;
|
|
|
import com.diagbot.dto.KlRuleByIdSubDTO;
|
|
|
import com.diagbot.dto.KlRuleInfoDTO;
|
|
|
+import com.diagbot.dto.RuleDTO;
|
|
|
+import com.diagbot.dto.RuleQueryDTO;
|
|
|
import com.diagbot.entity.KlRule;
|
|
|
import com.diagbot.entity.KlRuleBase;
|
|
|
import com.diagbot.entity.KlRuleCondition;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
|
+import com.diagbot.enums.RedisEnum;
|
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
|
import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.service.impl.KlRuleServiceImpl;
|
|
@@ -19,6 +22,7 @@ import com.diagbot.util.BeanUtil;
|
|
|
import com.diagbot.util.DateUtil;
|
|
|
import com.diagbot.util.ExcelUtils;
|
|
|
import com.diagbot.util.ListUtil;
|
|
|
+import com.diagbot.util.RedisUtil;
|
|
|
import com.diagbot.util.StringUtil;
|
|
|
import com.diagbot.vo.KlRuleByIdVO;
|
|
|
import com.diagbot.vo.KlRuleInfoClearVO;
|
|
@@ -26,6 +30,8 @@ import com.diagbot.vo.KlRuleInfoSaveSubVO;
|
|
|
import com.diagbot.vo.KlRuleInfoSaveVO;
|
|
|
import com.diagbot.vo.KlRuleInfoVO;
|
|
|
import com.diagbot.vo.KlRuleSatartOrdisaVO;
|
|
|
+import com.diagbot.vo.RuleQueryKeyVO;
|
|
|
+import com.diagbot.vo.RuleQueryVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
@@ -45,6 +51,8 @@ public class KlRuleFacade extends KlRuleServiceImpl {
|
|
|
KlRuleConditionFacade klRuleConditionFacade;
|
|
|
@Autowired
|
|
|
KlRuleBaseFacade klRuleBaseFacade;
|
|
|
+ @Autowired
|
|
|
+ private RedisUtil redisUtil;
|
|
|
|
|
|
/**
|
|
|
* @param klRuleInfoVO
|
|
@@ -250,4 +258,25 @@ public class KlRuleFacade extends KlRuleServiceImpl {
|
|
|
ExcelUtils.exportExcel(indicationExportDTOS, null, "开单合理性", IndicationExportDTO.class, "indication.xlsx",
|
|
|
response, 12.8f);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询所有有效的规则
|
|
|
+ *
|
|
|
+ * @param ruleQueryVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public IPage<RuleQueryDTO> getRulePageFac(RuleQueryVO ruleQueryVO) {
|
|
|
+ return this.getRulePage(ruleQueryVO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据录入内容查询有效规则的明细
|
|
|
+ *
|
|
|
+ * @param ruleQueryKeyVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public RuleDTO getRuleDetail(RuleQueryKeyVO ruleQueryKeyVO) {
|
|
|
+ String key = RedisEnum.allRule.getName() + ruleQueryKeyVO.getLibType() + "_" + ruleQueryKeyVO.getLibName() + "_" + ruleQueryKeyVO.getRuleType();
|
|
|
+ return redisUtil.get(key);
|
|
|
+ }
|
|
|
}
|