修复查询卡充值接口
This commit is contained in:
parent
ee07b0953a
commit
4224bdc51b
@ -33,11 +33,11 @@ public class QueryRechargingRecordRequest {
|
||||
@NotNull(message = "userType的参数名不正确或者userType的值为空,请检查传入参数")
|
||||
private Integer userType;
|
||||
/**
|
||||
* 卡类型(0离线,1联网)
|
||||
* 卡分类(0离线,1联网)
|
||||
*/
|
||||
@JsonProperty("cardType")
|
||||
@NotNull(message = "cardType的参数名不正确或者cardType的值为空,请检查传入参数")
|
||||
private Integer cardType;
|
||||
@JsonProperty("classification")
|
||||
@NotNull(message = "classification的参数名不正确或者cardType的值为空,请检查传入参数")
|
||||
private Integer classification;
|
||||
/**
|
||||
* 卡号
|
||||
*/
|
||||
|
||||
@ -563,7 +563,7 @@ public class XhpcCardServiceImpl implements IXhpcCardService {
|
||||
QueryRechargingRecordResponse queryRechargingRecordResponse = new QueryRechargingRecordResponse();
|
||||
queryRechargingRecordResponse.setData(new ArrayList<>());
|
||||
queryRechargingRecordResponse.setTotalItems(0L);
|
||||
Integer cardType = queryRechargingRecordRequest.getCardType();
|
||||
Integer cardType = queryRechargingRecordRequest.getClassification();
|
||||
//如果卡是离线卡
|
||||
if (cardType == 0) {
|
||||
List<TIccardLog> tIccardLogList = tIccardLogMapper.selectRechargeLogByUniqueId(queryRechargingRecordRequest.getCardSerialNumber(), queryRechargingRecordRequest.getCurrentPage(), queryRechargingRecordRequest.getItems());
|
||||
@ -631,7 +631,7 @@ public class XhpcCardServiceImpl implements IXhpcCardService {
|
||||
if (xhpcRechargeOrderList2.isEmpty()) {
|
||||
return R.ok(queryRechargingRecordResponse);
|
||||
}
|
||||
Long recordsCount2 = xhpcRechargeOrderMapper.selectCountByUserId(xhpcCustomersPersonnel.getCustomersId());
|
||||
Long recordsCount2 = xhpcRechargeOrderMapper.selectCountByUserId(xhpcCustomersPersonnel.getCustomersPersonnelId());
|
||||
queryRechargingRecordResponse.setTotalItems(recordsCount2);
|
||||
for (XhpcRechargeOrder xhpcRechargeOrder : xhpcRechargeOrderList2) {
|
||||
QueryRechargingRecordResponse.DataDTO dataDTO = new QueryRechargingRecordResponse.DataDTO();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user