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);
|
}
|
}
|