package com.xzx.gc.order.mapper; import com.xzx.gc.entity.RebateRule; import com.xzx.gc.entity.RedPaperRule; import com.xzx.gc.model.admin.CommissionModel; import com.xzx.gc.model.admin.XzxPlatformCapitalInfoModel; import com.xzx.gc.model.admin.XzxUserRebateRuleModel; import com.xzx.gc.model.admin.XzxUserRedpaperRuleModel; import com.xzx.gc.model.query.XzxUserRedpaperRuleQuery; import com.xzx.gc.util.GcMapper; import org.apache.ibatis.annotations.Param; import java.util.List; public interface RedPaperRuleMapper extends GcMapper { RedPaperRule getOne(@Param("now") String now, @Param("ruleType") String ruleType, @Param("partnerId") String partnerId); List queryByCondition(XzxUserRedpaperRuleQuery query); void batchDelXzxUserRedpaperRuleByIds(@Param("ids") List ids); List queryRebateList(XzxPlatformCapitalInfoModel model); List queryUserOrderIds(@Param("completeTime") String completeTime, @Param("userId") String userId); String queryAfterWeightByOrderIds(@Param("orderIds") List orderIds); String queryTotalAmountByParam(XzxPlatformCapitalInfoModel model); String queryTotalOrderMoney(@Param("orderIds") List orderIds); List queryRedpaperList(String startTime); List queryRedpaperListStartAndEnd(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("partnerId") String partnerId, @Param("id") Integer id, @Param("ruleType")String ruleType); List queryShareListByTime(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("partnerId") String partnerId); List queryCommListByTime(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("id") String id); List queryRebateRulePriceList(String ruleId); List queryRebateRuleList(XzxUserRebateRuleModel model); List queryWeightRuleList(XzxUserRebateRuleModel model); List queryAccountList(CommissionModel model); String queryTotalCommissionMoney(CommissionModel model); String queryAccountListCount(CommissionModel model); void deleteByRuleId(Integer ruleId); List queryRoyalRuleList(@Param("partnerId") String partnerId, @Param("packageId") String packageId); List queryRoyalty(@Param("partnerIds")List partnerIds, @Param("partnerId")String partnerId); RedPaperRule selectDistribRule(); }