|
|
|
|
207
|
ResponseBean responseBean = new ResponseBean();
|
207
|
ResponseBean responseBean = new ResponseBean();
|
208
|
extendContent.setContentId(id);
|
208
|
extendContent.setContentId(id);
|
209
|
try {
|
209
|
try {
|
210
|
- Integer cityId = iTaBuildingService.getCityById(extendContent.getBuildingId());
|
|
|
211
|
- extendContent.setCityId(cityId);
|
|
|
|
|
210
|
+ if (extendContent.getCityId() == null){
|
|
|
211
|
+ Integer cityId = iTaBuildingService.getCityById(extendContent.getBuildingId());
|
|
|
212
|
+ extendContent.setCityId(cityId);
|
|
|
213
|
+ }
|
212
|
extendContent.setOrgId(getOrgId(request));
|
214
|
extendContent.setOrgId(getOrgId(request));
|
213
|
if (iExtendContentService.updateById(extendContent)){
|
215
|
if (iExtendContentService.updateById(extendContent)){
|
214
|
responseBean.addSuccess(extendContent);
|
216
|
responseBean.addSuccess(extendContent);
|