|
@@ -4,6 +4,7 @@ import cn.hutool.json.JSONObject;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.xy.Enum.ctwing.BindTypeEnum;
|
|
|
import com.xy.annotate.Factory;
|
|
|
+import com.xy.config.DeviceThreadPoolConfig;
|
|
|
import com.xy.dto.CtWingDto;
|
|
|
import com.xy.dto.CtWingVo;
|
|
|
import com.xy.dto.DeviceSimPickRecordsDto;
|
|
@@ -92,10 +93,16 @@ public class CtWingFactoryImpl implements SimInfoFactory {
|
|
|
CtWingVo.TrafficVo trafficVo = CtWingUtils.queryTraffic(accessNumberOrIccid);
|
|
|
vo.setCurrMonthUseFlow(trafficVo.getTotalBytesCnt());
|
|
|
};
|
|
|
-
|
|
|
- queryCardMainStatus.run();
|
|
|
- qryOnlineStatus.run();
|
|
|
- queryTraffic.run();
|
|
|
+ ThreadPoolUtils.excPoll(DeviceThreadPoolConfig.DEVICE_COMMON_POLL, 3)
|
|
|
+ .execute(() -> {
|
|
|
+ queryCardMainStatus.run();
|
|
|
+ })
|
|
|
+ .execute(() -> {
|
|
|
+ qryOnlineStatus.run();
|
|
|
+ })
|
|
|
+ .execute(() -> {
|
|
|
+ queryTraffic.run();
|
|
|
+ }).end();
|
|
|
return R.ok(vo);
|
|
|
}
|
|
|
|