|
@@ -45,8 +45,8 @@ public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> i
|
|
List<UserRole> list = userRoleMapper.selectList(userRoleQuery);
|
|
List<UserRole> list = userRoleMapper.selectList(userRoleQuery);
|
|
|
|
|
|
Doctor doctor = null;
|
|
Doctor doctor = null;
|
|
|
|
+ QueryWrapper<Doctor> doctorQuery = new QueryWrapper<>();
|
|
if (StringUtils.isNotBlank(account.getMobile())) {
|
|
if (StringUtils.isNotBlank(account.getMobile())) {
|
|
- QueryWrapper<Doctor> doctorQuery = new QueryWrapper<>();
|
|
|
|
doctorQuery.eq("phone", account.getMobile());
|
|
doctorQuery.eq("phone", account.getMobile());
|
|
doctor = doctorService.getOne(doctorQuery);
|
|
doctor = doctorService.getOne(doctorQuery);
|
|
}
|
|
}
|
|
@@ -135,7 +135,7 @@ public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> i
|
|
doctor.setAccountID(account.getId());
|
|
doctor.setAccountID(account.getId());
|
|
doctor.setUnionid(account.getUnionid());
|
|
doctor.setUnionid(account.getUnionid());
|
|
doctor.setWxOpenID(account.getWxopenid());
|
|
doctor.setWxOpenID(account.getWxopenid());
|
|
- doctorService.updateById(doctor);
|
|
|
|
|
|
+ doctorService.update(doctor,doctorQuery);
|
|
if (StringUtils.isNotBlank(id)) {
|
|
if (StringUtils.isNotBlank(id)) {
|
|
QueryWrapper<PartnerRecommend> partnerRecommendQuery = new QueryWrapper<>();
|
|
QueryWrapper<PartnerRecommend> partnerRecommendQuery = new QueryWrapper<>();
|
|
partnerRecommendQuery.eq("subordinate_id", doctor.getId());
|
|
partnerRecommendQuery.eq("subordinate_id", doctor.getId());
|