|
@@ -1,5 +1,7 @@
|
|
|
package com.diagbot.facade;
|
|
|
|
|
|
+import com.diagbot.dto.QuestionIndexDTO;
|
|
|
+import com.diagbot.entity.QuestionInfo;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
|
import com.diagbot.service.impl.QuestionInfoServiceImpl;
|
|
|
import com.diagbot.util.DateUtil;
|
|
@@ -9,6 +11,7 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -58,4 +61,21 @@ public class QuestionInfoFacade extends QuestionInfoServiceImpl {
|
|
|
moduleDetailFacade.deleteByQuestionIdFac(paramMap);
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 检索
|
|
|
+ *
|
|
|
+ * @param questionIndexDTO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<QuestionInfo> indexFac(QuestionIndexDTO questionIndexDTO) {
|
|
|
+ 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());
|
|
|
+ return this.index(paramMap);
|
|
|
+ }
|
|
|
}
|