|
|
@@ -309,13 +309,13 @@ public class ReleaseVehicleDetailActivity extends AppActivity implements TitleBa |
|
|
|
// 卡信息
|
|
|
|
binding.tvCardId.setText(detailData.cardId != null ? detailData.cardId : "暂无");
|
|
|
|
binding.tvCardEnableTime.setText(detailData.cardEnableTime != null ? detailData.cardEnableTime : "暂无");
|
|
|
|
binding.tvCardStatus.setText(detailData.cardStatus != null ? detailData.cardStatus : "暂无");
|
|
|
|
binding.tvCardStatus.setText(getCardStatusText(detailData.cardStatus));
|
|
|
|
binding.tvChannel.setText(detailData.channelId != null ? detailData.channelId : "暂无");
|
|
|
|
|
|
|
|
// 签信息
|
|
|
|
binding.tvObuId.setText(detailData.obuId != null ? detailData.obuId : "暂无");
|
|
|
|
binding.tvObuEnableTime.setText(detailData.obuEnableTime != null ? detailData.obuEnableTime : "暂无");
|
|
|
|
binding.tvObuStatus.setText(detailData.obuStatus != null ? detailData.obuStatus : "暂无");
|
|
|
|
binding.tvObuStatus.setText(getObuStatusText(detailData.obuStatus));
|
|
|
|
|
|
|
|
// 黑名单信息
|
|
|
|
binding.tvCardBlacklist.setText(detailData.cardBlackList != null ? "有黑名单记录" : "无黑名单记录");
|
|
|
@@ -377,6 +377,46 @@ public class ReleaseVehicleDetailActivity extends AppActivity implements TitleBa |
|
|
|
return "未知车牌颜色";
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取卡状态文本
|
|
|
|
*/
|
|
|
|
private String getCardStatusText(String cardStatus) {
|
|
|
|
if (cardStatus == null) return "未知状态";
|
|
|
|
|
|
|
|
// 根据卡状态枚举获取对应的名称
|
|
|
|
if (EnumBean.ETC_STATUS != null) {
|
|
|
|
for (EnumBean enumBean : EnumBean.ETC_STATUS) {
|
|
|
|
if (cardStatus.equals(enumBean.getKey())) {
|
|
|
|
return enumBean.getValue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 如果找不到对应的描述,返回原始状态码
|
|
|
|
LogUtils.w("解除车牌占用详情", "未找到卡状态对应的描述: " + cardStatus);
|
|
|
|
return cardStatus;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取签状态文本
|
|
|
|
*/
|
|
|
|
private String getObuStatusText(String obuStatus) {
|
|
|
|
if (obuStatus == null) return "未知状态";
|
|
|
|
|
|
|
|
// 根据签状态枚举获取对应的名称
|
|
|
|
if (EnumBean.OBU_STATUS != null) {
|
|
|
|
for (EnumBean enumBean : EnumBean.OBU_STATUS) {
|
|
|
|
if (obuStatus.equals(enumBean.getKey())) {
|
|
|
|
return enumBean.getValue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 如果找不到对应的描述,返回原始状态码
|
|
|
|
LogUtils.w("解除车牌占用详情", "未找到签状态对应的描述: " + obuStatus);
|
|
|
|
return obuStatus;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 通过按钮点击
|
|
|
|
*/
|