|
@@ -191,7 +191,9 @@ public class ExtendContentServiceImpl extends ServiceImpl<ExtendContentMapper, E
|
191
|
191
|
if (null != extendContent.getContentId()){
|
192
|
192
|
taExtendContentQueryWrapper.ne("content_id", extendContent.getContentId());
|
193
|
193
|
}
|
194
|
|
- taExtendContentQueryWrapper.eq("building_id", extendContent.getBuildingId());
|
|
194
|
+ if (extendContent.getIsHaveActive() != null && extendContent.getIsHaveActive()){
|
|
195
|
+ taExtendContentQueryWrapper.eq(StringUtils.isNotBlank(extendContent.getBuildingId()), "building_id", extendContent.getBuildingId());
|
|
196
|
+ }
|
195
|
197
|
List<ExtendContent> extContentInfo = extendContentMapper.selectList(taExtendContentQueryWrapper);
|
196
|
198
|
if (!Collections.isEmpty(extContentInfo)){
|
197
|
199
|
return false;
|