| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.dsh.account.dto.BindDto; |
| | | import com.dsh.account.dto.IntroduceUserQuery; |
| | | import com.dsh.account.dto.SelectDto; |
| | | import com.dsh.account.dto.UpdateInfoDto; |
| | | import com.dsh.account.entity.*; |
| | |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.models.auth.In; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @Autowired |
| | | private TCourseInfoRecordService courseInfoRecordService; |
| | | |
| | | @Autowired |
| | | private TAppGiftService appGiftService; |
| | | /** |
| | | * 根据介绍有礼id查询当前活动参与次数 |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/base/appUser/getActivityPeoples") |
| | | public Integer getActivityPeoples(@RequestBody Integer activityId){ |
| | | int activityId1 = appGiftService.list(new QueryWrapper<TAppGift>().eq("activityId", activityId)) |
| | | .size(); |
| | | return activityId1; |
| | | } |
| | | /** |
| | | * 介绍有礼 -- 参与用户列表 |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/base/appUser/queryIntroduceAll") |
| | | public List<IntroduceUser> queryIntroduceAll(@RequestBody IntroduceUserQuery query){ |
| | | return appGiftService.queryIntroduceAll(query); |
| | | } |
| | | /** |
| | | * 获取所有用户 |
| | | */ |
| | |
| | | return appUser; |
| | | } |
| | | |
| | | // todo 短信验证码 |
| | | @ResponseBody |
| | | @PostMapping("/base/appUser/getSMSCode") |
| | | @ApiOperation(value = "获取短信验证码", tags = {"APP-登录注册"}) |
| | |
| | | @PostMapping("/base/appUser/addVipPaymentAliCallback") |
| | | public void addVipPaymentAliCallback(HttpServletRequest request, HttpServletResponse response){ |
| | | try { |
| | | System.err.println("==============购买优惠卷回调========="); |
| | | Map<String, String> map = payMoneyUtil.alipayCallback(request); |
| | | if(null != map){ |
| | | String out_trade_no = map.get("out_trade_no"); |