| | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.member.service.member.MemberCouponService; |
| | | import com.ruoyi.member.service.member.MemberService; |
| | | import com.ruoyi.member.service.member.MemberSuggestService; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberBindingDto; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberGoodsTypeDto; |
| | | import com.ruoyi.system.api.domain.dto.AppMiniRegisterDto; |
| | | import com.ruoyi.system.api.domain.dto.MgtUserIdByKeywordDto; |
| | | import com.ruoyi.member.service.member.MemberTotalService; |
| | | import com.ruoyi.system.api.domain.dto.*; |
| | | import com.ruoyi.system.api.domain.poji.member.Member; |
| | | import com.ruoyi.system.api.domain.vo.AppMemberCouponVo; |
| | | import com.ruoyi.system.api.domain.vo.AppMiniRegisterVo; |
| | | import com.ruoyi.system.api.domain.vo.MgtSimpleMemberVo; |
| | | import com.ruoyi.system.api.domain.vo.MgtUserIdByKeywordVo; |
| | | import com.ruoyi.system.api.domain.vo.*; |
| | | import com.ruoyi.system.api.model.AppMiniLoginDto; |
| | | import com.ruoyi.system.api.model.AppMiniLoginVo; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | private MemberService memberService; |
| | | |
| | | @Resource |
| | | private MemberCouponService memberCouponService; |
| | | |
| | | @Resource |
| | | private MemberSuggestService memberSuggestService; |
| | | |
| | | @Resource |
| | | private MemberTotalService memberTotalService; |
| | | |
| | | /** |
| | | * @description: getMember |
| | |
| | | return R.ok(appUserRegisterVo); |
| | | } |
| | | |
| | | /** |
| | | * @description: 获取用户优惠券 |
| | | * @author jqs34 |
| | | * @date 2023/5/3 1:45 |
| | | * @version 1.0 |
| | | */ |
| | | @PostMapping("/listVoMemberCouponByUserId") |
| | | public R<List<AppMemberCouponVo>> listVoMemberCouponByUserId(@RequestBody Long userId){ |
| | | List<AppMemberCouponVo> appMemberCouponVoList = memberCouponService.listVoMemberCouponByUserId(userId); |
| | | return R.ok(appMemberCouponVoList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 更新会员绑定商户 |
| | |
| | | * @description 通过ids获取用户简易返回 |
| | | * @author jqs |
| | | * @date 2023/6/16 11:05 |
| | | * @param userIds |
| | | * @param mgtBaseBathDto |
| | | * @return R<List<MgtSimpleMemberVo>> |
| | | */ |
| | | @PostMapping("/listSimpleVoByIds") |
| | | public R<List<MgtSimpleMemberVo>> listSimpleVoByIds(@RequestBody String userIds) |
| | | public R<List<MgtSimpleMemberVo>> listSimpleVoByIds(@RequestBody MgtBaseBathDto mgtBaseBathDto) |
| | | { |
| | | List<MgtSimpleMemberVo> simpleMemberVoList = memberService.listSimpleVoByIds(userIds); |
| | | List<MgtSimpleMemberVo> simpleMemberVoList = memberService.listSimpleVoByIds(mgtBaseBathDto.getIds()); |
| | | return R.ok(simpleMemberVoList); |
| | | } |
| | | |
| | |
| | | return R.ok(mgtUserIdByKeywordVo); |
| | | } |
| | | |
| | | /** |
| | | * @description boardMemberTotal |
| | | * @param |
| | | * @return R<MgtBulletinBoardVo> |
| | | * @author jqs34 |
| | | * @date 2023/6/18 16:45 |
| | | */ |
| | | @PostMapping("/boardMemberTotal") |
| | | public R<MgtBulletinBoardVo> boardMemberTotal() |
| | | { |
| | | MgtBulletinBoardVo bulletinBoardVo = memberService.boardMemberTotal(); |
| | | return R.ok(bulletinBoardVo); |
| | | } |
| | | |
| | | /** |
| | | * @description 筛选userId年龄段 |
| | | * @author jqs |
| | | * @date 2023/6/20 14:31 |
| | | * @param mgtActivityAgeDto |
| | | * @return R<List<Long>> |
| | | */ |
| | | @PostMapping("/listUserIdByAge") |
| | | public R<List<Long>> listUserIdByAge(@RequestBody MgtActivityAgeDto mgtActivityAgeDto) |
| | | { |
| | | List<Long> userIdList = memberService.listUserIdByAge(mgtActivityAgeDto); |
| | | return R.ok(userIdList); |
| | | } |
| | | |
| | | /** |
| | | * @description 通过shopId获取userId |
| | | * @author jqs |
| | | * @date 2023/6/21 17:11 |
| | | * @param shopIdlist |
| | | * @return R<List<Long>> |
| | | */ |
| | | @PostMapping("/listUserIdByShopId") |
| | | public R<List<Long>> listUserIdByShopId(@RequestBody List<Long> shopIdlist) |
| | | { |
| | | List<Long> userIdList = memberService.listUserIdByShopId(shopIdlist); |
| | | return R.ok(userIdList); |
| | | } |
| | | |
| | | /** |
| | | * @description 通过shopId获取user统计 |
| | | * @author jqs |
| | | * @date 2023/6/21 17:22 |
| | | * @param shopIdlist |
| | | * @return R<MgtShopTotalMemberVo> |
| | | */ |
| | | @PostMapping("/getUserTotalByShopId") |
| | | public R<MgtShopTotalMemberVo> getUserTotalByShopId(@RequestBody List<Long> shopIdlist) |
| | | { |
| | | MgtShopTotalMemberVo shopTotalMemberVo = memberService.getUserTotalByShopId(shopIdlist); |
| | | return R.ok(shopTotalMemberVo); |
| | | } |
| | | |
| | | /** |
| | | * @description 更新会员统计 |
| | | * @author jqs |
| | | * @date 2023/6/28 17:52 |
| | | * @param memberTotalChangeDto |
| | | * @return R |
| | | */ |
| | | @PostMapping("/changeMemberTotal") |
| | | public R changeMemberTotal(@RequestBody MemberTotalChangeDto memberTotalChangeDto) |
| | | { |
| | | memberService.changeMemberTotal(memberTotalChangeDto); |
| | | return R.ok(); |
| | | } |
| | | } |