卡列表给联网卡用户增加用户id,修复绑定时,B端用户id获取成B端用户组id的问题
This commit is contained in:
parent
98b6ea7f3e
commit
52be3c7f4c
@ -91,8 +91,15 @@ public class CardList {
|
|||||||
/**
|
/**
|
||||||
* 卡押金
|
* 卡押金
|
||||||
*/
|
*/
|
||||||
|
@JsonProperty("cashPledge")
|
||||||
private Integer cashPledge;
|
private Integer cashPledge;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户id,联网卡才有,用于查询联网卡用户充值记录
|
||||||
|
*/
|
||||||
|
@JsonProperty("userId")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -225,6 +225,9 @@ public class XhpcCardServiceImpl implements IXhpcCardService {
|
|||||||
dataDTO.setUserAccount(phone);
|
dataDTO.setUserAccount(phone);
|
||||||
} else {
|
} else {
|
||||||
dataDTO.setUserType((Long) data.get("user_type"));
|
dataDTO.setUserType((Long) data.get("user_type"));
|
||||||
|
if (data.get("user_id") != null) {
|
||||||
|
dataDTO.setUserId(Long.valueOf((Integer) data.get("user_id")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cardList.getData().add(dataDTO);
|
cardList.getData().add(dataDTO);
|
||||||
|
|
||||||
@ -380,8 +383,8 @@ public class XhpcCardServiceImpl implements IXhpcCardService {
|
|||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
XhpcCustomersPersonnel xhpcCustomersPersonnel = xhpcCustomersPersonnelMapper.selectByAccount(bindCardInfo.getUserAccount());
|
XhpcCustomersPersonnel xhpcCustomersPersonnel = xhpcCustomersPersonnelMapper.selectByAccount(bindCardInfo.getUserAccount());
|
||||||
Long customersId = xhpcCustomersPersonnel.getCustomersId();
|
Long customersPersonnelId = xhpcCustomersPersonnel.getCustomersPersonnelId();
|
||||||
xhpcIcCardInfo.setUserId(customersId);
|
xhpcIcCardInfo.setUserId(customersPersonnelId);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return R.fail("没有此用户类型");
|
return R.fail("没有此用户类型");
|
||||||
|
|||||||
@ -47,6 +47,7 @@
|
|||||||
xhpc_card.ic_card_info_id,
|
xhpc_card.ic_card_info_id,
|
||||||
xhpc_card.t_iccard_info_id,
|
xhpc_card.t_iccard_info_id,
|
||||||
xhpc_card.use_status,
|
xhpc_card.use_status,
|
||||||
|
xhpc_card.user_id,
|
||||||
xhpc_card.user_account,
|
xhpc_card.user_account,
|
||||||
xhpc_card.user_type
|
xhpc_card.user_type
|
||||||
FROM
|
FROM
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user