|
@@ -16,7 +16,6 @@ import io.swagger.annotations.*;
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springblade.constant.BusinessConstant;
|
|
import org.springblade.constant.BusinessConstant;
|
|
|
import org.springblade.core.boot.ctrl.BladeController;
|
|
import org.springblade.core.boot.ctrl.BladeController;
|
|
|
-import org.springblade.core.launch.constant.AppConstant;
|
|
|
|
|
import org.springblade.core.mp.support.Condition;
|
|
import org.springblade.core.mp.support.Condition;
|
|
|
import org.springblade.core.secure.BladeUser;
|
|
import org.springblade.core.secure.BladeUser;
|
|
|
import org.springblade.core.secure.utils.AuthUtil;
|
|
import org.springblade.core.secure.utils.AuthUtil;
|
|
@@ -31,10 +30,11 @@ import org.springblade.modules.baseinfo.region.entity.RegionTreeNodeEntity;
|
|
|
import org.springblade.modules.baseinfo.region.service.IBaseInfoRegionService;
|
|
import org.springblade.modules.baseinfo.region.service.IBaseInfoRegionService;
|
|
|
import org.springblade.modules.baseinfo.region.service.IOrgRegionInfoService;
|
|
import org.springblade.modules.baseinfo.region.service.IOrgRegionInfoService;
|
|
|
import org.springblade.modules.baseinfo.region.vo.RegionInfoVO;
|
|
import org.springblade.modules.baseinfo.region.vo.RegionInfoVO;
|
|
|
-import org.springblade.modules.baseinfo.region.wrapper.RegionInfoNodeWrapper;
|
|
|
|
|
import org.springblade.modules.baseinfo.region.wrapper.RegionInfoWrapper;
|
|
import org.springblade.modules.baseinfo.region.wrapper.RegionInfoWrapper;
|
|
|
|
|
+import org.springblade.modules.manage.task.DataTaskManager;
|
|
|
import org.springblade.modules.system.service.IDeptService;
|
|
import org.springblade.modules.system.service.IDeptService;
|
|
|
import org.springblade.modules.system.service.IRegionService;
|
|
import org.springblade.modules.system.service.IRegionService;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
import org.springframework.data.redis.core.ValueOperations;
|
|
import org.springframework.data.redis.core.ValueOperations;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -43,7 +43,6 @@ import springfox.documentation.annotations.ApiIgnore;
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
import java.util.LinkedList;
|
|
import java.util.LinkedList;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
-import java.util.Objects;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***
|
|
/***
|
|
@@ -64,8 +63,10 @@ public class BaseInfoRegionController extends BladeController {
|
|
|
private final IRegionService regionService;
|
|
private final IRegionService regionService;
|
|
|
private final IEtlAdCdService etlAdCdService;
|
|
private final IEtlAdCdService etlAdCdService;
|
|
|
private final IOrgRegionInfoService iOrgRegionInfoService;
|
|
private final IOrgRegionInfoService iOrgRegionInfoService;
|
|
|
- @Resource
|
|
|
|
|
|
|
+ @Autowired
|
|
|
private RedisTemplate redisTemplate;
|
|
private RedisTemplate redisTemplate;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private DataTaskManager dataTaskManager;
|
|
|
|
|
|
|
|
@GetMapping("/lazy-tree")
|
|
@GetMapping("/lazy-tree")
|
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@@ -129,8 +130,9 @@ public class BaseInfoRegionController extends BladeController {
|
|
|
if (BusinessConstant.ROLE_ORG_ADMIN.equals(user.getRoleName()) || BusinessConstant.ROLE_ORG_SERVICE_PERSON.equals(user.getRoleName())) {
|
|
if (BusinessConstant.ROLE_ORG_ADMIN.equals(user.getRoleName()) || BusinessConstant.ROLE_ORG_SERVICE_PERSON.equals(user.getRoleName())) {
|
|
|
String regionJson = opsHash.get("region." + user.getDeptId());
|
|
String regionJson = opsHash.get("region." + user.getDeptId());
|
|
|
if (null != regionJson) {
|
|
if (null != regionJson) {
|
|
|
- nodeEntities = JSON.parseObject(regionJson,new TypeReference<List<RegionTreeNodeEntity>>() {});
|
|
|
|
|
- }else {
|
|
|
|
|
|
|
+ nodeEntities = JSON.parseObject(regionJson, new TypeReference<List<RegionTreeNodeEntity>>() {
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
LambdaQueryWrapper<OrgRegionInfoEntity> queryWrapper = Wrappers.<OrgRegionInfoEntity>query().lambda();
|
|
LambdaQueryWrapper<OrgRegionInfoEntity> queryWrapper = Wrappers.<OrgRegionInfoEntity>query().lambda();
|
|
|
queryWrapper.eq(OrgRegionInfoEntity::getParentCode, "00");
|
|
queryWrapper.eq(OrgRegionInfoEntity::getParentCode, "00");
|
|
|
queryWrapper.eq(OrgRegionInfoEntity::getDeptId, Func.toLong(user.getDeptId()));
|
|
queryWrapper.eq(OrgRegionInfoEntity::getDeptId, Func.toLong(user.getDeptId()));
|
|
@@ -156,8 +158,9 @@ public class BaseInfoRegionController extends BladeController {
|
|
|
} else {
|
|
} else {
|
|
|
String regionJson = opsHash.get("region.admin");
|
|
String regionJson = opsHash.get("region.admin");
|
|
|
if (null != regionJson) {
|
|
if (null != regionJson) {
|
|
|
- nodeEntities = JSON.parseObject(regionJson,new TypeReference<List<RegionTreeNodeEntity>>() {});
|
|
|
|
|
- }else {
|
|
|
|
|
|
|
+ nodeEntities = JSON.parseObject(regionJson, new TypeReference<List<RegionTreeNodeEntity>>() {
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
LambdaQueryWrapper<RegionInfoEntity> queryWrapper = Wrappers.<RegionInfoEntity>query().lambda();
|
|
LambdaQueryWrapper<RegionInfoEntity> queryWrapper = Wrappers.<RegionInfoEntity>query().lambda();
|
|
|
queryWrapper.eq(RegionInfoEntity::getParentCode, "00");
|
|
queryWrapper.eq(RegionInfoEntity::getParentCode, "00");
|
|
|
List<RegionInfoEntity> list = iBaseInfoRegionService.list(queryWrapper);
|
|
List<RegionInfoEntity> list = iBaseInfoRegionService.list(queryWrapper);
|
|
@@ -241,57 +244,6 @@ public class BaseInfoRegionController extends BladeController {
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 多表联合查询列表,不分页
|
|
|
|
|
- */
|
|
|
|
|
-// @GetMapping("/list")
|
|
|
|
|
-// @ApiOperationSupport(order = 2)
|
|
|
|
|
-// @ApiOperation(value = "不分页")
|
|
|
|
|
-// public R<IPage<RtuInfoVO>> list(Query query) {
|
|
|
|
|
-// LambdaQueryWrapper<RtuInfoEntity> wrapper = Wrappers.<RtuInfoEntity>query().lambda();
|
|
|
|
|
-// BladeUser user = AuthUtil.getUser();
|
|
|
|
|
-// if (BusinessConstant.ROLE_ADMIN.equals(user.getRoleName())) {
|
|
|
|
|
-// } else if (BusinessConstant.ROLE_ORG_ADMIN.equals(user.getRoleName()) || BusinessConstant.ROLE_ORG_SERVICE_PERSON.equals(user.getRoleName())) {
|
|
|
|
|
-// wrapper.eq(RtuInfoEntity::getOrgId,user.getDeptId());
|
|
|
|
|
-// }
|
|
|
|
|
-// wrapper.eq(RtuInfoEntity::getIsDeleted,0);
|
|
|
|
|
-// wrapper.orderByAsc(RtuInfoEntity::getOrgId);
|
|
|
|
|
-// wrapper.orderByAsc(RtuInfoEntity::getProjectId);
|
|
|
|
|
-// wrapper.orderByAsc(RtuInfoEntity::getRtuCode);
|
|
|
|
|
-//
|
|
|
|
|
-// IPage<RegionInfoEntity> pages = baseInfoRegionService.page(Condition.getPage(query),wrapper);
|
|
|
|
|
-// return R.data(RegionInfoNodeWrapper.build().pageVO(pages));
|
|
|
|
|
-// }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 多表联合查询自定义分页
|
|
|
|
|
- */
|
|
|
|
|
-// @GetMapping("/page")
|
|
|
|
|
-// @ApiImplicitParams({
|
|
|
|
|
-// @ApiImplicitParam(name = "projectName", value = "项目名称", paramType = "query", dataType = "long"),
|
|
|
|
|
-// @ApiImplicitParam(name = "rtuName", value = "测站名称", paramType = "query", dataType = "string"),
|
|
|
|
|
-// @ApiImplicitParam(name = "rtuCode", value = "测站编码", paramType = "query", dataType = "string"),
|
|
|
|
|
-// })
|
|
|
|
|
-// @ApiOperationSupport(order = 3)
|
|
|
|
|
-// @ApiOperation(value = "分页")
|
|
|
|
|
-// public R<IPage<RtuInfoVO>> page(@ApiIgnore RtuInfoDTO rtuInfoDTO, Query query) {
|
|
|
|
|
-//
|
|
|
|
|
-// BladeUser user = AuthUtil.getUser();
|
|
|
|
|
-// if (BusinessConstant.ROLE_ADMIN.equals(user.getRoleName())) {
|
|
|
|
|
-// } else if (BusinessConstant.ROLE_ORG_ADMIN.equals(user.getRoleName()) || BusinessConstant.ROLE_ORG_SERVICE_PERSON.equals(user.getRoleName())) {
|
|
|
|
|
-// rtuInfoDTO.setOrgId(Func.toLong(user.getDeptId()));
|
|
|
|
|
-// }
|
|
|
|
|
-//
|
|
|
|
|
-// IPage<RtuInfoVO> pages = rtuBaseInfoService.selectPage(Condition.getPage(query),rtuInfoDTO);
|
|
|
|
|
-// List<RtuInfoVO> list = pages.getRecords();
|
|
|
|
|
-// for (RtuInfoVO rtuInfoVO : list) {
|
|
|
|
|
-// RtuInfoWrapper.build().appendInfo(rtuInfoVO);
|
|
|
|
|
-// }
|
|
|
|
|
-// return R.data(pages);
|
|
|
|
|
-// }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 详情
|
|
* 详情
|
|
|
*/
|
|
*/
|
|
@@ -305,27 +257,6 @@ public class BaseInfoRegionController extends BladeController {
|
|
|
return R.data(RegionInfoWrapper.build().entityVO(detail));
|
|
return R.data(RegionInfoWrapper.build().entityVO(detail));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 新增
|
|
|
|
|
- */
|
|
|
|
|
-// @PostMapping("/save")
|
|
|
|
|
-// @ApiOperationSupport(order = 4)
|
|
|
|
|
-// @ApiOperation(value = "新增", notes = "传入rtuInfoEntity")
|
|
|
|
|
-// public R save(@RequestBody RtuInfoEntity rtuInfoEntity) {
|
|
|
|
|
-// return R.status(rtuBaseInfoService.save(rtuInfoEntity));
|
|
|
|
|
-// }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 修改
|
|
|
|
|
- */
|
|
|
|
|
-// @PostMapping("/update")
|
|
|
|
|
-// @ApiOperationSupport(order = 5)
|
|
|
|
|
-// @ApiOperation(value = "修改", notes = "传入rtuInfoEntity")
|
|
|
|
|
-// public R update(@RequestBody RtuInfoEntity rtuInfoEntity) {
|
|
|
|
|
-// return R.status(rtuBaseInfoService.updateById(rtuInfoEntity));
|
|
|
|
|
-// }
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 新增或修改
|
|
* 新增或修改
|
|
|
*/
|
|
*/
|
|
@@ -333,18 +264,17 @@ public class BaseInfoRegionController extends BladeController {
|
|
|
@ApiOperationSupport(order = 6)
|
|
@ApiOperationSupport(order = 6)
|
|
|
@ApiOperation(value = "新增或修改", notes = "传入RegionInfoDTO")
|
|
@ApiOperation(value = "新增或修改", notes = "传入RegionInfoDTO")
|
|
|
public R submit(@RequestBody RegionInfoDTO regionInfoDTO) {
|
|
public R submit(@RequestBody RegionInfoDTO regionInfoDTO) {
|
|
|
-
|
|
|
|
|
LambdaQueryWrapper<RegionInfoEntity> queryWrapper = Wrappers.<RegionInfoEntity>query().lambda();
|
|
LambdaQueryWrapper<RegionInfoEntity> queryWrapper = Wrappers.<RegionInfoEntity>query().lambda();
|
|
|
queryWrapper.eq(RegionInfoEntity::getAdcd, regionInfoDTO.getCode());
|
|
queryWrapper.eq(RegionInfoEntity::getAdcd, regionInfoDTO.getCode());
|
|
|
queryWrapper.eq(RegionInfoEntity::getIsDeleted, 0);
|
|
queryWrapper.eq(RegionInfoEntity::getIsDeleted, 0);
|
|
|
RegionInfoEntity entity = iBaseInfoRegionService.getOne(queryWrapper);
|
|
RegionInfoEntity entity = iBaseInfoRegionService.getOne(queryWrapper);
|
|
|
-
|
|
|
|
|
|
|
+ boolean status = false;
|
|
|
if (entity != null) {
|
|
if (entity != null) {
|
|
|
entity.setAdcd(regionInfoDTO.getCode());
|
|
entity.setAdcd(regionInfoDTO.getCode());
|
|
|
entity.setAdnm(regionInfoDTO.getName());
|
|
entity.setAdnm(regionInfoDTO.getName());
|
|
|
entity.setStatus(1);
|
|
entity.setStatus(1);
|
|
|
entity.setIsDeleted(0);
|
|
entity.setIsDeleted(0);
|
|
|
- return R.status(iBaseInfoRegionService.updateById(entity));
|
|
|
|
|
|
|
+ status = iBaseInfoRegionService.updateById(entity);
|
|
|
} else {
|
|
} else {
|
|
|
entity = new RegionInfoEntity();
|
|
entity = new RegionInfoEntity();
|
|
|
entity.setAdcd(regionInfoDTO.getCode());
|
|
entity.setAdcd(regionInfoDTO.getCode());
|
|
@@ -352,11 +282,11 @@ public class BaseInfoRegionController extends BladeController {
|
|
|
entity.setParentCode(regionInfoDTO.getParentCode());
|
|
entity.setParentCode(regionInfoDTO.getParentCode());
|
|
|
entity.setStatus(1);
|
|
entity.setStatus(1);
|
|
|
entity.setIsDeleted(0);
|
|
entity.setIsDeleted(0);
|
|
|
-
|
|
|
|
|
entity.setAncestors(regionInfoDTO.getAncestors() + "," + regionInfoDTO.getParentCode());
|
|
entity.setAncestors(regionInfoDTO.getAncestors() + "," + regionInfoDTO.getParentCode());
|
|
|
- return R.status(iBaseInfoRegionService.save(entity));
|
|
|
|
|
|
|
+ status = iBaseInfoRegionService.save(entity);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ dataTaskManager.deptUpdateTask();
|
|
|
|
|
+ return R.status(status);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -369,55 +299,12 @@ public class BaseInfoRegionController extends BladeController {
|
|
|
LambdaUpdateWrapper<RegionInfoEntity> queryWrapper = Wrappers.<RegionInfoEntity>update().lambda();
|
|
LambdaUpdateWrapper<RegionInfoEntity> queryWrapper = Wrappers.<RegionInfoEntity>update().lambda();
|
|
|
queryWrapper.eq(RegionInfoEntity::getAdcd, id);
|
|
queryWrapper.eq(RegionInfoEntity::getAdcd, id);
|
|
|
boolean temp = iBaseInfoRegionService.remove(queryWrapper);
|
|
boolean temp = iBaseInfoRegionService.remove(queryWrapper);
|
|
|
|
|
+ dataTaskManager.deptUpdateTask();
|
|
|
return R.status(temp);
|
|
return R.status(temp);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// @GetMapping("/dict/list")
|
|
|
|
|
-// @ApiOperationSupport(order = 2)
|
|
|
|
|
-// @ApiOperation(value = "分页")
|
|
|
|
|
-// public R<List<DictBiz>> dictList(@RequestParam String code) {
|
|
|
|
|
-// List<DictBiz> dicts = DictBizCache.getList(code);
|
|
|
|
|
-//
|
|
|
|
|
-// return R.data(dicts);
|
|
|
|
|
-// }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 按机构统计测站信息
|
|
|
|
|
- * @return
|
|
|
|
|
- */
|
|
|
|
|
-// @GetMapping("/statistics")
|
|
|
|
|
-// @ApiOperationSupport(order = 2)
|
|
|
|
|
-// @ApiOperation(value = "分页")
|
|
|
|
|
-// public R<List<RtuStatisticsInfoVO>> rtuStatistics() {
|
|
|
|
|
-// List<RtuStatisticsInfoVO> list = new LinkedList<>();
|
|
|
|
|
-// BladeUser user = AuthUtil.getUser();
|
|
|
|
|
-// List<Dept> root = this.deptService.getDeptChild(Func.toLong(user.getDeptId()));
|
|
|
|
|
-//
|
|
|
|
|
-// for (Dept dept : root) {
|
|
|
|
|
-// RtuStatisticsInfoVO rtuStatisticsInfoVO = new RtuStatisticsInfoVO();
|
|
|
|
|
-// rtuStatisticsInfoVO.setId(dept.getId());
|
|
|
|
|
-// rtuStatisticsInfoVO.setOrgName(dept.getDeptName());
|
|
|
|
|
-// LambdaQueryWrapper<RtuInfoEntity> wrapper = Wrappers.<RtuInfoEntity>query().lambda();
|
|
|
|
|
-// wrapper.eq(RtuInfoEntity::getOrgId,dept.getId());
|
|
|
|
|
-// wrapper.eq(RtuInfoEntity::getIsDeleted,0);
|
|
|
|
|
-// Long rtus =rtuBaseInfoService.count(wrapper);
|
|
|
|
|
-// rtuStatisticsInfoVO.setRtuCount(rtus);
|
|
|
|
|
-//
|
|
|
|
|
-// RtuWarningInfoDTO rtuWarningInfoDTO=new RtuWarningInfoDTO();
|
|
|
|
|
-// rtuWarningInfoDTO.setOrgId(dept.getId());
|
|
|
|
|
-// Long warningRtus = rtuWarningService.warningRtuCount(rtuWarningInfoDTO);
|
|
|
|
|
-// rtuStatisticsInfoVO.setWarningRtuCount(warningRtus);
|
|
|
|
|
-//
|
|
|
|
|
-// list.add(rtuStatisticsInfoVO);
|
|
|
|
|
-// }
|
|
|
|
|
-//
|
|
|
|
|
-// return R.data(list);
|
|
|
|
|
- //}
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 新增或修改
|
|
|
|
|
|
|
+ * 从宏图数据导入
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/import")
|
|
@PostMapping("/import")
|
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@@ -433,12 +320,8 @@ public class BaseInfoRegionController extends BladeController {
|
|
|
updateWrapper.eq(RegionInfoEntity::getIsDeleted, 0);
|
|
updateWrapper.eq(RegionInfoEntity::getIsDeleted, 0);
|
|
|
iBaseInfoRegionService.remove(updateWrapper);
|
|
iBaseInfoRegionService.remove(updateWrapper);
|
|
|
}
|
|
}
|
|
|
- // LambdaQueryWrapper<EtlAdCdEntity> wrapper = Wrappers.<EtlAdCdEntity>query().lambda();
|
|
|
|
|
- //wrapper.eq(EtlAdCdEntity::getSuperioradcd, "0");
|
|
|
|
|
List<EtlAdCdEntity> list = etlAdCdService.selectList("0");
|
|
List<EtlAdCdEntity> list = etlAdCdService.selectList("0");
|
|
|
-
|
|
|
|
|
if (null != list && list.size() == 1) {
|
|
if (null != list && list.size() == 1) {
|
|
|
-
|
|
|
|
|
String code = list.get(0).getAdcd();
|
|
String code = list.get(0).getAdcd();
|
|
|
LambdaQueryWrapper<RegionInfoEntity> requestWrapper = Wrappers.<RegionInfoEntity>query().lambda();
|
|
LambdaQueryWrapper<RegionInfoEntity> requestWrapper = Wrappers.<RegionInfoEntity>query().lambda();
|
|
|
requestWrapper.eq(RegionInfoEntity::getAdcd, code);
|
|
requestWrapper.eq(RegionInfoEntity::getAdcd, code);
|
|
@@ -459,6 +342,7 @@ public class BaseInfoRegionController extends BladeController {
|
|
|
}
|
|
}
|
|
|
importAdcd(regionInfoDTO.getRegionLevel(), 2, code, "00," + code);
|
|
importAdcd(regionInfoDTO.getRegionLevel(), 2, code, "00," + code);
|
|
|
}
|
|
}
|
|
|
|
|
+ dataTaskManager.deptUpdateTask();
|
|
|
return R.status(true);
|
|
return R.status(true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -466,12 +350,8 @@ public class BaseInfoRegionController extends BladeController {
|
|
|
if (currLevel > level) {
|
|
if (currLevel > level) {
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
-// LambdaQueryWrapper<EtlAdCdEntity> wrapper = Wrappers.<EtlAdCdEntity>query().lambda();
|
|
|
|
|
-// wrapper.eq(EtlAdCdEntity::getSuperioradcd, parentCode);
|
|
|
|
|
List<EtlAdCdEntity> list = etlAdCdService.selectList(parentCode);
|
|
List<EtlAdCdEntity> list = etlAdCdService.selectList(parentCode);
|
|
|
-
|
|
|
|
|
if (null != list && list.size() > 0) {
|
|
if (null != list && list.size() > 0) {
|
|
|
-
|
|
|
|
|
for (EtlAdCdEntity adCdEntity : list) {
|
|
for (EtlAdCdEntity adCdEntity : list) {
|
|
|
LambdaQueryWrapper<RegionInfoEntity> requestWrapper = Wrappers.<RegionInfoEntity>query().lambda();
|
|
LambdaQueryWrapper<RegionInfoEntity> requestWrapper = Wrappers.<RegionInfoEntity>query().lambda();
|
|
|
requestWrapper.eq(RegionInfoEntity::getAdcd, adCdEntity.getAdcd());
|
|
requestWrapper.eq(RegionInfoEntity::getAdcd, adCdEntity.getAdcd());
|
|
@@ -490,11 +370,8 @@ public class BaseInfoRegionController extends BladeController {
|
|
|
regionInfoEntity.setIsDeleted(0);
|
|
regionInfoEntity.setIsDeleted(0);
|
|
|
iBaseInfoRegionService.save(regionInfoEntity);
|
|
iBaseInfoRegionService.save(regionInfoEntity);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
importAdcd(level, currLevel + 1, adCdEntity.getAdcd(), ancestors + "," + adCdEntity.getAdcd());
|
|
importAdcd(level, currLevel + 1, adCdEntity.getAdcd(), ancestors + "," + adCdEntity.getAdcd());
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|