| | |
| | | Member member = memberService.getByUserId(userId); |
| | | AppBirthdayCardVo appBirthdayCardVo = new AppBirthdayCardVo(); |
| | | appBirthdayCardVo.setCheckBirthdayCard(0); |
| | | if(member.getBindingFlag()==1){ |
| | | Integer check = birthdayCardService.checkBirthdayCard(member.getRelationShopId()); |
| | | Integer check = birthdayCardService.checkBirthdayCard(member.getRelationShopId(),member.getBindingFlag()); |
| | | if(check==1){ |
| | | appBirthdayCardVo.setCheckBirthdayCard(1); |
| | | if(StringUtils.isNotBlank(member.getBirthday())){ |
| | |
| | | appBirthdayCardVo.setHaveBirthdayFlag(0); |
| | | } |
| | | } |
| | | } |
| | | |
| | | return R.ok(appBirthdayCardVo); |
| | | } |
| | | |