@@ -53,16 +53,36 @@ public class TenantDto { | |||
*/ | |||
private String provinceCode; | |||
/** | |||
* 省份名称 | |||
*/ | |||
private String provinceName; | |||
/** | |||
* 市区编号 | |||
*/ | |||
private String cityCode; | |||
/** | |||
* 市区名称 | |||
*/ | |||
private String cityName; | |||
/** | |||
* 区县编号 | |||
*/ | |||
private String districtCode; | |||
/** | |||
* 区县名称 | |||
*/ | |||
private String districtName; | |||
/** | |||
* 平台名称 | |||
*/ | |||
private String platformName; | |||
/** | |||
* 详细地址 | |||
*/ |
@@ -65,16 +65,36 @@ public class Tenant extends BaseEntity { | |||
*/ | |||
private String provinceCode; | |||
/** | |||
* 省份名称 | |||
*/ | |||
private String provinceName; | |||
/** | |||
* 市区编号 | |||
*/ | |||
private String cityCode; | |||
/** | |||
* 市区名称 | |||
*/ | |||
private String cityName; | |||
/** | |||
* 区县编号 | |||
*/ | |||
private String districtCode; | |||
/** | |||
* 区县名称 | |||
*/ | |||
private String districtName; | |||
/** | |||
* 平台名称 | |||
*/ | |||
private String platformName; | |||
/** | |||
* 详细地址 | |||
*/ |
@@ -1,6 +1,7 @@ | |||
package com.tuoheng.system.service.impl; | |||
import cn.hutool.core.convert.Convert; | |||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | |||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | |||
import com.tuoheng.common.utils.JsonResult; | |||
import com.tuoheng.common.utils.StringUtils; | |||
@@ -36,7 +37,8 @@ public class CityServiceImpl extends BaseServiceImpl<CityMapper, City> implement | |||
@Override | |||
public List<City> getCityList() { | |||
List<City> list = cityMapper.selectList(new QueryWrapper<>()); | |||
List<City> list = cityMapper.selectList(new LambdaQueryWrapper<City>() | |||
.eq(City::getMark, 1)); | |||
// 获取所有一级节点 | |||
List<City> result = list.stream(). |