| | |
| | | import org.jeecg.modules.dnc.service.IDocFileService; |
| | | import org.jeecg.modules.dnc.service.IDocInfoService; |
| | | import org.jeecg.modules.dnc.service.IDocRelativeService; |
| | | import org.jeecg.modules.mdc.entity.MdcEquipment; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | if(docFile == null) { |
| | | ExceptionCast.cast(DocumentCode.DOC_FILE_ERROR); |
| | | } |
| | | List<DeviceInfo> deviceList = docRelativeService.findDeviceByDocId(docFile.getDocId()); |
| | | List<MdcEquipment> deviceList = docRelativeService.findDeviceByDocId(docFile.getDocId()); |
| | | if(deviceList != null && !deviceList.isEmpty()) |
| | | ExceptionCast.cast(DocumentCode.DOC_DEVICE_EXIST); |
| | | DocInfo docInfo = new DocInfo(); |