|
@@ -207,8 +207,10 @@ public class ExtendContentController extends BaseController {
|
207
|
207
|
ResponseBean responseBean = new ResponseBean();
|
208
|
208
|
extendContent.setContentId(id);
|
209
|
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
|
214
|
extendContent.setOrgId(getOrgId(request));
|
213
|
215
|
if (iExtendContentService.updateById(extendContent)){
|
214
|
216
|
responseBean.addSuccess(extendContent);
|