mitao
2024-07-08 022a7ff7abf82cd2546e18071ade5228b4e2339f
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
package com.sinata.modular.mall.service.impl;
 
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.sinata.modular.mall.dao.CommissionSettlementMonthMapper;
import com.sinata.modular.mall.model.CommissionSettlementMonth;
import com.sinata.modular.mall.service.ICommissionSettlementMonthService;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * <p>
 * 佣金月结算 服务实现类
 * </p>
 *
 * @author fq
 * @since 2023-04-22
 */
@Service
public class CommissionSettlementMonthServiceImpl extends ServiceImpl<CommissionSettlementMonthMapper, CommissionSettlementMonth> implements ICommissionSettlementMonthService {
 
    @Override
    public List<CommissionSettlementMonth> queryList(String beginTime, String endTime, String name, String showId, String area, String cityCode, Integer gradeId, String month, Integer pageNo, Integer pageSize) {
        Integer offset = null;
        if (pageNo != null && pageSize != null) {
            offset = (pageNo - 1 ) * pageSize;
        }
        return baseMapper.queryList(beginTime, endTime, name, showId, area, cityCode, gradeId, month, offset, pageSize);
    }
    @Override
    public Integer queryListCount(String beginTime, String endTime, String name, String showId, String area, String cityCode, Integer gradeId, String month) {
        return baseMapper.queryListCount(beginTime, endTime, name, showId, area, cityCode, gradeId, month);
    }
 
    @Override
    public void addList(List<CommissionSettlementMonth> addMonthList) {
         baseMapper.addList(addMonthList);
    }
}