|
@@ -177,12 +177,12 @@ public class ExtendContentServiceImpl extends ServiceImpl<ExtendContentMapper, E
|
177
|
177
|
//一个城市、项目只能有一个开屏广告
|
178
|
178
|
if (extendContent.getStatus() == 1 && CommConstant.OPEN_SCREEN.equals(extendContent.getShowType())){
|
179
|
179
|
QueryWrapper<ExtendContent> taExtendContentQueryWrapper = new QueryWrapper<>();
|
180
|
|
- if (extendContent.getCityId() == null){
|
181
|
|
- TaBuilding taBuilding = taBuildingMapper.selectBuilding(extendContent.getBuildingId());
|
182
|
|
- taExtendContentQueryWrapper.eq("city_id", taBuilding.getCityId());
|
183
|
|
- }else{
|
184
|
|
- taExtendContentQueryWrapper.eq("city_id", extendContent.getCityId());
|
185
|
|
- }
|
|
180
|
+// if (extendContent.getCityId() == null){
|
|
181
|
+// TaBuilding taBuilding = taBuildingMapper.selectBuilding(extendContent.getBuildingId());
|
|
182
|
+// taExtendContentQueryWrapper.eq("city_id", taBuilding.getCityId());
|
|
183
|
+// }else{
|
|
184
|
+// taExtendContentQueryWrapper.eq("city_id", extendContent.getCityId());
|
|
185
|
+// }
|
186
|
186
|
|
187
|
187
|
taExtendContentQueryWrapper.eq("org_id", orgId);
|
188
|
188
|
taExtendContentQueryWrapper.eq("status", 1);
|
|
@@ -192,9 +192,9 @@ public class ExtendContentServiceImpl extends ServiceImpl<ExtendContentMapper, E
|
192
|
192
|
taExtendContentQueryWrapper.ne("content_id", extendContent.getContentId());
|
193
|
193
|
}
|
194
|
194
|
// taExtendContentQueryWrapper.eq(StringUtils.isNotBlank(String.valueOf(extendContent.getIsHaveActive())), "is_have_active", extendContent.getIsHaveActive());
|
195
|
|
- if (null != extendContent.getIsHaveActive() && CommConstant.BANNER_BUILDING.equals(extendContent.getShowPosition())){
|
196
|
|
- taExtendContentQueryWrapper.eq(StringUtils.isNotBlank(extendContent.getBuildingId()), "building_id", extendContent.getBuildingId());
|
197
|
|
- }
|
|
195
|
+// if (null != extendContent.getIsHaveActive() && CommConstant.BANNER_BUILDING.equals(extendContent.getShowPosition())){
|
|
196
|
+// taExtendContentQueryWrapper.eq(StringUtils.isNotBlank(extendContent.getBuildingId()), "building_id", extendContent.getBuildingId());
|
|
197
|
+// }
|
198
|
198
|
List<ExtendContent> extContentInfo = extendContentMapper.selectList(taExtendContentQueryWrapper);
|
199
|
199
|
if (!Collections.isEmpty(extContentInfo)){
|
200
|
200
|
return false;
|