📄 regeistdao.java
字号:
package example.regeist;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import com.shsafe.common.database.DatabaseConnection;
import example.common.dao.ExampleDAO;
import example.common.dto.UserDTO;
public class RegeistDAO extends ExampleDAO {
public RegeistDAO(DatabaseConnection connection) throws SQLException {
super(connection);
}
public int regeist(UserDTO userInfo) throws SQLException {
return super.change("regeist", userInfo);
}
public boolean findUserByUserId(String userId) throws SQLException {
Map<String, Object> param = new HashMap<String, Object>();
param.put("userId", userId);
Map<String, Object> data = find("findUserByUserId", param);
if (data != null) {
return true;
} else {
return false;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -