mirror of
https://github.com/dairuoqi/Springboot-rock-admin.git
synced 2026-10-29 14:53:46 +00:00
Excel工具
This commit is contained in:
Regular → Executable
+4
-1
@@ -5,7 +5,6 @@ import com.rock.geological.web.pojo.User;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
public interface UserDao extends CrudRepository<User, Integer> {
|
||||
|
||||
@@ -14,5 +13,9 @@ public interface UserDao extends CrudRepository<User, Integer> {
|
||||
User findUserByName(String userName);
|
||||
|
||||
|
||||
/*登陆*/
|
||||
@Query(value = "select count(1) from user where username=?1 and password=?2", nativeQuery = true)
|
||||
int login(String username, String password);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user