|
@@ -328,11 +328,14 @@ public class CmsGroupRelationController {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/get/recharge/operate/record")
|
|
@GetMapping("/get/recharge/operate/record")
|
|
|
public Result<List<GptUserRechargeNumRecord>> getGptUserRechargeNumRecord(Long relationId, Long userId) {
|
|
public Result<List<GptUserRechargeNumRecord>> getGptUserRechargeNumRecord(Long relationId, Long userId) {
|
|
|
- OrderDon orderDon = orderDonMapper.selectOne(Wrappers.lambdaQuery(OrderDon.class).eq(OrderDon::getUserId, userId).eq(OrderDon::getRelationId, relationId).notIn(OrderDon::getStatus, Constant.noOrderAllStatus).orderByDesc(OrderDon::getId).last("limit 1"));
|
|
|
|
|
|
|
+ GroupsRelation relation = groupsRelationMapper.selectById(relationId);
|
|
|
|
|
+ if (relation.getStartTime() == null) {
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
|
|
+ }
|
|
|
List<GptUserRechargeNumRecord> gptUserRechargeNumRecords = beanSearcher.searchAll(GptUserRechargeNumRecord.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
List<GptUserRechargeNumRecord> gptUserRechargeNumRecords = beanSearcher.searchAll(GptUserRechargeNumRecord.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
|
.field(GptUserRechargeNumRecord::getRelationId, relationId)
|
|
.field(GptUserRechargeNumRecord::getRelationId, relationId)
|
|
|
.field(GptUserRechargeNumRecord::getUserId, userId)
|
|
.field(GptUserRechargeNumRecord::getUserId, userId)
|
|
|
- .field(GptUserRechargeNumRecord::getCreatedTime, orderDon.getCreatedTime()).op(Operator.GreaterThan)
|
|
|
|
|
|
|
+ .field(GptUserRechargeNumRecord::getCreatedTime, relation.getStartTime()).op(Operator.GreaterThan)
|
|
|
.build());
|
|
.build());
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(gptUserRechargeNumRecords);
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(gptUserRechargeNumRecords);
|
|
|
}
|
|
}
|
|
@@ -380,6 +383,8 @@ public class CmsGroupRelationController {
|
|
|
@PostMapping("/gpt/independent/export/recharge")
|
|
@PostMapping("/gpt/independent/export/recharge")
|
|
|
@Log(module = "账号管理/用户代充/导入GPT独立会员订单", businessType = BusinessType.POST, isSaveRequestData = true)
|
|
@Log(module = "账号管理/用户代充/导入GPT独立会员订单", businessType = BusinessType.POST, isSaveRequestData = true)
|
|
|
public Result<String> gptIndependentExportRecharge(@RequestBody GptIndependentExportRechargeReq rechargeReq) {
|
|
public Result<String> gptIndependentExportRecharge(@RequestBody GptIndependentExportRechargeReq rechargeReq) {
|
|
|
|
|
+ long adminId = StpUtil.getLoginIdAsLong();
|
|
|
|
|
+ rechargeReq.setAdminId(adminId);
|
|
|
gptRechargeService.gptIndependentExportRecharge(rechargeReq);
|
|
gptRechargeService.gptIndependentExportRecharge(rechargeReq);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
}
|