| | |
| | | validateParams(stream); |
| | | DocInfo docInfo = getDocInfo(stream); |
| | | MdcEquipment mdcEquipment = getMdcEquipment(stream); |
| | | DocFile docFile = docFileService.getById(stream.getFileId()); |
| | | DocInfo deviceDoc = docInfoService.getByDocAttrAndDocId(stream.getDocId(), 7, stream.getDeviceId()); |
| | | if (deviceDoc != null) { |
| | | handleExistingDeviceDoc(docInfo,docFile, mdcEquipment, stream.getDeviceId()); |
| | | return Result.error("存在相同文档,不允许重复指派,请删除后指派"); |
| | | } |
| | | deviceDoc = docInfoService.findByAttrAndDocName(docInfo.getDocName(), 7, stream.getDeviceId()); |
| | | if (deviceDoc != null) { |
| | | handleExistingDeviceDoc(docInfo,docFile, mdcEquipment, stream.getDeviceId()); |
| | | return Result.error("存在相同文档,不允许重复指派,请删除后指派"); |
| | | } |
| | | PermissionStreamNew permissionStreams = getPermissionStreams(stream); |
| | | if (permissionStreams==null){ |