From 55504f5198ed92d779a68f36d76125d064d184df Mon Sep 17 00:00:00 2001 From: "java_cuibaocheng@163.com" Date: Sun, 26 Nov 2023 21:54:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=8F=A3=E5=9F=BA=E6=9C=AC=E4=BF=A1?= =?UTF-8?q?=E6=81=AF-=20=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=BA=BA=E5=8F=A3?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E8=B7=B3=E8=BD=AC=E9=A1=B5=E9=9D=A2=20?= =?UTF-8?q?=E4=BA=BA=E5=8F=A3=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF-=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86creator=5Farea1=E5=AD=97=E6=AE=B5(?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BA=BA=E6=89=80=E5=9C=A8=E8=A1=97=E9=81=93?= =?UTF-8?q?)=20=E4=BA=BA=E5=8F=A3=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF-=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E6=9F=A5=E7=9C=8B=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E6=8C=89=E9=92=AE=E9=A1=B5=E9=9D=A2=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../populationinfo/impl/PopulationInfoServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/cm/population/service/populationinfo/impl/PopulationInfoServiceImpl.java b/src/main/java/com/cm/population/service/populationinfo/impl/PopulationInfoServiceImpl.java index ee67eef..e6b314a 100644 --- a/src/main/java/com/cm/population/service/populationinfo/impl/PopulationInfoServiceImpl.java +++ b/src/main/java/com/cm/population/service/populationinfo/impl/PopulationInfoServiceImpl.java @@ -97,7 +97,10 @@ public class PopulationInfoServiceImpl extends AbstractService implements IPopul public PopulationInfoAreaDTO getCreatorArea(String creator) { PopulationInfoAreaDTO dto = populationInfoDao.getCreatorArea(creator); if (dto == null) { - return new PopulationInfoAreaDTO(); + // 如果没有 , 默认归属到稀土路街道 + PopulationInfoAreaDTO dto1 = new PopulationInfoAreaDTO(); + dto1.setAreaName("稀土路街道"); + dto1.setAreaId("7ed23f06-566d-43b7-acd9-4f0b5db08974"); } return dto; }