|
|
|
@ -90,8 +90,8 @@ public class DeviceGatherServiceImpl implements DeviceGatherService { |
|
|
|
|
|
|
|
private void handleData(String seqNo, String site, String rollNo, String ip) { |
|
|
|
boolean rollNoNotZero = !"0".equals(rollNo); |
|
|
|
boolean rollNoNotExists = deviceGatherDao.countByRollNo(rollNo) == 0; |
|
|
|
boolean noActiveN = deviceGatherDao.countActiveN() == 0; |
|
|
|
boolean rollNoNotExists = deviceGatherDao.countByRollNo(rollNo,seqNo) == 0; |
|
|
|
boolean noActiveN = deviceGatherDao.countActiveN(seqNo) == 0; |
|
|
|
|
|
|
|
if (rollNoNotExists && rollNoNotZero && noActiveN) { |
|
|
|
updateDeviceGather(ip, rollNo); |
|
|
|
|