|
@@ -322,7 +322,8 @@ public class PlanNewCommonOutController {
|
|
|
Mono<String> stringMono2 = template.select(Query.query(Criteria
|
|
Mono<String> stringMono2 = template.select(Query.query(Criteria
|
|
|
.where("group_type_id").is(f.landingPageDomain())
|
|
.where("group_type_id").is(f.landingPageDomain())
|
|
|
.and("status").is(1)
|
|
.and("status").is(1)
|
|
|
- .and("type").is(request.getType())), DomainSelect.class)
|
|
|
|
|
|
|
+ .and("type").is(request.getType())
|
|
|
|
|
+ .and("deleted_at").isNull()), DomainSelect.class)
|
|
|
.switchIfEmpty(Mono.error(new BaseException("查询domain 返回结果为空")))
|
|
.switchIfEmpty(Mono.error(new BaseException("查询domain 返回结果为空")))
|
|
|
.onErrorResume(throwable -> Mono.error(new Exception(throwable.getMessage()))).collectList().flatMap(fm -> {
|
|
.onErrorResume(throwable -> Mono.error(new Exception(throwable.getMessage()))).collectList().flatMap(fm -> {
|
|
|
// DomainSelectRes domainSelectRes = new DomainSelectRes();
|
|
// DomainSelectRes domainSelectRes = new DomainSelectRes();
|
|
@@ -355,7 +356,8 @@ public class PlanNewCommonOutController {
|
|
|
Mono<DomainSelectRes> domainSelectResMono1 = code1.flatMap(f -> template.select(Query.query(Criteria
|
|
Mono<DomainSelectRes> domainSelectResMono1 = code1.flatMap(f -> template.select(Query.query(Criteria
|
|
|
.where("group_type_id").is(f.groupId())
|
|
.where("group_type_id").is(f.groupId())
|
|
|
.and("status").is(1)
|
|
.and("status").is(1)
|
|
|
- .and("type").is(request.getType())), DomainSelect.class)
|
|
|
|
|
|
|
+ .and("type").is(request.getType())
|
|
|
|
|
+ .and("deleted_at").isNull()), DomainSelect.class)
|
|
|
.switchIfEmpty(Mono.error(new BaseException("查询domain 返回结果为空")))
|
|
.switchIfEmpty(Mono.error(new BaseException("查询domain 返回结果为空")))
|
|
|
.onErrorResume(throwable -> Mono.error(new Exception(throwable.getMessage()))).collectList()
|
|
.onErrorResume(throwable -> Mono.error(new Exception(throwable.getMessage()))).collectList()
|
|
|
.flatMap(fm -> {
|
|
.flatMap(fm -> {
|
|
@@ -379,7 +381,8 @@ public class PlanNewCommonOutController {
|
|
|
if (StrUtil.isBlank(request.getLandingPageDomain()) || request.getLandingPageDomain().trim().isEmpty()) {
|
|
if (StrUtil.isBlank(request.getLandingPageDomain()) || request.getLandingPageDomain().trim().isEmpty()) {
|
|
|
stringMono = Mono.just(" ");
|
|
stringMono = Mono.just(" ");
|
|
|
} else {
|
|
} else {
|
|
|
- stringMono = template.select(Query.query(Criteria.where("group_type_id").is(request.getLandingPageDomain())
|
|
|
|
|
|
|
+ stringMono = template.select(Query.query(Criteria
|
|
|
|
|
+ .where("group_type_id").is(request.getLandingPageDomain())
|
|
|
.and("status").is(1)
|
|
.and("status").is(1)
|
|
|
.and("deleted_at").isNull()
|
|
.and("deleted_at").isNull()
|
|
|
.and("type").is(request.getType())), DomainSelect.class)
|
|
.and("type").is(request.getType())), DomainSelect.class)
|