1.update
Showing
3 changed files
with
10 additions
and
8 deletions
| ... | @@ -51,7 +51,7 @@ public class UserOperationServiceImpl implements UserOperationService { | ... | @@ -51,7 +51,7 @@ public class UserOperationServiceImpl implements UserOperationService { |
| 51 | // 是否存在会员 | 51 | // 是否存在会员 |
| 52 | UserWeixinDTO userWeixinDTO1 = this.userWeixinService.findFirstByUnionId(unionid); | 52 | UserWeixinDTO userWeixinDTO1 = this.userWeixinService.findFirstByUnionId(unionid); |
| 53 | 53 | ||
| 54 | if (Objects.nonNull(userWeixinDTO1)) { | 54 | if (Objects.nonNull(userWeixinDTO1.getId())) { |
| 55 | 55 | ||
| 56 | Long memberId = userWeixinDTO1.getMemberId(); | 56 | Long memberId = userWeixinDTO1.getMemberId(); |
| 57 | if (Objects.nonNull(memberId)) { | 57 | if (Objects.nonNull(memberId)) { |
| ... | @@ -106,7 +106,7 @@ public class UserOperationServiceImpl implements UserOperationService { | ... | @@ -106,7 +106,7 @@ public class UserOperationServiceImpl implements UserOperationService { |
| 106 | UserWeixinDTO userWeixinDTO1 = this.userWeixinService.findFirstByUnionId(unionid); | 106 | UserWeixinDTO userWeixinDTO1 = this.userWeixinService.findFirstByUnionId(unionid); |
| 107 | 107 | ||
| 108 | // 有其他账号 | 108 | // 有其他账号 |
| 109 | if (Objects.nonNull(userWeixinDTO1)) { | 109 | if (Objects.nonNull(userWeixinDTO1.getId())) { |
| 110 | 110 | ||
| 111 | Long memberId = userWeixinDTO1.getMemberId(); | 111 | Long memberId = userWeixinDTO1.getMemberId(); |
| 112 | if (Objects.nonNull(memberId)) { | 112 | if (Objects.nonNull(memberId)) { | ... | ... |
| ... | @@ -91,12 +91,11 @@ public class MemberProfileOperationServiceImpl implements MemberProfileOperation | ... | @@ -91,12 +91,11 @@ public class MemberProfileOperationServiceImpl implements MemberProfileOperation |
| 91 | MemberDTO memberDTO = resources.getMemberDTO(); | 91 | MemberDTO memberDTO = resources.getMemberDTO(); |
| 92 | String code = memberDTO.getCode(); | 92 | String code = memberDTO.getCode(); |
| 93 | if (!StringUtils.isEmpty(code)) { | 93 | if (!StringUtils.isEmpty(code)) { |
| 94 | MemberDTO memberDTO1 = this.memberService.findByCode(code); | ||
| 95 | |||
| 94 | Member member = new Member(); | 96 | Member member = new Member(); |
| 95 | BeanUtils.copyProperties(memberDTO, member); | 97 | BeanUtils.copyProperties(memberDTO1, member); |
| 96 | 98 | ||
| 97 | MemberDTO memberDTO1 = this.memberService.findByCode(code); | ||
| 98 | Long id = memberDTO1.getId(); | ||
| 99 | member.setId(id); | ||
| 100 | member.setBirthday(_memberProfileDTO.getBirthday()); | 99 | member.setBirthday(_memberProfileDTO.getBirthday()); |
| 101 | member.setGender(_memberProfileDTO.getGender()); | 100 | member.setGender(_memberProfileDTO.getGender()); |
| 102 | this.memberService.update(member); | 101 | this.memberService.update(member); | ... | ... |
| 1 | spring: | 1 | spring: |
| 2 | # 数据源 | 2 | # 数据源 |
| 3 | datasource: | 3 | datasource: |
| 4 | url: jdbc:log4jdbc:mysql://122.112.214.149:3306/tj_user_iptv?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false | 4 | # url: jdbc:log4jdbc:mysql://122.112.214.149:3306/tj_user_iptv?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false |
| 5 | # username: root | ||
| 6 | # password: root | ||
| 7 | url: jdbc:log4jdbc:mysql://139.196.145.150:3306/ucs_iptv_sichuan?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false | ||
| 5 | username: root | 8 | username: root |
| 6 | password: root | 9 | password: Tjlh@2021 |
| 7 | # 驱动程序 | 10 | # 驱动程序 |
| 8 | driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy | 11 | driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy |
| 9 | # Druid | 12 | # Druid | ... | ... |
-
Please register or sign in to post a comment