绑定卡接口增加押金字段
This commit is contained in:
parent
e427705277
commit
90c8cecb69
@ -59,4 +59,11 @@ public class BindCardInfo {
|
||||
@NotNull(message = "cardRecordId的参数名不正确或者cardRecordId的值为空,请检查传入参数")
|
||||
private Integer cardRecordId;
|
||||
|
||||
/**
|
||||
* 卡押金
|
||||
*/
|
||||
@JsonProperty("cashPledge")
|
||||
@NotNull(message = "cashPledge的参数名不正确或者cashPledge的值为空,请检查传入参数")
|
||||
private Long cashPledge;
|
||||
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ public class DeviceLogInfo {
|
||||
@JsonProperty("serialNumber")
|
||||
private String serialNumber;
|
||||
/**
|
||||
* 授权运营商id
|
||||
* 授权运营商前6位编码
|
||||
*/
|
||||
@JsonProperty("corpIndex")
|
||||
private Long corpIndex;
|
||||
|
||||
@ -416,6 +416,7 @@ public class XhpcCardServiceImpl implements IXhpcCardService {
|
||||
TIccardInfo tIccardInfo = new TIccardInfo();
|
||||
tIccardInfo.setId(bindCardInfo.getCardRecordId());
|
||||
tIccardInfo.setStatus(1);
|
||||
tIccardInfo.setCashpledge(Math.toIntExact(bindCardInfo.getCashPledge()));
|
||||
tIccardInfoMapper.updateByPrimaryKeySelective(tIccardInfo);
|
||||
xhpcCardMapper.insertSelective(xhpcIcCardInfo);
|
||||
//todo 增加绑定日志
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user