This commit is contained in:
loujf
2022-07-21 13:24:26 +08:00
parent c19ad4d4e9
commit ce49d66ec9

View File

@@ -1311,6 +1311,7 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu
//查询此终点的指令数量
List<Instruction> byNextDeviceCode = this.findByNextDeviceCode(next_device_code);
if (byNextDeviceCode.size() >= deviceList.size()) {
logServer.log(dto.getTask_code(),"当前分配的终点设备:"+ next_device_code +"","400","当前终点的指令数量:" + byNextDeviceCode.size() + "","当前终点设备关联设备数量:"+ list.size() +"","","",dto.getVehicle_code());
return;
}
@@ -1326,6 +1327,7 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu
}
//如果当前关联的设备中都有货的话,就返回
if (count != 0 && count >= list.size()) {
logServer.log(dto.getTask_code(),"当前分配的终点设备:"+ next_device_code +"","400","当前终点关联设备中,有货的设备数量:" + count + "","当前终点设备关联设备数量:"+ list.size() +"","","",dto.getVehicle_code());
return;
}
}