|
@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.diagbot.dto.GetQuestionInfoDTO;
|
|
|
-import com.diagbot.dto.QuestionIndexDTO;
|
|
|
import com.diagbot.dto.QuestionPageDTO;
|
|
|
import com.diagbot.entity.CommonParam;
|
|
|
import com.diagbot.entity.DeptInfo;
|
|
@@ -28,8 +27,10 @@ import com.diagbot.util.StringUtil;
|
|
|
import com.diagbot.util.UserUtils;
|
|
|
import com.diagbot.vo.GetQuestionInfoVO;
|
|
|
import com.diagbot.vo.GetQuestionUsualByDeptVO;
|
|
|
+import com.diagbot.vo.QuestionIndexVO;
|
|
|
import com.diagbot.vo.QuestionPageVO;
|
|
|
import com.diagbot.vo.QuestionSaveVO;
|
|
|
+import com.diagbot.vo.QuestionSpecVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -283,6 +284,7 @@ public class QuestionInfoFacade extends QuestionInfoServiceImpl {
|
|
|
this.saveOrUpdate(questionInfo);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 标签列表
|
|
|
*
|
|
@@ -333,19 +335,38 @@ public class QuestionInfoFacade extends QuestionInfoServiceImpl {
|
|
|
/**
|
|
|
* 检索
|
|
|
*
|
|
|
- * @param questionIndexDTO
|
|
|
+ * @param questionIndexVO
|
|
|
* @return
|
|
|
*/
|
|
|
- public List<QuestionInfo> indexFac(QuestionIndexDTO questionIndexDTO) {
|
|
|
+ public List<QuestionInfo> indexFac(QuestionIndexVO questionIndexVO) {
|
|
|
Map<String, Object> paramMap = new HashMap<>();
|
|
|
paramMap.put("isDeleted", IsDeleteEnum.N.getKey());
|
|
|
- paramMap.put("age", questionIndexDTO.getAge());
|
|
|
- paramMap.put("sexType", questionIndexDTO.getSexType());
|
|
|
- paramMap.put("tagName", questionIndexDTO.getTagName());
|
|
|
- paramMap.put("type", questionIndexDTO.getType());
|
|
|
+ paramMap.put("age", questionIndexVO.getAge());
|
|
|
+ paramMap.put("sexType", questionIndexVO.getSexType());
|
|
|
+ paramMap.put("tagName", questionIndexVO.getTagName());
|
|
|
+ paramMap.put("type", questionIndexVO.getType());
|
|
|
+ paramMap.put("controlType", questionIndexVO.getControlType());
|
|
|
+ paramMap.put("notIds", questionIndexVO.getNotIds());
|
|
|
return this.index(paramMap);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取特殊标签(同伴|无)
|
|
|
+ *
|
|
|
+ * @param questionSpecVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<QuestionInfo> getSpecialFac(QuestionSpecVO questionSpecVO) {
|
|
|
+ Map<String, Object> paramMap = new HashMap<>();
|
|
|
+ paramMap.put("age", questionSpecVO.getAge());
|
|
|
+ paramMap.put("sexType", questionSpecVO.getSexType());
|
|
|
+ paramMap.put("type", questionSpecVO.getType());
|
|
|
+ paramMap.put("notIds", questionSpecVO.getNotIds());
|
|
|
+ return this.getSpecial(paramMap);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 根据标签名获取标签信息
|
|
|
*
|
|
@@ -360,6 +381,7 @@ public class QuestionInfoFacade extends QuestionInfoServiceImpl {
|
|
|
return this.getOne(queryWrapper);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 根据标签名获取标签信息
|
|
|
*
|
|
@@ -371,6 +393,7 @@ public class QuestionInfoFacade extends QuestionInfoServiceImpl {
|
|
|
return getQuestionInfoDTOS;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 根据科室id获取常用标签信息
|
|
|
*
|