1.添加同步时需要的字段
Showing
3 changed files
with
9 additions
and
2 deletions
| ... | @@ -25,6 +25,10 @@ import java.sql.Timestamp; | ... | @@ -25,6 +25,10 @@ import java.sql.Timestamp; |
| 25 | @Table(name="uc_member_address") | 25 | @Table(name="uc_member_address") |
| 26 | public class MemberAddress extends AsyncMqModule implements Serializable { | 26 | public class MemberAddress extends AsyncMqModule implements Serializable { |
| 27 | 27 | ||
| 28 | @Transient | ||
| 29 | private String platformAccount; | ||
| 30 | |||
| 31 | // 主键 | ||
| 28 | /** 主键 */ | 32 | /** 主键 */ |
| 29 | @Id | 33 | @Id |
| 30 | @GeneratedValue(strategy = GenerationType.IDENTITY) | 34 | @GeneratedValue(strategy = GenerationType.IDENTITY) | ... | ... |
| ... | @@ -34,6 +34,9 @@ public class MemberVipHistory extends AsyncMqModule implements Serializable { | ... | @@ -34,6 +34,9 @@ public class MemberVipHistory extends AsyncMqModule implements Serializable { |
| 34 | @Column(name = "member_id") | 34 | @Column(name = "member_id") |
| 35 | private Long memberId; | 35 | private Long memberId; |
| 36 | 36 | ||
| 37 | @Transient | ||
| 38 | private String memberCode; | ||
| 39 | |||
| 37 | // 会员vip等级 | 40 | // 会员vip等级 |
| 38 | @Column(name = "vip") | 41 | @Column(name = "vip") |
| 39 | private Integer vip; | 42 | private Integer vip; | ... | ... |
| ... | @@ -654,7 +654,7 @@ public class UserOperationServiceImpl implements UserOperationService { | ... | @@ -654,7 +654,7 @@ public class UserOperationServiceImpl implements UserOperationService { |
| 654 | 654 | ||
| 655 | UserTvDTO userTvDTO = this.findByPlatformAccount(platformAccount); | 655 | UserTvDTO userTvDTO = this.findByPlatformAccount(platformAccount); |
| 656 | 656 | ||
| 657 | /* if (Objects.nonNull(userTvDTO.getId())) { | 657 | if (Objects.nonNull(userTvDTO)) { |
| 658 | if (StringUtils.isNotBlank(userTvDTO.getPriorityMemberCode()) && userTvDTO.getPriorityMemberCode().equalsIgnoreCase(memberCode)) | 658 | if (StringUtils.isNotBlank(userTvDTO.getPriorityMemberCode()) && userTvDTO.getPriorityMemberCode().equalsIgnoreCase(memberCode)) |
| 659 | throw new BadRequestException("会员已是主账户"); | 659 | throw new BadRequestException("会员已是主账户"); |
| 660 | 660 | ||
| ... | @@ -662,7 +662,7 @@ public class UserOperationServiceImpl implements UserOperationService { | ... | @@ -662,7 +662,7 @@ public class UserOperationServiceImpl implements UserOperationService { |
| 662 | 662 | ||
| 663 | throw new EntityNotFoundException(UserTvDTO.class , "platformAccount" , GlobeExceptionMsg.IPTV_IS_NULL); | 663 | throw new EntityNotFoundException(UserTvDTO.class , "platformAccount" , GlobeExceptionMsg.IPTV_IS_NULL); |
| 664 | 664 | ||
| 665 | }*/ | 665 | } |
| 666 | 666 | ||
| 667 | // 设置主会员 | 667 | // 设置主会员 |
| 668 | UserTvDTO _userTvDTO = this.bondPriorityMember(userTvDTO, memberCode, "manual"); | 668 | UserTvDTO _userTvDTO = this.bondPriorityMember(userTvDTO, memberCode, "manual"); | ... | ... |
-
Please register or sign in to post a comment