diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/packages/PackagesController.java b/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/packages/PackagesController.java index 05d5de3b..fc8b013e 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/packages/PackagesController.java +++ b/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/packages/PackagesController.java @@ -44,7 +44,8 @@ public class PackagesController { @Operation(summary = "创建装册") @PreAuthorize("@ss.hasPermission('archives:packages:create')") public CommonResult createPackages(@Valid @RequestBody PackagesCreateReqVO createReqVO) { - PackagesDO packages = packagesService.getByCodeValue(createReqVO.getCodeValue()); + String codeVaule = createReqVO.getCaseNum()+"-"+createReqVO.getCatalogNum()+"-"+createReqVO.getFilesNum(); + PackagesDO packages = packagesService.getByCodeValue(codeVaule); if (packages != null){ return error("该全宗号-目录号-案卷号已存在!请勿重复装册!"); }