lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/service/impl/DocFileServiceImpl.java
@@ -16,6 +16,7 @@
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;
@@ -86,7 +87,7 @@
        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();