Excel工具

This commit is contained in:
dairuoqi
2018-07-26 09:12:45 +08:00
parent 0d1b7d9364
commit 7eac92fd93
23 changed files with 623 additions and 149 deletions
+4 -1
View File
@@ -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);
}