| | |
| | | public R<ShopRelUserVo> getShopByUserId(@RequestBody Long userId) |
| | | { |
| | | ShopRelUser shopRelUser = shopRelUserService.getByUserId(userId); |
| | | Optional.ofNullable(shopRelUser).orElseThrow(() -> new ServiceException("未查询到商户信息")); |
| | | Optional.ofNullable(shopRelUser).orElseThrow(() -> new ServiceException("未查询到用户关联商户")); |
| | | ShopRelUserVo shopRelUserVo = new ShopRelUserVo(); |
| | | shopRelUserVo.setShopId(shopRelUser.getShopId()); |
| | | shopRelUserVo.setUserName(shopRelUser.getUserName()); |
| | |
| | | Integer platformCouponFlag = shop.getPlatformCouponFlag(); |
| | | Integer platformBirthdayFlag = shop.getPlatformBirthdayFlag(); |
| | | Integer marketingStatus = 0; |
| | | if(platformCouponFlag==1&&platformBirthdayFlag==0){ |
| | | if(platformCouponFlag==1&&platformBirthdayFlag==2){ |
| | | marketingStatus = 1; |
| | | }else if(platformCouponFlag==0&&platformBirthdayFlag==1){ |
| | | }else if(platformCouponFlag==2&&platformBirthdayFlag==1){ |
| | | marketingStatus = 2; |
| | | }else if(platformCouponFlag==1&&platformBirthdayFlag==1){ |
| | | marketingStatus = 3; |