puzhibing
2024-03-01 0b43867efe797e23cb881cf78513043c01746adf
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
package com.dsh.account.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dsh.account.entity.Referee;
import com.dsh.account.mapper.RefereeMapper;
import com.dsh.account.model.RefereeList;
import com.dsh.account.service.IRefereeService;
import org.springframework.stereotype.Service;
 
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
/**
 * @author 39373
 * @Date 2024/2/8 15:04
 */
@Service
public class RefereeServiceImpl extends ServiceImpl<RefereeMapper, Referee> implements IRefereeService {
 
 
    /**
     * 获取裁判管理列表数据
     * @param refereeList
     * @return
     */
    @Override
    public Map<String, Object> getRefereeList(RefereeList refereeList) {
        Map<String, Object> map = new HashMap<>();
        List<Map<String, Object>> list = this.baseMapper.getRefereeList(refereeList);
        int count = this.baseMapper.getRefereeListCount(refereeList);
        map.put("rows", list);
        map.put("total", count);
        return map;
    }
}