|
|
@@ -1429,4 +1429,28 @@ public class GroupRelationController {
|
|
|
TicketRenewUpgradeView renewView = groupRelationFrontService.getRenewUpgradeInfo(userId, relationId);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(renewView);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 代充记录
|
|
|
+ */
|
|
|
+ @GetMapping("/get/recharge/record")
|
|
|
+ public Result<List<GptUserRechargeNumRecordView>> getRechargeRecord(Long relationId) {
|
|
|
+ long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
+ List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
+ GroupsRelation relation = relationMapper.selectById(relationId);
|
|
|
+ if (relation == null || !userIdList.contains(relation.getUserId())) {
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
+ }
|
|
|
+ Date filterTime = relation.getStartTime();
|
|
|
+ if (filterTime == null) {
|
|
|
+ filterTime = relation.getSubmitTime();
|
|
|
+ }
|
|
|
+ List<GptUserRechargeNumRecordView> search = beanSearcher.searchAll(GptUserRechargeNumRecordView.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
|
+ .field(GptUserRechargeNumRecordView::getUserId, userIdList).op(Operator.InList)
|
|
|
+ .field(GptUserRechargeNumRecordView::getRelationId, relationId)
|
|
|
+ .field(GptUserRechargeNumRecordView::getCreatedTime, filterTime).op(Operator.GreaterEqual)
|
|
|
+ .orderBy(GptUserRechargeNumRecordView::getCreatedTime).desc()
|
|
|
+ .build());
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
|
+ }
|
|
|
}
|