xuekang
2024-05-13 15a0280ae9e7db96fdf0744c722d214d2cb5a0e5
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
65
66
67
68
69
70
package com.nuvole.four.service;
 
import com.nuvole.four.domain.ActivityShopRecord;
import com.nuvole.four.domain.dto.ActivityShopRecordDto;
import com.nuvole.four.domain.params.ActivityShopRecordParam;
import com.nuvole.four.domain.query.ActivityShopRecordQuery;
 
import java.util.List;
import java.util.Map;
 
/**
 * @Description 活动补贴—上报商户Service
 * @Author dqh
 * @Date 2024-04-13 21:39:14
 */
public interface ActivityShopRecordService {
 
    int addSelective(ActivityShopRecord entity);
 
    int editSelective(ActivityShopRecord entity);
 
    ActivityShopRecord get(Long id);
 
    int del(Long id);
 
    /**
     * 查询列表
     *
     * @param query
     * @return 查询结果
     */
    List<ActivityShopRecord> getList(ActivityShopRecordQuery query);
 
    /**
     * 功能描述 根据店铺id,支付通道 查询活动费率
     *
     * @param
     **/
    Map getActRateByShopIdAndChannelId(Long shopId, Long channelId);
 
    /**
     * 功能描述 当商户使用额度时,更新剩余额度、已使用额度
     *
     * @param activityId     费率活动id
     * @param merchantShopId 商户id
     * @param useFee         本次使用额度
     **/
    int updShopSurplusFee(Long activityId, Long merchantShopId, Long channelId, Integer useFee);
 
    /**
     * 方法描述:已上报商户列表
     *
     * @date  2024-04-14 20:37
     **/
    List<ActivityShopRecordDto> getAlreadyMerchantList(ActivityShopRecordParam param);
 
    /**
     * 方法描述:批量添加上报
     *
     * @date  2024-04-15 9:45
     **/
    Integer batchInsert(List<ActivityShopRecord> recordList);
 
    /**
     * 方法描述:根据shopIds查询所有记录
     *
     * @date  2024-04-15 11:23
     **/
    List<ActivityShopRecord> selectByCondition(String[] idsArr,Long activityId);
}