|
@@ -289,6 +289,8 @@ public class CommunityServiceImpl implements CommunityService {
|
|
|
@Override
|
|
|
public void syncCommunity(CommunityData communityData) {
|
|
|
Integer siteId = organizationMapper.findSiteId(communityData.getCustomerId());
|
|
|
+ Community communityTemp = communityMapper.findById(communityData.getId());
|
|
|
+
|
|
|
Community community = new Community();
|
|
|
community.setId(communityData.getId());
|
|
|
community.setSiteId(siteId);
|
|
@@ -308,6 +310,7 @@ public class CommunityServiceImpl implements CommunityService {
|
|
|
community.setDateUpdate(communityData.getDateUpdate());
|
|
|
community.setCreateBy("system");
|
|
|
community.setUpdateBy("system");
|
|
|
+ community.setOrgId(communityTemp!=null?communityTemp.getOrgId():null);
|
|
|
log.info("syncCommunity community {}", JSON.toJSONString(community));
|
|
|
communityMapper.replaceSelective(community);
|
|
|
|