|
@@ -1,16 +1,21 @@
|
|
package com.diagbot.facade;
|
|
package com.diagbot.facade;
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.diagbot.client.CdssCoreClient;
|
|
import com.diagbot.client.CdssCoreClient;
|
|
import com.diagbot.dto.KlRuleByIdParDTO;
|
|
import com.diagbot.dto.KlRuleByIdParDTO;
|
|
import com.diagbot.dto.KlRuleInfoDTO;
|
|
import com.diagbot.dto.KlRuleInfoDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
|
|
+import com.diagbot.dto.RuleDTO;
|
|
|
|
+import com.diagbot.dto.RuleQueryDTO;
|
|
import com.diagbot.util.RespDTOUtil;
|
|
import com.diagbot.util.RespDTOUtil;
|
|
import com.diagbot.vo.KlRuleByIdVO;
|
|
import com.diagbot.vo.KlRuleByIdVO;
|
|
import com.diagbot.vo.KlRuleInfoClearVO;
|
|
import com.diagbot.vo.KlRuleInfoClearVO;
|
|
import com.diagbot.vo.KlRuleInfoSaveVO;
|
|
import com.diagbot.vo.KlRuleInfoSaveVO;
|
|
import com.diagbot.vo.KlRuleInfoVO;
|
|
import com.diagbot.vo.KlRuleInfoVO;
|
|
import com.diagbot.vo.KlRuleSatartOrdisaVO;
|
|
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.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
@@ -62,4 +67,16 @@ public class KlRuleFacade {
|
|
RespDTOUtil.respNGDeal(booleanRespDTO, "启用规则失败");
|
|
RespDTOUtil.respNGDeal(booleanRespDTO, "启用规则失败");
|
|
return booleanRespDTO.data;
|
|
return booleanRespDTO.data;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public Page<RuleQueryDTO> getRulePage(RuleQueryVO ruleQueryVO) {
|
|
|
|
+ RespDTO<Page<RuleQueryDTO>> rulepageRespDTO = cdssCoreClient.getRulePage(ruleQueryVO);
|
|
|
|
+ RespDTOUtil.respNGDeal(rulepageRespDTO, "查询所有有效的规则失败");
|
|
|
|
+ return rulepageRespDTO.data;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public RuleDTO getRuleDetail(RuleQueryKeyVO ruleQueryKeyVO) {
|
|
|
|
+ RespDTO<RuleDTO> ruleDTORespDTO = cdssCoreClient.getRuleDetail(ruleQueryKeyVO);
|
|
|
|
+ RespDTOUtil.respNGDeal(ruleDTORespDTO, "查询规则明细失败");
|
|
|
|
+ return ruleDTORespDTO.data;
|
|
|
|
+ }
|
|
}
|
|
}
|