|
@@ -1,5 +1,7 @@
|
|
|
package com.xtframe.sec.user.dao;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
|
|
|
import com.xtframe.sec.common.SecRepository;
|
|
@@ -10,6 +12,7 @@ import com.xtframe.sec.user.entity.UserEntity;
|
|
|
*
|
|
|
*/
|
|
|
public interface UserDao extends SecRepository<UserEntity, String> {
|
|
|
+
|
|
|
/**
|
|
|
* 根据用户名查询用户
|
|
|
*
|
|
@@ -18,6 +21,10 @@ public interface UserDao extends SecRepository<UserEntity, String> {
|
|
|
*/
|
|
|
@Query("SELECT m from UserEntity m where m.uname =?1 and m.recordStatus<>9")
|
|
|
public UserEntity findByUname(String uname);
|
|
|
+
|
|
|
+
|
|
|
+ @Query(value = "SELECT id,name,uname,password from GK_BASIC_JSJY_USER m where m.uname =?1 and m.password=?2",nativeQuery = true)
|
|
|
+ public List<Object> findByUname(String uname,String password);
|
|
|
|
|
|
/**
|
|
|
* 根据用户唯一标识查询
|