From 1453fe87093b6080dd9088be2875d8c411c9512c Mon Sep 17 00:00:00 2001 From: jianjun Date: Fri, 24 Sep 2021 17:00:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E7=89=88=E5=88=86=E7=B1=BB=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E9=BB=98=E8=AE=A4=E5=AE=A2=E6=88=B7=E5=92=8C=E8=87=AA?= =?UTF-8?q?=E5=B7=B1=E5=AE=A2=E6=88=B7=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cloud/api/web/controller/ProjectTemplateController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tduck-api/src/main/java/com/tduck/cloud/api/web/controller/ProjectTemplateController.java b/tduck-api/src/main/java/com/tduck/cloud/api/web/controller/ProjectTemplateController.java index 8c8a18e..b501dab 100644 --- a/tduck-api/src/main/java/com/tduck/cloud/api/web/controller/ProjectTemplateController.java +++ b/tduck-api/src/main/java/com/tduck/cloud/api/web/controller/ProjectTemplateController.java @@ -69,7 +69,7 @@ public class ProjectTemplateController { public Result queryProjectTemplateTypes(QueryProjectTemplateTypeRequest.List request) { List list = projectTemplateCategoryService.list( Wrappers.lambdaQuery() - .eq(ProjectTemplateCategoryEntity::getCustomerId, LoginUserUtil.get().getCustomerId()) + .and(wq->wq.eq(ProjectTemplateCategoryEntity::getCustomerId, CommonConstants.DEFAULT_EPMET_CUSTOMER_ID).or().eq(ProjectTemplateCategoryEntity::getCustomerId, LoginUserUtil.get().getCustomerId())) .orderByDesc(ProjectTemplateCategoryEntity::getSort)); return Result.success(list); }