package com.reptileclient.jlifeapp.dao.hm;

import cn.hutool.core.date.DateTime;
import com.reptileclient.jlifeapp.entity.hm.HmPaymentOrder;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface HmPaymentOrderMapper {

    void sp_update_phone_by_payment();

    int deleteByPrimaryKey(Long id);

    int insert(HmPaymentOrder record);

    int insertSelective(HmPaymentOrder record);

    int insertSelective_test15(HmPaymentOrder record);

    HmPaymentOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(HmPaymentOrder record);

    int updateByPrimaryKey(HmPaymentOrder record);

    HmPaymentOrder selectNewOne(@Param("shopCode") String shopCode);

    int insertByBatch(List<HmPaymentOrder> hmPaymentOrders);

//    int deleteByCreateTime(@Param("createTime") Date createTime, @Param("shopCode") String shopCode);

    int deleteByBuyerPhone(String buyerPhone);

    int deleteDistinctData(@Param("dateTime") DateTime dateTime);

    HmPaymentOrder selectByPaymentNo(String paymentNo);

    int deleteByBetWeenTime(@Param("startTime") DateTime startTime, @Param("endTime") DateTime endTime);

    List<HmPaymentOrder> selectEncryptPhone();

    void etlCustomer();
}
