|
|
@@ -173,6 +173,9 @@ public class PlanNewCommonOutController {
|
|
|
*/
|
|
|
@PostMapping("kefuList")
|
|
|
public Mono<RStatus<byte[]>> kefuList(@RequestBody KefuRequest request) {
|
|
|
+ if (null == request.getCode() || request.getCode().isEmpty()) {
|
|
|
+ return Mono.error(new BaseException("code为空"));
|
|
|
+ }
|
|
|
Mono<PlanNewCommon> code = template.selectOne(Query.query(Criteria.where("code").is(request.getCode())), PlanNewCommon.class)
|
|
|
.switchIfEmpty(Mono.error(new BaseException("code查询返回结构为空")))
|
|
|
.onErrorResume(throwable -> Mono.error(new BaseException("code查询返回结构为空")));
|
|
|
@@ -262,6 +265,9 @@ public class PlanNewCommonOutController {
|
|
|
*/
|
|
|
@PostMapping("domainSelect")
|
|
|
public Mono<RStatus<DomainSelectRes>> domainSelect(@RequestBody OutDomainRequest request) {
|
|
|
+ if (null == request.getCode() || request.getCode().isEmpty()) {
|
|
|
+ return Mono.error(new BaseException("code为空"));
|
|
|
+ }
|
|
|
if (1 == request.getTypePlan()) {
|
|
|
// 加群裂变
|
|
|
return this.getPlanNew(request);
|
|
|
@@ -496,6 +502,9 @@ public class PlanNewCommonOutController {
|
|
|
*/
|
|
|
@PostMapping("getCommonMaterial")
|
|
|
public Mono<RStatus<PlanNewCommonMaterialRes>> getCommonMaterial(@RequestBody PlanNewCommonMaterialReq request) {
|
|
|
+ if (null == request.getCode() || request.getCode().isEmpty()) {
|
|
|
+ return Mono.error(new BaseException("code为空"));
|
|
|
+ }
|
|
|
Mono<PlanNewCommon> planNewCommonMono = template.selectOne(Query.query(Criteria.where("code").is(request.getCode())), PlanNewCommon.class)
|
|
|
.switchIfEmpty(Mono.error(new BaseException("计划code异常 返回结果为空")))
|
|
|
.onErrorResume(throwable -> Mono.error(new BaseException("计划code异常")));
|