From 5a88c6ba9108aef9bf7fdfbea34d5b86bbeffba1 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 09 十一月 2023 15:06:33 +0800
Subject: [PATCH] 完善行政区划代码
---
pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/district/DistrictSv.java | 12 ++++++------
pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/district/DistrictCtrl.java | 1 -
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/district/DistrictCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/district/DistrictCtrl.java
index eeb3fb0..3377625 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/district/DistrictCtrl.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/district/DistrictCtrl.java
@@ -79,7 +79,6 @@
return BaseResponseUtils.buildSuccess(list);
}
-
/**
* 淇濆瓨琛屾斂鍖�
* @param vo 淇濆瓨琛屾斂鍖篺orm琛ㄥ崟瀵硅薄
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/district/DistrictSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/district/DistrictSv.java
index 27c5a85..c42e5d6 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/district/DistrictSv.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/district/DistrictSv.java
@@ -12,16 +12,16 @@
@Service
public class DistrictSv {
- private BaDistrictMapper baDistrictMapper ;
+ private BaDistrictMapper dao;
@Autowired
- private void setBaDistrictMapper(BaDistrictMapper baDistrictMapper){
- this.baDistrictMapper = baDistrictMapper ;
+ private void setDao(BaDistrictMapper dao){
+ this.dao = dao;
}
public int save(BaDistrict po){
- return this.baDistrictMapper.insert(po) ;
+ return this.dao.insert(po) ;
}
/**
@@ -30,7 +30,7 @@
* @return 鎵�鏈夎鏀垮尯鍒掗泦鍚�
*/
public List<BaDistrict> getAll(byte firstLevel){
- List<BaDistrict> list = this.baDistrictMapper.selectByLevel(firstLevel) ;
+ List<BaDistrict> list = this.dao.selectByLevel(firstLevel) ;
if(list != null && list.size() > 0){
for(BaDistrict po : list){
getSubDistrict(po) ;
@@ -45,7 +45,7 @@
*/
private void getSubDistrict(BaDistrict po){
if(po != null && po.id != null){
- po.subDistricts = this.baDistrictMapper.selectBySupperId(po.id) ;
+ po.subDistricts = this.dao.selectBySupperId(po.id) ;
if(po.subDistricts != null && po.subDistricts.size() > 0){
for(BaDistrict subPo : po.subDistricts){
getSubDistrict(subPo) ;
--
Gitblit v1.8.0