예제 #1
0
  public GroupHistory SetGroupHistory(Group g) {
    GroupHistory gh = new GroupHistory();

    gh.name = g.getName();
    gh.name_en = g.getName_en();
    gh.route = g.getRoute();
    gh.depart_date = g.getDepart_date();
    gh.ticket_url = g.getTicket_url();
    gh.status = g.getStatus();
    gh.max_point = g.getMax_point();
    gh.pickup_info = g.getPickup_info();
    gh.traffic_hotel_info = g.getTraffic_hotel_info();
    gh.profit_ready = g.getProfit_ready();
    gh.profit = g.getProfit();
    gh.guide_ready = g.getGuide_ready();
    gh.caution_ready = g.getCaution_ready();
    gh.caution = g.getCaution();
    gh.guide1 = g.getGuide1();
    gh.guide2 = g.getGuide2();
    gh.multi_days = g.getMulti_days();
    gh.voucher_match = g.getVoucher_match();
    gh.seats = g.getSeats();
    gh.seats_reserved = g.getSeats_reserved();
    gh.seats_taken = g.getSeats_taken();
    gh.price = g.getPrice();
    gh.vip_price = g.getVip_price();

    gh.external_indicator = g.getExternal_indicator();
    gh.external_indicator_en = g.getExternal_indicator_en();

    gh.internalBookable = g.getInternalBookable();
    gh.externalBookable = g.getExternalBookable();
    gh.internalView = g.getInternalView();
    gh.externalView = g.getExternalView();
    gh.ext_groupon = g.getExt_groupon();
    gh.int_groupon = g.getInt_groupon();
    gh.seats_groupon_min = g.getSeats_groupon_min();
    gh.seats_groupon = g.getSeats_groupon();
    gh.seats_taken_groupon = g.getSeats_taken_groupon();
    gh.seats_reserved_groupon = g.getSeats_reserved_groupon();
    gh.group_price = g.getGroup_price();
    gh.group_vip_price = g.getGroup_vip_price();
    gh.groupon_end_time = g.getGroupon_end_time();

    // seckill group feature
    gh.ext_seckill = g.getExt_seckill();
    gh.int_seckill = g.getInt_seckill();
    gh.seats_seckill = g.getSeats_seckill();
    gh.seats_taken_seckill = g.getSeats_taken_seckill();
    gh.seats_reserved_seckill = g.getSeats_reserved_seckill();
    gh.seckill_price = g.getSeckill_price();
    gh.seckill_vip_price = g.getSeckill_vip_price();
    gh.seckill_start_time = g.getSeckill_start_time();
    gh.seckill_end_time = g.getSeckill_end_time();

    gh.go_img_1 = g.getGo_img_1();
    gh.go_img_2 = g.getGo_img_2();
    gh.sk_img_1 = g.getSk_img_1();
    gh.sk_img_2 = g.getSk_img_2();

    gh.voucher_applied = g.getVoucher_applied();

    gh.priority = g.getPriority();

    gh.group_id = g.getId();
    Calendar realtime = Calendar.getInstance();
    ;
    gh.audit_time = realtime;

    return gh;
  }
예제 #2
0
 @Override
 public void delete(int id) {
   GroupHistory gh = new GroupHistory();
   gh.setId(id);
   ht.delete(gh);
 }