| | |
| | | for (AgvWarn agvWarn : agvWarnList) { |
| | | Integer warnTime = getWarnTime(agvWarn.getTimes(), first.getValue(), second.getValue(), third.getValue()); |
| | | DateTime begin = DateUtil.parse(agvWarn.getBeginTime(), "yyyy-MM-dd HH:mm:ss"); |
| | | if (DateUtil.offsetMinute(begin, warnTime).before(new Date())) { |
| | | if (DateUtil.offsetMinute(new Date(), -warnTime).after(begin)) { |
| | | buffer = new StringBuffer(); |
| | | buffer.append(processRegion(agvs, agvWarn.getRobotCode()) + "[" + agvWarn.getRobotCode() + "]号AGV小车报警了\n"); |
| | | buffer.append("报警类型:" + agvWarn.getWarnContent() + "\n"); |