puzhibing
2022-08-22 1421f8e9c308c4741cb396309035009393b5b036
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
package com.stylefeng.guns.modular.system.service.impl;
 
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.modular.system.dao.TCarColorMapper;
import com.stylefeng.guns.modular.system.model.TCarColor;
import com.stylefeng.guns.modular.system.service.ITCarColorService;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
 
@Service
public class TCarColorServiceImpl extends ServiceImpl<TCarColorMapper, TCarColor> implements ITCarColorService {
 
    @Resource
    private TCarColorMapper tCarColorMapper;
 
 
    /**
     * 获取车辆颜色列表
     * @param createTime
     * @param name
     * @param offset
     * @param limit
     * @return
     * @throws Exception
     */
    @Override
    public Map<String, Object> list(String createTime, String name, Integer offset, Integer limit) throws Exception {
        Map<String, Object> map = new HashMap<>();
        List<Map<String, Object>> list = tCarColorMapper.list(createTime, name, offset, limit);
        int i = tCarColorMapper.listCount(createTime, name);
        map.put("rows", list);
        map.put("total", i);
        return map;
    }
}