| | |
| | | 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())){ |
| | |
| | | int todayMonth = today.getMonthValue(); |
| | | if (birthdayMonth == todayMonth) { |
| | | appBirthdayCardVo = birthdayCardService.getUserBirthdayCard(userId,member.getRelationShopId()); |
| | | appBirthdayCardVo.setCheckBirthdayCard(1); |
| | | appBirthdayCardVo.setHaveBirthdayFlag(1); |
| | | appBirthdayCardVo.setInBirthdayFlag(1); |
| | | } else { |
| | |
| | | appBirthdayCardVo.setHaveBirthdayFlag(0); |
| | | } |
| | | } |
| | | } |
| | | |
| | | return R.ok(appBirthdayCardVo); |
| | | } |
| | | |