public int countPhoneCode(PhoneCode code) {
Sql sql =Sqls.fetchInt("SELECT COUNT(*) AS number FROM $table WHERE mac = @mac ");
sql.vars().set("table","t7_user_phone_code");
sql.params().set("mac",code.getMac());
this.dao().execute(sql);
int count = sql.getInt();
return 0;
}
添加回复
请先登陆