MOKASZ\lw12420 hace 1 año
padre
commit
443e491199

+ 2 - 2
launch-admin/src/main/java/com/webflux/launchadmin/mysql/controller/planNew/PlanNewCommonOutController.java

@@ -764,7 +764,7 @@ public class PlanNewCommonOutController {
             Mono<List<Ad>> adtop ;
             Mono<List<Ad>> adtop ;
             if (Objects.nonNull(request.getTopAdvBl()) && request.getTopAdvBl()) {
             if (Objects.nonNull(request.getTopAdvBl()) && request.getTopAdvBl()) {
                 if(6==plan.type()){
                 if(6==plan.type()){
-                    adtop = template.select(Query.query(Criteria.where("type").is(1).and("group_type_id").is(plan.groupId())
+                    adtop = template.select(Query.query(Criteria.where("type").is(1) //.and("group_type_id").is(plan.groupId())
                             .and("deleted_at").isNull()).columns("id,name,type,image,show_beg_at,show_end_at,link".split(",")), Ad.class)
                             .and("deleted_at").isNull()).columns("id,name,type,image,show_beg_at,show_end_at,link".split(",")), Ad.class)
                             .switchIfEmpty(Mono.error(new BaseException(StrUtil.format("通过计划营销分类:{};查询顶部广告返回结果为空",plan.groupId()))))
                             .switchIfEmpty(Mono.error(new BaseException(StrUtil.format("通过计划营销分类:{};查询顶部广告返回结果为空",plan.groupId()))))
                             .onErrorResume(throwable -> Mono.error(new BaseException(throwable.getMessage()+"4")))
                             .onErrorResume(throwable -> Mono.error(new BaseException(throwable.getMessage()+"4")))
@@ -782,7 +782,7 @@ public class PlanNewCommonOutController {
             Mono<List<Ad>> adBottom ;
             Mono<List<Ad>> adBottom ;
             if (Objects.nonNull(request.getBottomAdvBl()) && request.getBottomAdvBl()) {
             if (Objects.nonNull(request.getBottomAdvBl()) && request.getBottomAdvBl()) {
                 if (6 == plan.type()) {
                 if (6 == plan.type()) {
-                    adBottom = template.select(Query.query(Criteria.where("type").is(2).and("group_type_id").is(plan.groupId())
+                    adBottom = template.select(Query.query(Criteria.where("type").is(2) //.and("group_type_id").is(plan.groupId())
                             .and("deleted_at").isNull()).columns("id,name,type,image,show_beg_at,show_end_at,link".split(",")), Ad.class)
                             .and("deleted_at").isNull()).columns("id,name,type,image,show_beg_at,show_end_at,link".split(",")), Ad.class)
                             .switchIfEmpty(Mono.error(new BaseException(StrUtil.format("通过计划营销分类:{};查询底部广告返回结果为空",plan.groupId()))))
                             .switchIfEmpty(Mono.error(new BaseException(StrUtil.format("通过计划营销分类:{};查询底部广告返回结果为空",plan.groupId()))))
                             .onErrorResume(throwable -> Mono.error(new BaseException(throwable.getMessage()+"4")))
                             .onErrorResume(throwable -> Mono.error(new BaseException(throwable.getMessage()+"4")))