package com.handong.smartservice.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TransactionMapper {

    List<Map<String, Object>> selectTransaction(Boolean isCount, Boolean is_excel, Long offset, Long limit, Boolean is_group_access,
        Long biz_group_id, String date_start, String date_end, String uid1, Long uid1_type, String type, Long amount, 
        String approval, String pay_name, String pay_vendor, String slot, String code, String goods_name);

    List<Map<String, Object>> selectTransactionBizGroup0(Boolean isCount, Boolean is_excel, Long offset, Long limit,
        String date_start, String date_end, String uid1, Long uid1_type, String type, Long amount, String approval, 
        String pay_name, String pay_vendor, String slot, String code, String goods_name);

    List<Map<String, Object>> selectTransaction2(Boolean isCount, Boolean is_excel, Long offset, Long limit, Boolean is_group_access,
        Long biz_group_id, String date_start, String date_end, String uid1);
        
    List<Map<String, Object>> selectTransaction3(Boolean isCount, Boolean is_excel, Long offset, Long limit, Boolean is_group_access,
        Long biz_group_id, String date_start, String date_end, String uid1, String device_name, Long approval_type, Long date_type);

    int insertTransaction(Map<String, Object> params);
}
