feat(制品库功能完善): 快照库详情接口需返回快照库标识
This commit is contained in:
parent
995062087e
commit
3da84ec4b1
|
|
@ -40,7 +40,7 @@ public class PmsProductLibrarySnapshotController extends BaseController {
|
|||
// @RequiresPermissions("pms:pmsProductLibraryRepositories:list")
|
||||
@GetMapping("/byRepoName/{repoName}/{snapshotName}")
|
||||
@ApiOperation(value = "获取快照库详情")
|
||||
public GenericsAjaxResult<PmsProductLibraryRepositoriesDataVo> getSnapshotByRepoName(@PathVariable String enterpriseIdentifier,
|
||||
public GenericsAjaxResult<PmsProductLibrarySnapshotSimpleVo> 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));
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue