/** * 增加用户 * * @param username * @param email * @param password * @return */ public static boolean insertUser(String username, String email, String password) { ManagerUser user = new ManagerUser(); user.set("username", username); user.set("email", email); user.set("password", password); log.info("add user:" + user); return user.save(); }
public static ManagerUser findByUserByName(String username) { return me.findFirst("select * from mpos_manager_user where username=?", username); }