|
@@ -19,6 +19,8 @@ import com.miaxis.newgzpt.service.IGzptSchPayLogService;
|
|
|
import com.miaxis.newgzpt.service.IGzptUserInfoService;
|
|
|
import com.miaxis.newgzpt.vo.GzptSchActivationVO;
|
|
|
import com.miaxis.newgzpt.vo.GzptVideoVipVO;
|
|
|
+import com.miaxis.userInfo.domain.UserVip;
|
|
|
+import com.miaxis.userInfo.service.IUserVipService;
|
|
|
import com.miaxis.wx.domain.WxJsOrder;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -53,6 +55,9 @@ public class GzptUserInfoController extends BaseController {
|
|
|
@Autowired
|
|
|
private IGzptSchActivationService schActivationService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IUserVipService userVipService;
|
|
|
+
|
|
|
/**
|
|
|
* 获取用户id获取详细信息
|
|
|
*/
|
|
@@ -87,6 +92,20 @@ public class GzptUserInfoController extends BaseController {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 清除学员激活状态与会员信息接口(测试专用)
|
|
|
+ */
|
|
|
+ @GetMapping("/activa")
|
|
|
+ @ApiOperation("清除学员激活状态与会员信息接口(测试专用)")
|
|
|
+ public Response clearUserVip(GzptVideoVipDTO gzptVideoVipDTO) throws Exception {
|
|
|
+ GzptUserInfo gzptUserInfo = userInfoService.getInfoById(gzptVideoVipDTO.getUserId());
|
|
|
+ //清除会员信息
|
|
|
+ userVipService.removeByUserId(gzptVideoVipDTO.getUserId());
|
|
|
+ //清除激活信息
|
|
|
+ schActivationService.delSchActivationByStuId(gzptUserInfo.getOutId());
|
|
|
+ return Response.success();
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 绑定学员账号
|