|
|
|
@ -55,8 +55,8 @@ public class DeviceGatherServiceImpl implements DeviceGatherService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void updateDeviceGather(String ip, String rollNo) { |
|
|
|
deviceGatherDao.updateDeviceGather(ip, rollNo); |
|
|
|
public void updateDeviceGather(String ip, String rollNo,String seqNo) { |
|
|
|
deviceGatherDao.updateDeviceGather(ip, rollNo,seqNo); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -94,7 +94,7 @@ public class DeviceGatherServiceImpl implements DeviceGatherService { |
|
|
|
boolean noActiveN = deviceGatherDao.countActiveN(seqNo) == 0; |
|
|
|
|
|
|
|
if (rollNoNotExists && rollNoNotZero && noActiveN) { |
|
|
|
updateDeviceGather(ip, rollNo); |
|
|
|
updateDeviceGather(ip, rollNo,seqNo); |
|
|
|
String operatingStatus = (String) redisTemplate.opsForValue().get("operatingStatus"); |
|
|
|
DeviceGather gather = new DeviceGather(null, ip, rollNo, new Date(), "扫描卷", "N", "", 7, operatingStatus, seqNo); |
|
|
|
saveDeviceGatherByRoll(gather); |
|
|
|
@ -111,7 +111,7 @@ public class DeviceGatherServiceImpl implements DeviceGatherService { |
|
|
|
String serialNo = getErrorRollNo(site); |
|
|
|
String date = DateUtils.getDate(); |
|
|
|
String errorRollNo = "error_"+date+serialNo; |
|
|
|
updateDeviceGather(ip, errorRollNo); |
|
|
|
updateDeviceGather(ip, errorRollNo,seqNo); |
|
|
|
String operatingStatus = (String) redisTemplate.opsForValue().get("operatingStatus"); |
|
|
|
DeviceGather gather = new DeviceGather(null, ip, errorRollNo, new Date(), "扫描卷", "N", "卷号获取失败", 7, operatingStatus, seqNo); |
|
|
|
saveDeviceGatherByRoll(gather); |
|
|
|
|