|
|
@@ -20,10 +20,7 @@ import com.cyksj.mapper.manage.cms.CmsUserMapper;
|
|
|
import com.cyksj.model.entity.*;
|
|
|
import com.cyksj.model.manage.views.AccountView;
|
|
|
import com.cyksj.model.manage.views.GroupsRelationBackView;
|
|
|
-import com.cyksj.model.request.GptIndependentExportRechargeReq;
|
|
|
-import com.cyksj.model.request.GptRechargeCardKeyReq;
|
|
|
-import com.cyksj.model.request.GroupsRelationRechargeReq;
|
|
|
-import com.cyksj.model.request.RechargeRemainNumReq;
|
|
|
+import com.cyksj.model.request.*;
|
|
|
import com.cyksj.model.views.DisableAccountView;
|
|
|
import com.cyksj.model.views.GroupsRelationIndependentView;
|
|
|
import com.cyksj.model.views.GroupsRelationRechargeView;
|
|
|
@@ -362,6 +359,25 @@ public class CmsGroupRelationController {
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 批量删除GPT代充卡密
|
|
|
+ */
|
|
|
+ @DeleteMapping("/batch/del/gpt/cardKey")
|
|
|
+ public Result<SearchResult<GptRechargeCardKey>> batchDeleteGptCardKeyById(@RequestBody BatchDelCardKeyReq req) {
|
|
|
+ List<Long> ids = req.getIds();
|
|
|
+ ids.forEach(id -> {
|
|
|
+ GptRechargeCardKey gptRechargeCardKey = gptRechargeCardKeyMapper.selectById(id);
|
|
|
+ if (gptRechargeCardKey == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (gptRechargeCardKey.getStatus()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ gptRechargeCardKeyMapper.deleteById(id);
|
|
|
+ });
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 新增GPT代充卡密
|