|
@@ -75,7 +75,7 @@ public class CtWingFactoryImpl implements SimInfoFactory {
|
|
|
.setNetBlockStatus(cardMainStatusVo.getNetBlockStatusName())
|
|
|
.setSimStatus(cardMainStatusVo.getOperatorDefinitionStatusName());
|
|
|
};
|
|
|
- //网络状态
|
|
|
+ //在线状态
|
|
|
FunctionUtils.NoParamsNoResult qryOnlineStatus = () -> {
|
|
|
CtWingDto.AccessNumberOrIccid accessNumberOrIccid = new CtWingDto.AccessNumberOrIccid().setIccid(telephonePlusVo.getIccid());
|
|
|
CtWingVo.OnlineStatusVo onlineStatusVo = CtWingUtils.qryOnlineStatus(accessNumberOrIccid);
|
|
@@ -86,6 +86,13 @@ public class CtWingFactoryImpl implements SimInfoFactory {
|
|
|
.setOnlineEndTime(onlineStatusVo.getEndTime())
|
|
|
;
|
|
|
};
|
|
|
+ //当月流量使用总量
|
|
|
+ FunctionUtils.NoParamsNoResult queryTraffic = () -> {
|
|
|
+ CtWingDto.AccessNumberOrIccid accessNumberOrIccid = new CtWingDto.AccessNumberOrIccid().setIccid(telephonePlusVo.getIccid());
|
|
|
+ CtWingVo.TrafficVo trafficVo = CtWingUtils.queryTraffic(accessNumberOrIccid);
|
|
|
+ vo.setCurrMonthUseFlow(trafficVo.getTotalBytesCnt());
|
|
|
+ };
|
|
|
+
|
|
|
queryCardMainStatus.run();
|
|
|
qryOnlineStatus.run();
|
|
|
return R.ok(vo);
|
|
@@ -173,7 +180,6 @@ public class CtWingFactoryImpl implements SimInfoFactory {
|
|
|
String name = jsonObject.get("name").toString();
|
|
|
String icp = jsonObject.get("icp").toString();
|
|
|
Integer money = Integer.valueOf(jsonObject.get("money").toString());
|
|
|
-
|
|
|
SimInfoDto.PackListVo vo = new SimInfoDto.PackListVo()
|
|
|
.setPackCode(v.getCode())
|
|
|
.setDesc(v.getMsg())
|