Ver código fonte

租户实体 添加字段

master
wanghaoran 2 anos atrás
pai
commit
2a2e920567
3 arquivos alterados com 43 adições e 1 exclusões
  1. +20
    -0
      tuoheng-admin/src/main/java/com/tuoheng/admin/dto/TenantDto.java
  2. +20
    -0
      tuoheng-admin/src/main/java/com/tuoheng/admin/entity/Tenant.java
  3. +3
    -1
      tuoheng-system/src/main/java/com/tuoheng/system/service/impl/CityServiceImpl.java

+ 20
- 0
tuoheng-admin/src/main/java/com/tuoheng/admin/dto/TenantDto.java Ver arquivo

@@ -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;

/**
* 详细地址
*/

+ 20
- 0
tuoheng-admin/src/main/java/com/tuoheng/admin/entity/Tenant.java Ver arquivo

@@ -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;

/**
* 详细地址
*/

+ 3
- 1
tuoheng-system/src/main/java/com/tuoheng/system/service/impl/CityServiceImpl.java Ver arquivo

@@ -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().

Carregando…
Cancelar
Salvar