修复查询卡记录列表接口
This commit is contained in:
parent
563e09a397
commit
80ea2dc210
@ -614,7 +614,7 @@ public class XhpcCardServiceImpl implements IXhpcCardService {
|
||||
XhpcCommunityPersonnel xhpcCommunityPersonnel = xhpcCommunityPersonnelMapper.selectByAccount(queryRechargingRecordRequest.getUserAccount());
|
||||
List<XhpcRechargeOrder> xhpcRechargeOrderList1 = xhpcRechargeOrderMapper.selectByUserId(xhpcCommunityPersonnel.getCommunityPersonnelId(), queryRechargingRecordRequest.getCurrentPage(), queryRechargingRecordRequest.getItems());
|
||||
if (xhpcRechargeOrderList1.isEmpty()) {
|
||||
R.ok(queryRechargingRecordResponse);
|
||||
return R.ok(queryRechargingRecordResponse);
|
||||
}
|
||||
Long recordsCount1 = xhpcRechargeOrderMapper.selectCountByUserId(xhpcCommunityPersonnel.getCommunityId());
|
||||
queryRechargingRecordResponse.setTotalItems(recordsCount1);
|
||||
@ -626,9 +626,9 @@ public class XhpcCardServiceImpl implements IXhpcCardService {
|
||||
return R.ok(queryRechargingRecordResponse);
|
||||
case 3:
|
||||
XhpcCustomersPersonnel xhpcCustomersPersonnel = xhpcCustomersPersonnelMapper.selectByAccount(queryRechargingRecordRequest.getUserAccount());
|
||||
List<XhpcRechargeOrder> xhpcRechargeOrderList2 = xhpcRechargeOrderMapper.selectByUserId(xhpcCustomersPersonnel.getCustomersId(), queryRechargingRecordRequest.getCurrentPage(), queryRechargingRecordRequest.getItems());
|
||||
List<XhpcRechargeOrder> xhpcRechargeOrderList2 = xhpcRechargeOrderMapper.selectByUserId(xhpcCustomersPersonnel.getCustomersPersonnelId(), queryRechargingRecordRequest.getCurrentPage(), queryRechargingRecordRequest.getItems());
|
||||
if (xhpcRechargeOrderList2.isEmpty()) {
|
||||
R.ok(queryRechargingRecordResponse);
|
||||
return R.ok(queryRechargingRecordResponse);
|
||||
}
|
||||
Long recordsCount2 = xhpcRechargeOrderMapper.selectCountByUserId(xhpcCustomersPersonnel.getCustomersId());
|
||||
queryRechargingRecordResponse.setTotalItems(recordsCount2);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user