Просмотр исходного кода

接口返回的信息中非关键信息隐藏,比如记录创建时间,更新时间,操作人,创建人信息 3

(cherry picked from commit ba5ee44a522e6e0fdc3ebe185073459bf96eadbb)
MOKASZ\lw12420 1 год назад
Родитель
Сommit
9c9fa01a62

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

@@ -566,7 +566,8 @@ public class PlanNewOutController {
         if (request.getCode() == null || request.getCode().isEmpty()) {
             throw new BaseException("code不能为空");
         }
-        Mono<PlanNew> code0 = template.selectOne(Query.query(Criteria.where("code").is(request.getCode())), PlanNew.class)
+        Mono<PlanNew> code0 = template.selectOne(Query.query(Criteria.where("code").is(request.getCode()))
+                .columns(COLUMNARRAYPLANNEW), PlanNew.class)
                 .switchIfEmpty(Mono.error(new BaseException(" code错误")))
                 .onErrorResume(throwable -> Mono.error(new BaseException(throwable.getMessage())));
         // 获取用户访问次数