|
@@ -138,7 +138,9 @@ public class PushFacade {
|
|
|
if (ListUtil.isNotEmpty(vitalDTOList)) {
|
|
|
List<Long> vitalIds = vitalDTOList
|
|
|
.stream()
|
|
|
- .map(vital -> vital.getId()).filter(vitalId -> vitalId != null).collect(Collectors.toList());
|
|
|
+ .map(vital -> vital.getId())
|
|
|
+ .filter(vitalId -> vitalId != null)
|
|
|
+ .collect(Collectors.toList());
|
|
|
pushDTO.setVitalIds(vitalIds);
|
|
|
}
|
|
|
}
|
|
@@ -157,7 +159,8 @@ public class PushFacade {
|
|
|
Map<String, Long> lisMap = new LinkedHashMap<>();
|
|
|
List<String> mealNameList = labs
|
|
|
.stream()
|
|
|
- .map(lab -> lab.getName()).collect(Collectors.toList());
|
|
|
+ .map(lab -> lab.getName())
|
|
|
+ .collect(Collectors.toList());
|
|
|
Map<String, QuestionDTO> questionDTOMap
|
|
|
= addLisQuestion(mealNameList, pushVO.getAge(), pushVO.getSex());
|
|
|
for (String name : mealNameList) {
|
|
@@ -288,9 +291,10 @@ public class PushFacade {
|
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS, "全科信息未维护");
|
|
|
}
|
|
|
QueryWrapper<DeptVital> deptVitalQueryWrapper = new QueryWrapper<>();
|
|
|
- deptVitalQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey()).
|
|
|
- eq("dept_id", dept.getConceptId()).
|
|
|
- orderByAsc("order_no");
|
|
|
+ deptVitalQueryWrapper
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+ .eq("dept_id", dept.getConceptId())
|
|
|
+ .orderByAsc("order_no");
|
|
|
List<DeptVital> deptVitalList = deptVitalFacade.list(deptVitalQueryWrapper);
|
|
|
//科室模板为空时,取全科模板
|
|
|
if (deptVitalList.size() == 0 && dept.getName().equals("全科") == false) {
|
|
@@ -301,9 +305,10 @@ public class PushFacade {
|
|
|
RespDTOUtil.respNGDeal(res, "全科信息未维护");
|
|
|
BeanUtil.copyProperties(res.data, dept);
|
|
|
deptVitalQueryWrapper = new QueryWrapper<>();
|
|
|
- deptVitalQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey()).
|
|
|
- eq("dept_id", dept.getConceptId()).
|
|
|
- orderByAsc("order_no");
|
|
|
+ deptVitalQueryWrapper
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+ .eq("dept_id", dept.getConceptId())
|
|
|
+ .orderByAsc("order_no");
|
|
|
deptVitalList = deptVitalFacade.list(deptVitalQueryWrapper);
|
|
|
}
|
|
|
//标签列表
|
|
@@ -324,7 +329,10 @@ public class PushFacade {
|
|
|
if (ListUtil.isNotEmpty(vitalDTO)) {
|
|
|
ConceptExistVO conceptExistVO = new ConceptExistVO();
|
|
|
conceptExistVO.setType(ConceptTypeEnum.Vital.getKey());
|
|
|
- List<String> vitalNames = vitalDTO.stream().map(vital -> vital.getTagName()).collect(Collectors.toList());
|
|
|
+ List<String> vitalNames = vitalDTO
|
|
|
+ .stream()
|
|
|
+ .map(vital -> vital.getTagName())
|
|
|
+ .collect(Collectors.toList());
|
|
|
conceptExistVO.setNameList(vitalNames);
|
|
|
RespDTO<Map<String, Long>> respDTO = aiptServiceClient.getConceptMapByNameAndType(conceptExistVO);
|
|
|
if (RespDTOUtil.respIsOK(respDTO)) {
|
|
@@ -390,12 +398,16 @@ public class PushFacade {
|
|
|
return mapDTO;
|
|
|
}
|
|
|
QueryWrapper<QuestionInfo> questionInfoQueryWrapper = new QueryWrapper<>();
|
|
|
- questionInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey()).
|
|
|
- in("name", nameList).
|
|
|
- eq("tag_type", TagTypeEnum.T7.getKey());
|
|
|
+ questionInfoQueryWrapper
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+ .in("name", nameList)
|
|
|
+ .eq("tag_type", TagTypeEnum.T7.getKey());
|
|
|
List<QuestionInfo> lisList = questionFacade.list(questionInfoQueryWrapper);
|
|
|
if (ListUtil.isNotEmpty(lisList)) {
|
|
|
- List<Long> lisIds = lisList.stream().map(lis -> lis.getId()).collect(Collectors.toList());
|
|
|
+ List<Long> lisIds = lisList
|
|
|
+ .stream()
|
|
|
+ .map(lis -> lis.getId())
|
|
|
+ .collect(Collectors.toList());
|
|
|
QuestionIds2VO questionIds2VO = new QuestionIds2VO();
|
|
|
questionIds2VO.setAge(age);
|
|
|
questionIds2VO.setSexType(sex);
|