dao 层实现 的方法

@Override
public boolean checkPhone(String phone) {
String sql = "select username from user where phone=?";
List<Map<String, Object>> queryForList = DbUtil.queryForList(sql, phone);
if(queryForList.isEmpty(http://www.amjmh.com/v/BIBRGZ_558768/)){
return true;
}
return false;
}
————————————————

 

posted @ 2019-08-28 22:12  水至清明  阅读(362)  评论(0编辑  收藏  举报