浏览代码

删除考场VIP

zhangbin 2 年之前
父节点
当前提交
d044d1554c

+ 20 - 3
jsjp-admin/src/main/java/com/miaxis/app/controller/exam/VipUserExamController.java

@@ -2,23 +2,25 @@ package com.miaxis.app.controller.exam;
 
 import com.miaxis.common.constant.Constants;
 import com.miaxis.common.core.controller.BaseController;
+import com.miaxis.common.core.domain.Response;
 import com.miaxis.common.core.page.ResponsePageInfo;
 import com.miaxis.common.utils.PrivateKeyUtil;
 import com.miaxis.examvip.domain.VipUserExam;
 import com.miaxis.examvip.service.IVipUserExamService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import java.security.KeyFactory;
 import java.security.PrivateKey;
 import java.security.Signature;
 import java.security.spec.PKCS8EncodedKeySpec;
 import java.util.Base64;
+import java.util.HashMap;
 import java.util.List;
+import java.util.Map;
 
 /**
  * 【考场会员】Controller
@@ -48,6 +50,21 @@ public class VipUserExamController extends BaseController {
     }
 
 
+    /**
+     * 删除考场会员信息
+     */
+    @DeleteMapping("/{userId}")
+    @ApiOperation("删除考场会员信息")
+    public Response<Integer> removeByUserId(
+            @ApiParam(name = "userId", value = "考试会员信息userId", required = true)
+            @PathVariable Long userId
+    ) {
+        Map<String, Object> map = new HashMap<>();
+        map.put("user_id", userId);
+        return toResponse(vipUserExamService.removeByMap(map) ? 1 : 0);
+    }
+
+
     private void doSign(List<VipUserExam> userExamList) throws Exception {
 
         for (VipUserExam userExam : userExamList) {

+ 4 - 4
jsjp-admin/src/main/resources/application-dev.yml

@@ -125,10 +125,10 @@ wxpay:
     merchantId: 1611324484
     serialNumber: 53EBF541F383371B121D7B57B25305FC0BB04F42
     v3key: 7hM14893GvG3JK05575jk1l6P4tF042B
-    notifyUrl: https://1a0j71808.imdo.co/open-api/wx/notify/wxpay
-    notifyUrlRefund: https://1a0j71808.imdo.co/open-api/wx/notify/refund
-#    notifyUrl: http://175.42.30.21:8888/open-api/wx/notify/wxpay
-#    notifyUrlRefund: http://175.42.30.21:8888/open-api/wx/notify/refund
+#    notifyUrl: https://1a0j71808.imdo.co/open-api/wx/notify/wxpay
+#    notifyUrlRefund: https://1a0j71808.imdo.co/open-api/wx/notify/refund
+    notifyUrl: https://jsjp-admin1.zzxcx.net/open-api/wx/notify/wxpay
+    notifyUrlRefund: https://jsjp-admin1.zzxcx.net/open-api/wx/notify/refund
 
 # 苹果支付
 applepay: