更新搜索历史返回形式

This commit is contained in:
cyk
2023-07-02 12:53:02 +08:00
parent 58f5380966
commit 841fcf0fc8

View File

@@ -3,6 +3,9 @@ package com.hellogithub.service;
import com.hellogithub.dao.UserDao; import com.hellogithub.dao.UserDao;
import com.hellogithub.entity.userEntity; import com.hellogithub.entity.userEntity;
import java.util.Arrays;
import java.util.List;
/** /**
* 用户Service层 * 用户Service层
* */ * */
@@ -41,7 +44,11 @@ public class UserService {
* 根据用户名返回搜索历史 * 根据用户名返回搜索历史
* @param name * @param name
* */ * */
public String selectLabel(String name){return userDao.selectLabel(name);} public List<String> selectLabel(String name){
String []stringList;
stringList=userDao.selectLabel(name).split(";");
return Arrays.asList(stringList);
}
/** /**
* 根据用户名和选取标签进行删除 * 根据用户名和选取标签进行删除
* @param name * @param name