From e52ddfe8caf7d0027950033a5aff2a1fd3482e9d Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 01 六月 2022 17:50:25 +0800
Subject: [PATCH] 优化装修 跟踪记录 回显
---
service-user/src/main/java/com/java110/user/cmd/owner/OwnerRegisterCmd.java | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/service-user/src/main/java/com/java110/user/cmd/owner/OwnerRegisterCmd.java b/service-user/src/main/java/com/java110/user/cmd/owner/OwnerRegisterCmd.java
index f4e516a..ec4e4f4 100644
--- a/service-user/src/main/java/com/java110/user/cmd/owner/OwnerRegisterCmd.java
+++ b/service-user/src/main/java/com/java110/user/cmd/owner/OwnerRegisterCmd.java
@@ -29,7 +29,7 @@
import com.java110.utils.util.StringUtil;
import com.java110.vo.ResultVo;
import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import com.java110.core.log.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
@@ -122,15 +122,28 @@
}
private void addOwnerAppUser(JSONObject paramInJson, List<OwnerDto> ownerDtos) {
+ List<CommunityDto> communityDtos = null;
+ CommunityDto tmpCommunityDto = null;
+ String communityName = "鏃�";
+
if (ownerDtos == null || ownerDtos.size() < 1) {
+ CommunityDto communityDto = new CommunityDto();
+ communityDto.setState("1100");
+ communityDto.setCommunityId(paramInJson.getString("defaultCommunityId"));
+ communityDto.setPage(1);
+ communityDto.setRow(1);
+ communityDtos = communityInnerServiceSMOImpl.queryCommunitys(communityDto);
+ if (communityDtos != null && communityDtos.size() > 0) {
+ communityName = communityDtos.get(0).getName();
+ }
OwnerAppUserPo ownerAppUserPo = BeanConvertUtil.covertBean(paramInJson, OwnerAppUserPo.class);
//鐘舵�佺被鍨嬶紝10000 瀹℃牳涓紝12000 瀹℃牳鎴愬姛锛�13000 瀹℃牳澶辫触
ownerAppUserPo.setState("12000");
ownerAppUserPo.setAppTypeCd("10010");
ownerAppUserPo.setAppUserId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_appUserId));
ownerAppUserPo.setMemberId("-1");
- ownerAppUserPo.setCommunityName("-1");
- ownerAppUserPo.setCommunityId("鏃�");
+ ownerAppUserPo.setCommunityName(communityName);
+ ownerAppUserPo.setCommunityId(paramInJson.getString("defaultCommunityId"));
ownerAppUserPo.setAppUserName("娓稿");
ownerAppUserPo.setIdCard("鏃�");
@@ -140,8 +153,7 @@
}
return;
}
- List<CommunityDto> communityDtos = null;
- CommunityDto tmpCommunityDto = null;
+
OwnerAppUserPo ownerAppUserPo = null;
for (OwnerDto ownerDto : ownerDtos) {
CommunityDto communityDto = new CommunityDto();
--
Gitblit v1.8.0