|
@@ -6,7 +6,9 @@ import com.diagbot.service.impl.RetrievalServiceImpl;
|
|
|
import com.diagbot.vo.RetrievalVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -26,7 +28,10 @@ public class RetrievalFacade extends RetrievalServiceImpl {
|
|
|
* @param retrievalVO
|
|
|
* @return
|
|
|
*/
|
|
|
- public List<RetrievalDTO> getTagInfos(RetrievalVO retrievalVO) {
|
|
|
+ public List<RetrievalDTO> getTagInfos(@Valid @RequestBody RetrievalVO retrievalVO) {
|
|
|
+ if(retrievalVO.getInputStr() == null || retrievalVO.getInputStr() == ""){
|
|
|
+ retrievalVO.setInputStr(" ");
|
|
|
+ }
|
|
|
//获取同义词标签信息
|
|
|
List<RetrievalDTO> data = this.getSymptopInfo(retrievalVO);
|
|
|
//将标签名放入实体
|