|
|
@ -1,11 +1,14 @@
|
|
|
|
package com.luoo.user.dao;
|
|
|
|
package com.luoo.user.dao;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.data.jpa.repository.Modifying;
|
|
|
|
import org.springframework.data.jpa.repository.Modifying;
|
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.luoo.user.pojo.Admin;
|
|
|
|
import com.luoo.user.pojo.UserInfo;
|
|
|
|
import com.luoo.user.pojo.UserInfo;
|
|
|
|
|
|
|
|
|
|
|
|
public interface UserInfoDao extends JpaRepository<UserInfo, String>, JpaSpecificationExecutor<UserInfo> {
|
|
|
|
public interface UserInfoDao extends JpaRepository<UserInfo, String>, JpaSpecificationExecutor<UserInfo> {
|
|
|
@ -20,4 +23,7 @@ public interface UserInfoDao extends JpaRepository<UserInfo, String>, JpaSpecifi
|
|
|
|
void updatefanscount(int x, String friendid);
|
|
|
|
void updatefanscount(int x, String friendid);
|
|
|
|
|
|
|
|
|
|
|
|
public long countByNickName(String nickName);
|
|
|
|
public long countByNickName(String nickName);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Query(value = "select * from tb_user_info where id in ?1 order by field(id,?1)", nativeQuery = true)
|
|
|
|
|
|
|
|
public List<UserInfo> orderByField(List<String> idList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|