| | |
| | | staProtocol.setInEnable(status[3]); // 可入 |
| | | staProtocol.setOutEnable(status[4]);// 可出 |
| | | |
| | | |
| | | staProtocol.setBackErr(status[5]); |
| | | staProtocol.setHigh(status[6]); |
| | | staProtocol.setLeftErr(status[6]); |
| | | staProtocol.setRightErr(status[7]); |
| | | // staProtocol.setHighErr(status[8]); |
| | | // staProtocol.setWeightErr(status[9]); |
| | |
| | | staProtocol.setWeightErr(status2[1]); |
| | | staProtocol.setLow(status2[2]); |
| | | staProtocol.setHigh(status2[3]); |
| | | staProtocol.setBarcodeErr(status2[4]); |
| | | // staProtocol.setInEnable(status[13]); // 可入 |
| | | // staProtocol.setOutEnable(status[14]);// 可出 |
| | | |
| | |
| | | BasDevp sqlModel = staProtocol.toSqlModel(); |
| | | stations.add(sqlModel); |
| | | |
| | | //暂时写入数据库 |
| | | BasDevp basDevp = basConveyorStaService.selectById(sta); |
| | | if (basDevp == null) { |
| | | basConveyorStaService.insert(sqlModel); |
| | | } |
| | | |
| | | } |
| | | if (!stations.isEmpty()) { |
| | | if (null != basConveyorStaService && !basConveyorStaService.updateBatchById(stations)) { |