| | |
| | | |
| | | import org.jeecg.modules.dnc.utils.file.FileUtilS; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.jeecg.modules.mdc.entity.MdcEquipment; |
| | | import org.jeecg.modules.mdc.service.IMdcEquipmentService; |
| | | import org.jeecg.modules.system.service.IMdcProductionService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | private String localFilePath; |
| | | @Autowired |
| | | private IDncPassLogService dncPassLogService; |
| | | @Autowired |
| | | private IMdcEquipmentService iMdcEquipmentService; |
| | | @Autowired |
| | | private IMdcProductionService iMdcProductionService; |
| | | |
| | | |
| | | @Override |
| | |
| | | |
| | | if (b && docRel) { |
| | | DocInfo info = docInfoMapper.selectById(docId); |
| | | //todo 修改为mdc设备 |
| | | DeviceInfo deviceInfo = deviceInfoService.getById(attrId); |
| | | List<String> strings = deviceGroupService.findListParentTreeAll(deviceInfo.getGroupId()); |
| | | if (strings != null && !strings.isEmpty()) { |
| | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public List<DeviceInfo> findDeviceByDocId(String docId) { |
| | | public List<MdcEquipment> findDeviceByDocId(String docId) { |
| | | if(!ValidateUtil.validateString(docId)) |
| | | ExceptionCast.cast(CommonCode.INVALID_PARAM); |
| | | return super.getBaseMapper().findDeviceByDocId(docId); |