|
|
@@ -8,6 +8,7 @@ import cn.hutool.json.JSONArray;
|
|
|
import cn.hutool.json.JSONObject;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
+import com.plumelog.core.util.LogExceptionStackTrace;
|
|
|
import com.webflux.launchadmin.global.BaseException;
|
|
|
import com.webflux.launchadmin.mysql.controller.planNew.req.*;
|
|
|
import com.webflux.launchadmin.mysql.controller.planNew.res.*;
|
|
|
@@ -25,6 +26,7 @@ import com.webflux.launchcommon.returnObj.RStatus;
|
|
|
import jakarta.annotation.Resource;
|
|
|
import jakarta.json.Json;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang3.exception.ExceptionUtils;
|
|
|
import org.springframework.data.domain.Sort;
|
|
|
import org.springframework.data.r2dbc.core.R2dbcEntityTemplate;
|
|
|
import org.springframework.data.redis.core.ReactiveRedisTemplate;
|
|
|
@@ -84,8 +86,8 @@ public class PlanNewCommonOutController {
|
|
|
@GetMapping("getPlanNewCommonH5")
|
|
|
public Mono<RStatus<byte[]>> getPlanNewCommonH5(@RequestParam("code") String code) {
|
|
|
Mono<PlanNewCommon> planNewCommonMono = template.selectOne(Query.query(Criteria.where("code").is(code)), PlanNewCommon.class)
|
|
|
- .switchIfEmpty(Mono.error(new BaseException("计划code异常")))
|
|
|
- .onErrorResume(throwable -> Mono.error(new Exception(throwable.getMessage() + "1")));
|
|
|
+ .switchIfEmpty(Mono.error(new BaseException("计划code异常:" + ExceptionUtils.getStackTrace(new Exception()))))
|
|
|
+ .onErrorResume(throwable -> Mono.error(new Exception(LogExceptionStackTrace.erroStackTrace(throwable).toString())));
|
|
|
Mono<PlanNewCommonRes> resMono = planNewCommonMono.flatMap(f -> {
|
|
|
// 群成员
|
|
|
Mono<List<GroupUserRes>> groupUserResMono = Mono.just(new ArrayList<>());
|