| | |
| | | String tableName = ""; |
| | | Boolean isTableExist = false; |
| | | if (equip != null) { |
| | | if (StringUtils.isNotBlank(equip.getDrivetype())) { |
| | | tableName = equip.getDrivetype() + "_" + equip.getEquipmentid(); |
| | | if (StringUtils.isNotBlank(equip.getSavetablename())) { |
| | | tableName = equip.getSavetablename(); |
| | | isTableExist = equipmentWorkLineService.isTableExist(tableName); |
| | | } |
| | | } |
| | |
| | | //获取running运行的日志记录 |
| | | List<MdcEquipmentRunningSection> list = this.equipmentRunningTracesLog(equipment.getEquipmentid()); |
| | | if (list != null && !list.isEmpty()) { |
| | | List<MdcEquipmentRunningSection> equipList = addSequenceNumber(list); //添加程序号 |
| | | this.ergodicTrim(equipList); |
| | | super.saveBatch(equipList); |
| | | // List<MdcEquipmentRunningSection> equipList = addSequenceNumber(list); //添加程序号 |
| | | this.ergodicTrim(list); |
| | | super.saveBatch(list); |
| | | } |
| | | //获取报警的日志记录 |
| | | List<MdcEquipmentRunningSection> errorList = this.equipmentRunningTracesErrorLog(equipment.getEquipmentid()); |