| | |
| | | package com.mes.mapper.userInfo; |
| | | |
| | | |
| | | import com.mes.controller.dto.UserDTO; |
| | | import com.mes.entity.userInfo.User; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | List<User> findAll(); |
| | | |
| | | User findOne(Integer id); |
| | | |
| | | @Select("select user_name FROM `user` where login_name=#{LoginName}") |
| | | User findOneLoginName(String LoginName); |
| | | @Select("select count(id) FROM `user` where login_name=#{userName} and password=#{password} ") |
| | | int checkUser(@Param("userName") String userName,@Param("password") String password); |