package com.jeesharp.business.modules.finance.profitsharing.mapper;

import com.jeesharp.business.modules.finance.profitsharing.entity.ProfitSharingReturn;
import com.jeesharp.business.modules.finance.profitsharing.vo.ProfitSharingReturnQueryVO;
import com.jeesharp.framework.mybatis.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 分账回退单 MyBatis Mapper。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
@Mapper
public interface ProfitSharingReturnMapper extends BaseMapper<ProfitSharingReturn, ProfitSharingReturnQueryVO> {

    /**
     * 统计分账单已成功回退金额（分）。
     */
    Integer sumSuccessReturnFenByProfitSharingOrderId(@Param("profitSharingOrderId") String profitSharingOrderId);
}
