装册验证重复

new
JilingLee 1 year ago
parent 9522691720
commit e353b0bdc9

@ -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("该全宗号-目录号-案卷号已存在!请勿重复装册!");
}

Loading…
Cancel
Save