|
@@ -1,5 +1,7 @@
|
|
|
package com.cyksj.web.controller.manage.group;
|
|
package com.cyksj.web.controller.manage.group;
|
|
|
|
|
|
|
|
|
|
+import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
|
|
+
|
|
|
import cn.dev33.satoken.stp.StpUtil;
|
|
import cn.dev33.satoken.stp.StpUtil;
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.date.DateTime;
|
|
import cn.hutool.core.date.DateTime;
|
|
@@ -288,6 +290,7 @@ public class CmsGroupRelationController {
|
|
|
/**
|
|
/**
|
|
|
* 导出代充账号
|
|
* 导出代充账号
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @SaCheckPermission("recharge:export")
|
|
|
@GetMapping("/export/recharge")
|
|
@GetMapping("/export/recharge")
|
|
|
public void getRechargeList(String rechargeStatus, String orderNo, Boolean isVipError, HttpServletResponse response) {
|
|
public void getRechargeList(String rechargeStatus, String orderNo, Boolean isVipError, HttpServletResponse response) {
|
|
|
MapBuilder builder = MapUtils.flatBuilder(request.getParameterMap());
|
|
MapBuilder builder = MapUtils.flatBuilder(request.getParameterMap());
|
|
@@ -455,6 +458,7 @@ public class CmsGroupRelationController {
|
|
|
/**
|
|
/**
|
|
|
* GPT代充 设置剩余次数
|
|
* GPT代充 设置剩余次数
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @SaCheckPermission("recharge:updateCount")
|
|
|
@PutMapping("/recharge/update/remain/num")
|
|
@PutMapping("/recharge/update/remain/num")
|
|
|
public Result<String> updateRechargeRemainNum(@RequestBody RechargeRemainNumReq req) {
|
|
public Result<String> updateRechargeRemainNum(@RequestBody RechargeRemainNumReq req) {
|
|
|
long adminId = StpUtil.getLoginIdAsLong();
|
|
long adminId = StpUtil.getLoginIdAsLong();
|
|
@@ -486,6 +490,7 @@ public class CmsGroupRelationController {
|
|
|
/**
|
|
/**
|
|
|
* 批量处理GPT代充次数
|
|
* 批量处理GPT代充次数
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @SaCheckPermission("recharge:updateCount")
|
|
|
@PostMapping("/batch/recharge/update/remain/num")
|
|
@PostMapping("/batch/recharge/update/remain/num")
|
|
|
public Result<List<BatchRechargeRemainNumResp>> batchUpdateRechargeRemainNum(@RequestBody BatchRechargeRemainNumReq req) {
|
|
public Result<List<BatchRechargeRemainNumResp>> batchUpdateRechargeRemainNum(@RequestBody BatchRechargeRemainNumReq req) {
|
|
|
long adminId = StpUtil.getLoginIdAsLong();
|
|
long adminId = StpUtil.getLoginIdAsLong();
|
|
@@ -496,6 +501,7 @@ public class CmsGroupRelationController {
|
|
|
/**
|
|
/**
|
|
|
* 更新剩余次数 针对之前的代充账号
|
|
* 更新剩余次数 针对之前的代充账号
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @SaCheckPermission("recharge:updateCount")
|
|
|
@PostMapping("/recharge/set/remainNumBf")
|
|
@PostMapping("/recharge/set/remainNumBf")
|
|
|
public Result<String> setRechargeRemainNumBf(@RequestBody RechargeRemainNumReq req) {
|
|
public Result<String> setRechargeRemainNumBf(@RequestBody RechargeRemainNumReq req) {
|
|
|
long adminId = StpUtil.getLoginIdAsLong();
|
|
long adminId = StpUtil.getLoginIdAsLong();
|
|
@@ -574,6 +580,7 @@ public class CmsGroupRelationController {
|
|
|
/**
|
|
/**
|
|
|
* 导出 代充操作数据
|
|
* 导出 代充操作数据
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @SaCheckPermission("recharge:export")
|
|
|
@GetMapping("/export/recharge/operate/statistics/data")
|
|
@GetMapping("/export/recharge/operate/statistics/data")
|
|
|
public void exportRechargeStatisticsData(@RequestParam(name = "goodsIds", required = false) List<Long> goodsIds, String startTime, String endTime, String operator, HttpServletResponse response) {
|
|
public void exportRechargeStatisticsData(@RequestParam(name = "goodsIds", required = false) List<Long> goodsIds, String startTime, String endTime, String operator, HttpServletResponse response) {
|
|
|
if (StrUtil.isEmpty(startTime)) {
|
|
if (StrUtil.isEmpty(startTime)) {
|
|
@@ -765,6 +772,7 @@ public class CmsGroupRelationController {
|
|
|
/**
|
|
/**
|
|
|
* 验证GPT代充凭证
|
|
* 验证GPT代充凭证
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @SaCheckPermission("recharge:auto")
|
|
|
@PostMapping("/parse-token")
|
|
@PostMapping("/parse-token")
|
|
|
public Result<TokenParseResult> parseToken(@RequestBody ParseTokenRequest request) {
|
|
public Result<TokenParseResult> parseToken(@RequestBody ParseTokenRequest request) {
|
|
|
TokenParseResult tokenParseResult = gptRechargeService.parseToken(request.getAccessToken());
|
|
TokenParseResult tokenParseResult = gptRechargeService.parseToken(request.getAccessToken());
|
|
@@ -774,6 +782,7 @@ public class CmsGroupRelationController {
|
|
|
/**
|
|
/**
|
|
|
* 确认充值
|
|
* 确认充值
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @SaCheckPermission("recharge:auto")
|
|
|
@PostMapping("/confirm")
|
|
@PostMapping("/confirm")
|
|
|
public Result<String> confirmRecharge(@RequestBody @Validated GroupsRelationRechargeReq req) {
|
|
public Result<String> confirmRecharge(@RequestBody @Validated GroupsRelationRechargeReq req) {
|
|
|
long adminId = StpUtil.getLoginIdAsLong();
|
|
long adminId = StpUtil.getLoginIdAsLong();
|
|
@@ -785,6 +794,7 @@ public class CmsGroupRelationController {
|
|
|
/**
|
|
/**
|
|
|
* 查询任务状态
|
|
* 查询任务状态
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @SaCheckPermission("recharge:auto")
|
|
|
@GetMapping("/task-status/{taskId}")
|
|
@GetMapping("/task-status/{taskId}")
|
|
|
public Result<TaskResult> getTaskStatus(@PathVariable String taskId) {
|
|
public Result<TaskResult> getTaskStatus(@PathVariable String taskId) {
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(gptRechargeService.getTaskResult(taskId));
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(gptRechargeService.getTaskResult(taskId));
|
|
@@ -793,6 +803,7 @@ public class CmsGroupRelationController {
|
|
|
/**
|
|
/**
|
|
|
* 订单号车票详情
|
|
* 订单号车票详情
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @SaCheckPermission("recharge:import")
|
|
|
@GetMapping("/get/order/relation")
|
|
@GetMapping("/get/order/relation")
|
|
|
public Result<GroupsRelation> getOrderRelation(String orderNo) {
|
|
public Result<GroupsRelation> getOrderRelation(String orderNo) {
|
|
|
GroupsRelation relation = gptRechargeService.getOrderRelation(orderNo);
|
|
GroupsRelation relation = gptRechargeService.getOrderRelation(orderNo);
|
|
@@ -802,6 +813,7 @@ public class CmsGroupRelationController {
|
|
|
/**
|
|
/**
|
|
|
* GPT独立会员导入代充列表
|
|
* GPT独立会员导入代充列表
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @SaCheckPermission("recharge:import")
|
|
|
@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) {
|