|
@@ -5,14 +5,14 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.diagbot.biz.push.entity.Lis;
|
|
|
import com.diagbot.dto.RegularValueDTO;
|
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
|
-import com.diagbot.entity.SysRegularConfig;
|
|
|
+import com.diagbot.entity.KlRegularConfig;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
|
import com.diagbot.enums.RegularConfigEnum;
|
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
|
import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.model.entity.AllergyMedicine;
|
|
|
import com.diagbot.model.label.PastLabel;
|
|
|
-import com.diagbot.service.impl.SysRegularConfigServiceImpl;
|
|
|
+import com.diagbot.service.impl.KlRegularConfigServiceImpl;
|
|
|
import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.vo.IndicationPushVO;
|
|
|
import com.diagbot.vo.RegularConfigDataVO;
|
|
@@ -30,17 +30,17 @@ import java.util.regex.Pattern;
|
|
|
* @date 2020-11-30 16:10
|
|
|
*/
|
|
|
@Component
|
|
|
-public class SysRegularConfigFacade extends SysRegularConfigServiceImpl {
|
|
|
+public class KlRegularConfigFacade extends KlRegularConfigServiceImpl {
|
|
|
|
|
|
public List<RegularValueDTO> getRegularConfigDatas(RegularConfigDataVO regularConfigDataVO) {
|
|
|
List<RegularValueDTO> listData = new ArrayList<>();
|
|
|
- QueryWrapper<SysRegularConfig> regularQuery = new QueryWrapper<>();
|
|
|
+ QueryWrapper<KlRegularConfig> regularQuery = new QueryWrapper<>();
|
|
|
regularQuery.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.eq(regularConfigDataVO.getRulesCode() != null, "rules_code", regularConfigDataVO.getRulesCode())
|
|
|
.eq(regularConfigDataVO.getRulesTepy() != null, "rules_tepy", regularConfigDataVO.getRulesTepy());
|
|
|
- List<SysRegularConfig> regularConfigs = list(regularQuery);
|
|
|
+ List<KlRegularConfig> regularConfigs = list(regularQuery);
|
|
|
if (ListUtil.isNotEmpty(regularConfigs)) {
|
|
|
- for (SysRegularConfig data : regularConfigs) {
|
|
|
+ for (KlRegularConfig data : regularConfigs) {
|
|
|
String pattern = "";
|
|
|
String patternMax = "";
|
|
|
if (data.getRulesTepy().equals(RegularConfigEnum.allergy.getKey())) {
|
|
@@ -169,7 +169,7 @@ public class SysRegularConfigFacade extends SysRegularConfigServiceImpl {
|
|
|
|
|
|
List<String> name = regularConfigSaveVO.getName();
|
|
|
for (String str : name) {
|
|
|
- int countTow = this.count(new QueryWrapper<SysRegularConfig>()
|
|
|
+ int countTow = this.count(new QueryWrapper<KlRegularConfig>()
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.eq(str != null, "rules_name", str)
|
|
|
.eq(regularConfigSaveVO.getStandardName() != null, "stand_name", str)
|
|
@@ -177,7 +177,7 @@ public class SysRegularConfigFacade extends SysRegularConfigServiceImpl {
|
|
|
if (countTow > 0) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, str + "该方案编码已存在");
|
|
|
} else {
|
|
|
- SysRegularConfig regularConfig = new SysRegularConfig();
|
|
|
+ KlRegularConfig regularConfig = new KlRegularConfig();
|
|
|
regularConfig.setStandName(regularConfigSaveVO.getStandardName());
|
|
|
regularConfig.setRulesName(str);
|
|
|
regularConfig.setRulesTepy(regularConfigSaveVO.getRulesTepy());
|