|
|
@@ -1,37 +1,28 @@
|
|
|
package org.jeecg.modules.medical.ruleengine.projectcache;
|
|
|
|
|
|
-import cn.hutool.core.collection.CollectionUtil;
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.apache.commons.lang.StringUtils;
|
|
|
-import org.jeecg.common.api.vo.Result;
|
|
|
-import org.jeecg.common.constant.CommonConstant;
|
|
|
-import org.jeecg.common.util.DateUtils;
|
|
|
import org.jeecg.modules.medical.Constant;
|
|
|
-import org.jeecg.modules.medical.SystemEventAttrConstant;
|
|
|
-import org.jeecg.modules.medical.entity.*;
|
|
|
-import org.jeecg.modules.medical.ruleengine.FactorEnchangeFactory;
|
|
|
-import org.jeecg.modules.medical.ruleengine.SPELUtil;
|
|
|
-import org.jeecg.modules.medical.ruleengine.SqlUtil;
|
|
|
-import org.jeecg.modules.medical.ruleengine.dict.DictUtil;
|
|
|
-import org.jeecg.modules.medical.ruleengine.plugin.InterfItemListPlugin;
|
|
|
-import org.jeecg.modules.medical.service.*;
|
|
|
-import org.jeecg.modules.message.websocket.WebSocket;
|
|
|
+import org.jeecg.modules.medical.entity.DiagnoseItems;
|
|
|
+import org.jeecg.modules.medical.entity.MaterialItems;
|
|
|
+import org.jeecg.modules.medical.entity.MedicalInsuranceDrugs;
|
|
|
+import org.jeecg.modules.medical.entity.OperativeItems;
|
|
|
+import org.jeecg.modules.medical.entity.TreatmentItems;
|
|
|
+import org.jeecg.modules.medical.service.IDiagnoseItemsService;
|
|
|
+import org.jeecg.modules.medical.service.IMaterialItemsService;
|
|
|
+import org.jeecg.modules.medical.service.IMedicalInsuranceDrugsService;
|
|
|
+import org.jeecg.modules.medical.service.IOperativeItemsService;
|
|
|
+import org.jeecg.modules.medical.service.ITreatmentItemsService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.redis.core.HashOperations;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import javax.annotation.PostConstruct;
|
|
|
-import java.math.BigDecimal;
|
|
|
-import java.text.ParseException;
|
|
|
-import java.util.*;
|
|
|
-import java.util.stream.Collectors;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* 医保和医院项目编码映射
|
|
|
@@ -57,7 +48,7 @@ public class HisMedicalProjectCache {
|
|
|
IOperativeItemsService operativeItemsService;
|
|
|
|
|
|
|
|
|
-// @PostConstruct
|
|
|
+ // @PostConstruct
|
|
|
public void initHisMedicalProjectCache() {
|
|
|
long count = medicalInsuranceDrugsService.lambdaQuery().isNotNull(MedicalInsuranceDrugs::getItemIdHosp).isNotNull(MedicalInsuranceDrugs::getMedicineCode).count();
|
|
|
|
|
|
@@ -123,8 +114,6 @@ public class HisMedicalProjectCache {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
public <R> R loadHisMedicalMapping(String medicalProjectCode) {
|
|
|
HashOperations hashOperations = redisTemplate.opsForHash();
|
|
|
R o = (R) hashOperations.get(Constant.HIS_MEDICAL_DICT_KEY, medicalProjectCode);
|