|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected void initView() { |
|
|
protected void initView() { |
|
|
setTitle("ETC注销1"); |
|
|
|
|
|
|
|
|
setTitle("ETC注销"); |
|
|
binding.LLSearchResult.setVisibility(View.GONE); |
|
|
binding.LLSearchResult.setVisibility(View.GONE); |
|
|
|
|
|
|
|
|
// 初始化搜索工具 |
|
|
// 初始化搜索工具 |
|
|
|
|
|
|
|
|
// 使用现有的车辆信息查询接口 |
|
|
// 使用现有的车辆信息查询接口 |
|
|
Map<String, String> params = new HashMap<>(); |
|
|
Map<String, String> params = new HashMap<>(); |
|
|
params.put("vehicleId", plateNum + "_" + colorNum); |
|
|
params.put("vehicleId", plateNum + "_" + colorNum); |
|
|
|
|
|
|
|
|
|
|
|
LogUtils.i(this.getClass().getSimpleName(), "获取车辆详细信息 请求参数: " + new Gson().toJson(params)); |
|
|
|
|
|
|
|
|
MyRetrofit.newInstanceGZ(this, IFCode.IFCODE154, params, new MyRetrofit.ReturnResult() { |
|
|
MyRetrofit.newInstanceGZ(this, IFCode.IFCODE154, params, new MyRetrofit.ReturnResult() { |
|
|
@Override |
|
|
@Override |
|
|
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { |
|
|
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { |
|
|
|
|
|
LogUtils.i(this.getClass().getSimpleName(), "获取车辆详细信息 响应数据: " + new Gson().toJson(resultBean)); |
|
|
if (bizContent != null && !FunHelper.isEmpty(bizContent.vehicles)) { |
|
|
if (bizContent != null && !FunHelper.isEmpty(bizContent.vehicles)) { |
|
|
vehicles = (ResultBean.BizContent) bizContent.vehicles.get(0); |
|
|
vehicles = (ResultBean.BizContent) bizContent.vehicles.get(0); |
|
|
// 获取用户信息 |
|
|
// 获取用户信息 |
|
|
|
|
|
|
|
|
if (!FunHelper.isEmpty(curBizContent.getCardId())) { |
|
|
if (!FunHelper.isEmpty(curBizContent.getCardId())) { |
|
|
binding.LLCardInfo.setVisibility(View.VISIBLE); |
|
|
binding.LLCardInfo.setVisibility(View.VISIBLE); |
|
|
binding.tvCardIdInfo.setText(FunHelper.isEmpty(curBizContent.getCardId()) ? "卡号:" : "卡号:" + curBizContent.getCardId()); |
|
|
binding.tvCardIdInfo.setText(FunHelper.isEmpty(curBizContent.getCardId()) ? "卡号:" : "卡号:" + curBizContent.getCardId()); |
|
|
binding.tvCardTypeInfo.setText(FunHelper.isEmpty(curBizContent.getIsValueCard()) ? "卡类型:" : "卡类型:" + (curBizContent.getIsValueCard().equals("2") ? "记账卡" : "储值卡")); |
|
|
|
|
|
|
|
|
binding.tvCardTypeInfo.setText(FunHelper.isEmpty(curBizContent.getIsValueCard()) ? "卡类型:" : "卡类型:" + (curBizContent.getIsValueCard().equals("CHARGE_CARD") ? "记账卡" : "储值卡")); |
|
|
binding.tvCardStatusInfo.setText(FunHelper.isEmpty(curBizContent.getCardStatus()) ? "卡状态:" : "卡状态:" + EnumBean.backValue(curBizContent.getCardStatus(), EnumBean.ETC_STATUS)); |
|
|
binding.tvCardStatusInfo.setText(FunHelper.isEmpty(curBizContent.getCardStatus()) ? "卡状态:" : "卡状态:" + EnumBean.backValue(curBizContent.getCardStatus(), EnumBean.ETC_STATUS)); |
|
|
} |
|
|
} |
|
|
|
|
|
|