public Tourist findName(String name) { List list = touristdao.findName(name); if (list.size() > 0) { return (Tourist) list.get(0); } else { return null; } }
// 查询游客一日是否有重复 public List findByDate(String phone, String date, int id) { return touristdao.findByDate(phone, date, id); }
// 根基名字、手机号查询游客 public List findByNamePhone(String phone) { return touristdao.findByNamePhone(phone); }
public void addUserlogin(Userlogin userlogin) { touristdao.addUserlogin(userlogin); }
public void addAdtTor(Adttor adttor) { touristdao.addAdtTor(adttor); }
public int addTourist(Tourist tor) { touristdao.addTourist(tor); return 1; }