Browse Source

git-svn-id: https://192.168.57.71/svn/jsgkj@940 931142cf-59ea-a443-aa0e-51397b428577

ld_guxl 8 years ago
parent
commit
121a40772a
1 changed files with 7 additions and 0 deletions
  1. 7 0
      gkjsjy/trunk/src/com/xtframe/sec/user/dao/UserDao.java

+ 7 - 0
gkjsjy/trunk/src/com/xtframe/sec/user/dao/UserDao.java

@@ -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);
 
 	/**
 	 * 根据用户唯一标识查询