소스 검색

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

MOKASZ\lw12420 1 년 전
부모
커밋
ba5ee44a52
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      launch-admin/src/main/java/com/webflux/launchadmin/mysql/controller/planNew/PlanNewOutController.java

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

@@ -563,7 +563,8 @@ public class PlanNewOutController {
         if (request.getCode() == null || request.getCode().isEmpty()) {
         if (request.getCode() == null || request.getCode().isEmpty()) {
             throw new BaseException("code不能为空");
             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错误")))
                 .switchIfEmpty(Mono.error(new BaseException(" code错误")))
                 .onErrorResume(throwable -> Mono.error(new BaseException(throwable.getMessage())));
                 .onErrorResume(throwable -> Mono.error(new BaseException(throwable.getMessage())));
         // 获取用户访问次数
         // 获取用户访问次数