From 3da84ec4b17298eea27da3fd323e73a061fc3ce7 Mon Sep 17 00:00:00 2001 From: OTTO <731554297@qq.com> Date: Thu, 5 Sep 2024 15:45:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=88=B6=E5=93=81=E5=BA=93=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=AE=8C=E5=96=84):=20=E5=BF=AB=E7=85=A7=E5=BA=93?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3=E9=9C=80=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=BF=AB=E7=85=A7=E5=BA=93=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/PmsProductLibrarySnapshotController.java | 2 +- .../service/IPmsProductLibrarySnapshotRepoService.java | 3 +-- .../impl/PmsProductLibrarySnapshotRepoServiceImpl.java | 5 ++--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/microservices-modules/microservices-modules-pms/src/main/java/com/microservices/pms/productLibrary/controller/PmsProductLibrarySnapshotController.java b/microservices-modules/microservices-modules-pms/src/main/java/com/microservices/pms/productLibrary/controller/PmsProductLibrarySnapshotController.java index a7805784d..b4e82a782 100644 --- a/microservices-modules/microservices-modules-pms/src/main/java/com/microservices/pms/productLibrary/controller/PmsProductLibrarySnapshotController.java +++ b/microservices-modules/microservices-modules-pms/src/main/java/com/microservices/pms/productLibrary/controller/PmsProductLibrarySnapshotController.java @@ -40,7 +40,7 @@ public class PmsProductLibrarySnapshotController extends BaseController { // @RequiresPermissions("pms:pmsProductLibraryRepositories:list") @GetMapping("/byRepoName/{repoName}/{snapshotName}") @ApiOperation(value = "获取快照库详情") - public GenericsAjaxResult getSnapshotByRepoName(@PathVariable String enterpriseIdentifier, + public GenericsAjaxResult getSnapshotByRepoName(@PathVariable String enterpriseIdentifier, @ApiParam(value = "制品库标识", required = true) @PathVariable String repoName, @ApiParam(value = "快照库标识", required = true) @PathVariable String snapshotName) { return GenericsAjaxResult.success(pmsProductLibrarySnapshotRepoService.selectPmsProductLibrarySnapshotDataByName(enterpriseIdentifier, repoName, snapshotName)); diff --git a/microservices-modules/microservices-modules-pms/src/main/java/com/microservices/pms/productLibrary/service/IPmsProductLibrarySnapshotRepoService.java b/microservices-modules/microservices-modules-pms/src/main/java/com/microservices/pms/productLibrary/service/IPmsProductLibrarySnapshotRepoService.java index 6da714635..7ba983330 100644 --- a/microservices-modules/microservices-modules-pms/src/main/java/com/microservices/pms/productLibrary/service/IPmsProductLibrarySnapshotRepoService.java +++ b/microservices-modules/microservices-modules-pms/src/main/java/com/microservices/pms/productLibrary/service/IPmsProductLibrarySnapshotRepoService.java @@ -2,7 +2,6 @@ package com.microservices.pms.productLibrary.service; import com.microservices.common.core.web.page.GenericsTableDataInfo; import com.microservices.pms.productLibrary.domain.PmsProductLibraryRepositories; -import com.microservices.pms.productLibrary.domain.vo.PmsProductLibraryRepositoriesDataVo; import com.microservices.pms.productLibrary.domain.vo.PmsProductLibrarySnapshotSimpleVo; import com.microservices.pms.productLibrary.domain.vo.ProductRepositoriesSnapshotInputVo; @@ -21,7 +20,7 @@ public interface IPmsProductLibrarySnapshotRepoService { */ Long insertPmsProductLibrarySnapshot(ProductRepositoriesSnapshotInputVo productRepositoriesSnapshotInputVo); - PmsProductLibraryRepositoriesDataVo selectPmsProductLibrarySnapshotDataByName(String enterpriseIdentifier, String repoName, String snapshotName); + PmsProductLibrarySnapshotSimpleVo selectPmsProductLibrarySnapshotDataByName(String enterpriseIdentifier, String repoName, String snapshotName); PmsProductLibraryRepositories selectPmsProductLibrarySnapshotByName(String enterpriseIdentifier, String repoName, String snapshotName); diff --git a/microservices-modules/microservices-modules-pms/src/main/java/com/microservices/pms/productLibrary/service/impl/PmsProductLibrarySnapshotRepoServiceImpl.java b/microservices-modules/microservices-modules-pms/src/main/java/com/microservices/pms/productLibrary/service/impl/PmsProductLibrarySnapshotRepoServiceImpl.java index de68ca285..f0124bf58 100644 --- a/microservices-modules/microservices-modules-pms/src/main/java/com/microservices/pms/productLibrary/service/impl/PmsProductLibrarySnapshotRepoServiceImpl.java +++ b/microservices-modules/microservices-modules-pms/src/main/java/com/microservices/pms/productLibrary/service/impl/PmsProductLibrarySnapshotRepoServiceImpl.java @@ -9,7 +9,6 @@ import com.microservices.common.security.utils.SecurityUtils; import com.microservices.pms.productLibrary.domain.PmsProductLibraryRepositories; import com.microservices.pms.productLibrary.domain.ProductLibraryRepositoriesFormatEnum; import com.microservices.pms.productLibrary.domain.vo.NexusHostedRepoInputVo; -import com.microservices.pms.productLibrary.domain.vo.PmsProductLibraryRepositoriesDataVo; import com.microservices.pms.productLibrary.domain.vo.PmsProductLibrarySnapshotSimpleVo; import com.microservices.pms.productLibrary.domain.vo.ProductRepositoriesSnapshotInputVo; import com.microservices.pms.productLibrary.mapper.PmsProductLibraryRepositoriesMapper; @@ -70,10 +69,10 @@ public class PmsProductLibrarySnapshotRepoServiceImpl implements IPmsProductLibr } @Override - public PmsProductLibraryRepositoriesDataVo selectPmsProductLibrarySnapshotDataByName(String enterpriseIdentifier, String repoName, String snapshotName) { + public PmsProductLibrarySnapshotSimpleVo selectPmsProductLibrarySnapshotDataByName(String enterpriseIdentifier, String repoName, String snapshotName) { PmsProductLibraryRepositories pmsProductLibraryRepositories = selectPmsProductLibrarySnapshotByName(enterpriseIdentifier, repoName, snapshotName); - return pmsProductLibraryRepositories.toPmsProductLibraryRepositoriesDataVo(); + return pmsProductLibraryRepositories.toPmsProductLibrarySnapshotSimpleVo(); }