| | |
| | | vo.setError("右超限"); |
| | | list.add(vo); |
| | | } |
| | | if (staProtocol.isBarcodeErr()){ |
| | | if (staProtocol.isBarcodeErr() && entry.getKey() != 1083 && entry.getKey() != 1086 && entry.getKey() != 1089 ){ |
| | | PlcErrorTableVo vo = new PlcErrorTableVo(); |
| | | vo.setNo(entry.getKey()); // 序号 |
| | | vo.setPlcDesc("扫码失败"); |
| | |
| | | |
| | | BasDevpErrLog findLatestByTaskNo(Integer sourceStaNo, Integer taskNo); |
| | | |
| | | BasDevpErrLog findLatest(Integer sourceStaNo); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public BasDevpErrLog findLatest(Integer sourceStaNo) { |
| | | List<BasDevpErrLog> basErrLogs = this.baseMapper.selectList(new EntityWrapper<BasDevpErrLog>().eq("source_sta_no", sourceStaNo).orderBy("start_time", false)); |
| | | if (basErrLogs == null || basErrLogs.size() == 0) { |
| | | return null; |
| | | } else { |
| | | return basErrLogs.get(0); |
| | | } |
| | | } |
| | | |
| | | } |