package com.fshark.overseas.advert.entity.dao;

import com.fshark.overseas.advert.modle.OrderData;
import org.jdbi.v3.sqlobject.customizer.BindBean;
import org.jdbi.v3.sqlobject.statement.SqlUpdate;

public interface OrderDao {


    @SqlUpdate("insert into appsflyer_pay_record (region, did, uid,platform, game_id, media_source, campaign_id, ad_set_id,ad_id, " +
            " pay_time, money, currency, order_no, reg_time, activation_time, time_zone ,channel,data_type,retargeting_time)" +
            " values(:region, :did, :uid, :platform, :game_id, :media_source, :campaign_id, :ad_set_id , :ad_id," +
            " :pay_time, :revenue,:currency,:orderno,:reg_time,:activation_time,:time_zone,:channel,:data_type,:retargeting_time)")
    void insertOrder(@BindBean OrderData orderData);

    @SqlUpdate("insert into appsflyer_pay_record_server (region, did, uid,platform, game_id, media_source, campaign_id, ad_set_id,ad_id, " +
            " pay_time, money, currency, order_no, time_zone ,channel,server_reg_date,server_reg_hour,reg_server_id)" +
            " values(:region, :did, :uid, :platform, :game_id, :media_source, :campaign_id, :ad_set_id , :ad_id," +
            " :pay_time, :revenue,:currency,:orderno,:time_zone,:channel,:server_reg_date,:server_reg_hour,:reg_server_id)")
    void insertServerOrder(@BindBean OrderData eventData);

//    @SqlUpdate("insert into appsflyer_order_accumulative" +
//            " (`ds`,`region`, `platform`, `game_id`, `media_source`, `campaign_id` ,`ad_set_id`,`ad_id`,`currency`,`%s`" +
//            " values()")
//    void insertLtv(@BindBean OrderData orderData, int pay_user);

}
