|
|
|
@ -44,7 +44,8 @@ public class PackagesController {
|
|
|
|
|
@Operation(summary = "创建装册")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('archives:packages:create')")
|
|
|
|
|
public CommonResult<Long> 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("该全宗号-目录号-案卷号已存在!请勿重复装册!");
|
|
|
|
|
}
|
|
|
|
|