package com.crm.manager.dao.mapper;

import com.crm.rely.backend.core.entity.sales.SalesCommissionRecordListEntity;
import com.crm.rely.backend.core.pojo.table.SalesCommissionRecordTable;
import com.crm.rely.backend.core.pojo.view.SalesCommissionRecordView;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface SalesCommissionRecordMapper {

    Integer countSearch(SalesCommissionRecordListEntity entity);

    List<SalesCommissionRecordView> listSearch(SalesCommissionRecordListEntity entity);

    void updateAmountBySalesIdAndYm(SalesCommissionRecordTable salesCommissionRecordTable);

}
