|
|
@ -69,7 +69,7 @@ public class ProjectTemplateController { |
|
|
|
public Result queryProjectTemplateTypes(QueryProjectTemplateTypeRequest.List request) { |
|
|
|
List<ProjectTemplateCategoryEntity> list = projectTemplateCategoryService.list( |
|
|
|
Wrappers.<ProjectTemplateCategoryEntity>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); |
|
|
|
} |
|
|
|