|
@@ -6,11 +6,14 @@ import com.diagbot.dto.PushNewDTO;
|
|
|
import com.diagbot.dto.PushPlanDTO;
|
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
|
import com.diagbot.enums.DiseasePushTypeEnum;
|
|
|
+import com.diagbot.enums.RedisEnum;
|
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
|
import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.process.PushProcess;
|
|
|
import com.diagbot.util.CoreUtil;
|
|
|
import com.diagbot.util.ParamUtil;
|
|
|
+import com.diagbot.util.RedisUtil;
|
|
|
+import com.diagbot.util.StringUtil;
|
|
|
import com.diagbot.vo.PushNewVO;
|
|
|
import com.diagbot.vo.PushPlanVO;
|
|
|
import com.diagbot.vo.PushVO;
|
|
@@ -43,6 +46,8 @@ public class PushFacade {
|
|
|
TranHospitalInfoFacade tranHospitalInfoFacade;
|
|
|
@Autowired
|
|
|
PushNewServiceClient pushNewServiceClient;
|
|
|
+ @Autowired
|
|
|
+ RedisUtil redisUtil;
|
|
|
|
|
|
public PushDTO processAggreate(PushVO pushVo) {
|
|
|
// 年龄容错处理
|
|
@@ -130,12 +135,15 @@ public class PushFacade {
|
|
|
* @return
|
|
|
*/
|
|
|
public PushNewVO generatePushVo(WordCrfDTO wordCrfDTO) {
|
|
|
- // TODO 获取医院类型
|
|
|
PushNewVO pushNewVO = new PushNewVO();
|
|
|
pushNewVO.setChief(wordCrfDTO.getChief());
|
|
|
pushNewVO.setPresent(wordCrfDTO.getSymptom());
|
|
|
pushNewVO.setAge(wordCrfDTO.getAgeNum());
|
|
|
pushNewVO.setSex(wordCrfDTO.getSex());
|
|
|
+ String pushType = redisUtil.getByKeyAndField(RedisEnum.hospitalPushType.getName(), String.valueOf(wordCrfDTO.getHospitalId()));
|
|
|
+ if (StringUtil.isNotBlank(pushType)) {
|
|
|
+ pushNewVO.setHospitalType(pushType);
|
|
|
+ }
|
|
|
return pushNewVO;
|
|
|
}
|
|
|
|