Pu Zhibing
8 天以前 a1f5b4bcde020c206382c3a07c9b4ecd5784a9d8
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.stylefeng.guns.modular.system.service.impl;
 
 
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.core.util.ToolUtil;
import com.stylefeng.guns.modular.system.dao.SystemPriceCityMapper;
import com.stylefeng.guns.modular.system.model.SystemPriceCity;
import com.stylefeng.guns.modular.system.service.ISystemPriceCityService;
import org.springframework.stereotype.Service;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author zhibing.pu
 * @Date 2025/7/26 9:25
 */
@Service
public class SystemPriceCityServiceImpl extends ServiceImpl<SystemPriceCityMapper, SystemPriceCity> implements ISystemPriceCityService {
    
    /**
     * 获取列表数据
     * @param page
     * @param name
     * @param time
     * @return
     */
    @Override
    public List<Map<String, Object>> queryList(Page<Map<String, Object>> page, String name, String time) {
        String start = null;
        String end = null;
        if(ToolUtil.isNotEmpty(time)){
            start = time.split("-")[0];
            end = time.split("-")[0];
        }
        return this.baseMapper.queryList(page, name, start, end);
    }
}