xiaoyong931011
2021-08-09 e847891c4f6f12cee5e764f8c1fad001496b9740
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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> {
 
    RedPaperRule getOne(@Param("now") String now, @Param("ruleType") String ruleType, @Param("partnerId") String partnerId);
 
 
    List<RedPaperRule> queryByCondition(XzxUserRedpaperRuleQuery query);
 
    void batchDelXzxUserRedpaperRuleByIds(@Param("ids") List<Long> ids);
 
    List<XzxPlatformCapitalInfoModel> queryRebateList(XzxPlatformCapitalInfoModel model);
 
    List<String> queryUserOrderIds(@Param("completeTime") String completeTime, @Param("userId") String userId);
 
    String queryAfterWeightByOrderIds(@Param("orderIds") List<String> orderIds);
 
    String queryTotalAmountByParam(XzxPlatformCapitalInfoModel model);
 
    String queryTotalOrderMoney(@Param("orderIds") List<String> orderIds);
 
    List<RedPaperRule> queryRedpaperList(String startTime);
 
    List<RedPaperRule> queryRedpaperListStartAndEnd(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("partnerId") String partnerId, @Param("id") Integer id, @Param("ruleType")String ruleType);
 
    List<RedPaperRule> queryShareListByTime(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("partnerId") String partnerId);
 
    List<RedPaperRule> queryCommListByTime(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("id") String id);
 
 
    List<RebateRule> queryRebateRulePriceList(String ruleId);
 
    List<RedPaperRule> queryRebateRuleList(XzxUserRebateRuleModel model);
 
    List<RedPaperRule> queryWeightRuleList(XzxUserRebateRuleModel model);
 
    List<CommissionModel> queryAccountList(CommissionModel model);
 
    String queryTotalCommissionMoney(CommissionModel model);
 
    String queryAccountListCount(CommissionModel model);
 
    void deleteByRuleId(Integer ruleId);
 
    List<RedPaperRule> queryRoyalRuleList(@Param("partnerId") String partnerId, @Param("packageId") String packageId);
 
    List<XzxUserRedpaperRuleModel> queryRoyalty(@Param("partnerIds")List<String> partnerIds, @Param("partnerId")String partnerId);
 
    RedPaperRule selectDistribRule();
 
    List<RedPaperRule> selectRuleByType(@Param("type") Integer type);
}