|
@@ -129,7 +129,6 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
AdminUser adminUsers = adminUserService.getOne(adminUserQueryWrapper);
|
|
AdminUser adminUsers = adminUserService.getOne(adminUserQueryWrapper);
|
|
|
|
|
|
if (null != adminUsers) {
|
|
if (null != adminUsers) {
|
|
-
|
|
|
|
AdminCompSelect adminCompSelect = new AdminCompSelect();
|
|
AdminCompSelect adminCompSelect = new AdminCompSelect();
|
|
adminCompSelect.setOrderId(adminUsers.getId());
|
|
adminCompSelect.setOrderId(adminUsers.getId());
|
|
adminCompSelect.setPhone(phone);
|
|
adminCompSelect.setPhone(phone);
|
|
@@ -140,6 +139,10 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
adminCompSelect.setDoctorAndSpecialist("1");
|
|
adminCompSelect.setDoctorAndSpecialist("1");
|
|
|
|
+ adminCompSelect.setCompleteInformation(1);
|
|
|
|
+ adminCompSelect.setWisMhu("允许");
|
|
|
|
+ adminCompSelect.setWisWjdc("允许");
|
|
|
|
+ adminCompSelect.setName(adminUser.getName());
|
|
adminCompSelect.setYzh(user.getYzh());
|
|
adminCompSelect.setYzh(user.getYzh());
|
|
|
|
|
|
|
|
|
|
@@ -168,6 +171,10 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
adminCompSelect.setDoctorAndSpecialist("1");
|
|
adminCompSelect.setDoctorAndSpecialist("1");
|
|
|
|
+ adminCompSelect.setCompleteInformation(1);
|
|
|
|
+ adminCompSelect.setWisMhu("允许");
|
|
|
|
+ adminCompSelect.setWisWjdc("允许");
|
|
|
|
+ adminCompSelect.setName(adminUser.getName());
|
|
adminCompSelect.setYzh(user.getYzh());
|
|
adminCompSelect.setYzh(user.getYzh());
|
|
|
|
|
|
QueryWrapper<AdminCompSelect> adminCompSelectQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<AdminCompSelect> adminCompSelectQueryWrapper = new QueryWrapper<>();
|
|
@@ -182,6 +189,10 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
} else {
|
|
} else {
|
|
adminCompSelectService.save(adminCompSelect);
|
|
adminCompSelectService.save(adminCompSelect);
|
|
}
|
|
}
|
|
|
|
+ adminUser.setName("");
|
|
|
|
+ adminUser.setDwname("");
|
|
|
|
+ adminUser.setKsname("");
|
|
|
|
+ adminUser.setCardPic("");
|
|
this.save(adminUser);
|
|
this.save(adminUser);
|
|
|
|
|
|
}
|
|
}
|
|
@@ -447,19 +458,22 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public void updateByUser(AdminUser adminUser) {
|
|
|
|
|
|
+ public void updateByUser(AdminUser adminUser) {
|
|
String phone = adminUser.getPhone();
|
|
String phone = adminUser.getPhone();
|
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
QueryWrapper<AdminCompSelect> adminCompSelectQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<AdminCompSelect> adminCompSelectQueryWrapper = new QueryWrapper<>();
|
|
- adminCompSelectQueryWrapper.eq("phone",phone);
|
|
|
|
- adminCompSelectQueryWrapper.eq("sys_org_code",sysUser.getOrgCode());
|
|
|
|
- adminCompSelectQueryWrapper.eq("doctor_and_specialist","1");
|
|
|
|
|
|
+ adminCompSelectQueryWrapper.eq("phone", phone);
|
|
|
|
+ adminCompSelectQueryWrapper.eq("sys_org_code", sysUser.getOrgCode());
|
|
|
|
+ adminCompSelectQueryWrapper.eq("doctor_and_specialist", "1");
|
|
AdminCompSelect adminCompSelect = adminCompSelectService.getOne(adminCompSelectQueryWrapper);
|
|
AdminCompSelect adminCompSelect = adminCompSelectService.getOne(adminCompSelectQueryWrapper);
|
|
- if (null!=adminCompSelect){
|
|
|
|
|
|
+ if (null != adminCompSelect) {
|
|
adminCompSelect.setKsName(adminUser.getKsname());
|
|
adminCompSelect.setKsName(adminUser.getKsname());
|
|
adminCompSelect.setDwName(adminUser.getDwname());
|
|
adminCompSelect.setDwName(adminUser.getDwname());
|
|
adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
|
|
+ adminCompSelect.setName(adminUser.getName());
|
|
|
|
+ adminCompSelect.setWisWjdc(adminUser.getWisWjdc());
|
|
|
|
+ adminCompSelect.setWisMhu(adminUser.getWisMhu());
|
|
adminCompSelectService.updateById(adminCompSelect);
|
|
adminCompSelectService.updateById(adminCompSelect);
|
|
}
|
|
}
|
|
adminUserService.updateById(adminUser);
|
|
adminUserService.updateById(adminUser);
|
|
@@ -508,6 +522,12 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
adminCompSelect.setDoctorAndSpecialist("2");
|
|
adminCompSelect.setDoctorAndSpecialist("2");
|
|
|
|
+ adminCompSelect.setCompleteInformation(1);
|
|
|
|
+ adminCompSelect.setYzh(user.getYzh());
|
|
|
|
+ adminCompSelect.setCompleteInformation(1);
|
|
|
|
+ adminCompSelect.setWisMhu("允许");
|
|
|
|
+ adminCompSelect.setWisWjdc("允许");
|
|
|
|
+ adminCompSelect.setName(adminUser.getName());
|
|
adminCompSelect.setYzh(user.getYzh());
|
|
adminCompSelect.setYzh(user.getYzh());
|
|
|
|
|
|
QueryWrapper<AdminCompSelect> adminCompSelectQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<AdminCompSelect> adminCompSelectQueryWrapper = new QueryWrapper<>();
|
|
@@ -518,7 +538,7 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
List<AdminCompSelect> list = adminCompSelectService.list(adminCompSelectQueryWrapper);
|
|
List<AdminCompSelect> list = adminCompSelectService.list(adminCompSelectQueryWrapper);
|
|
|
|
|
|
if (null != list && list.size() > 0) {
|
|
if (null != list && list.size() > 0) {
|
|
- return Result.error("该手机号已存在该公司,请更换手机号进行注册");
|
|
|
|
|
|
+ return Result.error("该手机号已存在该公司,请更换手机号进行注册");
|
|
} else {
|
|
} else {
|
|
adminCompSelectService.save(adminCompSelect);
|
|
adminCompSelectService.save(adminCompSelect);
|
|
}
|
|
}
|
|
@@ -535,6 +555,12 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
adminCompSelect.setDoctorAndSpecialist("2");
|
|
adminCompSelect.setDoctorAndSpecialist("2");
|
|
|
|
+ adminCompSelect.setCompleteInformation(1);
|
|
|
|
+ adminCompSelect.setYzh(user.getYzh());
|
|
|
|
+ adminCompSelect.setCompleteInformation(1);
|
|
|
|
+ adminCompSelect.setWisMhu("允许");
|
|
|
|
+ adminCompSelect.setWisWjdc("允许");
|
|
|
|
+ adminCompSelect.setName(adminUser.getName());
|
|
adminCompSelect.setYzh(user.getYzh());
|
|
adminCompSelect.setYzh(user.getYzh());
|
|
|
|
|
|
QueryWrapper<AdminCompSelect> adminCompSelectQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<AdminCompSelect> adminCompSelectQueryWrapper = new QueryWrapper<>();
|
|
@@ -549,6 +575,11 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
} else {
|
|
} else {
|
|
adminCompSelectService.save(adminCompSelect);
|
|
adminCompSelectService.save(adminCompSelect);
|
|
}
|
|
}
|
|
|
|
+ adminUser.setName("");
|
|
|
|
+ adminUser.setDwname("");
|
|
|
|
+ adminUser.setKsname("");
|
|
|
|
+ adminUser.setCardPic("");
|
|
|
|
+
|
|
this.save(adminUser);
|
|
this.save(adminUser);
|
|
|
|
|
|
}
|
|
}
|
|
@@ -597,19 +628,37 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
QueryWrapper<AdminUser> adminUserQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<AdminUser> adminUserQueryWrapper = new QueryWrapper<>();
|
|
adminUserQueryWrapper.eq("phone", adminUser.getPhone());
|
|
adminUserQueryWrapper.eq("phone", adminUser.getPhone());
|
|
adminUserQueryWrapper.eq("sys_org_code", sysOrgCode);
|
|
adminUserQueryWrapper.eq("sys_org_code", sysOrgCode);
|
|
|
|
+
|
|
AdminUser one = adminUserService.getOne(adminUserQueryWrapper);
|
|
AdminUser one = adminUserService.getOne(adminUserQueryWrapper);
|
|
if (null != one) {
|
|
if (null != one) {
|
|
- one.setCard(adminUserVO.getCard());
|
|
|
|
- one.setCardholderName(adminUserVO.getName());
|
|
|
|
- one.setBackCard(adminUserVO.getBackCard());
|
|
|
|
- one.setCardholderPhone(adminUserVO.getCardholderPhone());
|
|
|
|
- one.setDwname(adminUserVO.getDwname());
|
|
|
|
- one.setKsname(adminUserVO.getKsname());
|
|
|
|
- one.setCompleteInformation(2);
|
|
|
|
|
|
+// one.setCard(adminUserVO.getCard());
|
|
|
|
+// one.setCardholderName(adminUserVO.getName());
|
|
|
|
+// one.setBackCard(adminUserVO.getBackCard());
|
|
|
|
+// one.setCardholderPhone(adminUserVO.getCardholderPhone());
|
|
|
|
+// one.setDwname(adminUserVO.getDwname());
|
|
|
|
+// one.setKsname(adminUserVO.getKsname());
|
|
|
|
+// one.setCompleteInformation(2);
|
|
one.setDoctorAndSpecialist(adminUserVO.getDoctorAndSpecialist());
|
|
one.setDoctorAndSpecialist(adminUserVO.getDoctorAndSpecialist());
|
|
- one.setCardPic(adminUserVO.getCardPic());
|
|
|
|
|
|
+// one.setCardPic(adminUserVO.getCardPic());
|
|
this.updateById(one);
|
|
this.updateById(one);
|
|
}
|
|
}
|
|
|
|
+ QueryWrapper<AdminCompSelect> adminCompSelectQueryWrapper = new QueryWrapper<>();
|
|
|
|
+ adminCompSelectQueryWrapper.eq("phone", adminUser.getPhone());
|
|
|
|
+ adminCompSelectQueryWrapper.eq("sys_org_code", sysOrgCode);
|
|
|
|
+ AdminCompSelect adminCompSelect = adminCompSelectService.getOne(adminCompSelectQueryWrapper);
|
|
|
|
+ if (null != adminCompSelect) {
|
|
|
|
+ adminCompSelect.setCard(adminUserVO.getCard());
|
|
|
|
+ adminCompSelect.setCardholderName(adminUserVO.getName());
|
|
|
|
+ adminCompSelect.setBackCard(adminUserVO.getBackCard());
|
|
|
|
+ adminCompSelect.setCardholderPhone(adminUserVO.getCardholderPhone());
|
|
|
|
+ adminCompSelect.setDwName(adminUserVO.getDwname());
|
|
|
|
+ adminCompSelect.setKsName(adminUserVO.getKsname());
|
|
|
|
+ adminCompSelect.setCompleteInformation(2);
|
|
|
|
+ adminCompSelect.setDoctorAndSpecialist(adminUserVO.getDoctorAndSpecialist());
|
|
|
|
+ adminCompSelect.setCardPic(adminUserVO.getCardPic());
|
|
|
|
+ adminCompSelectService.updateById(adminCompSelect);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -618,15 +667,16 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
String phone = adminUser.getPhone();
|
|
String phone = adminUser.getPhone();
|
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
QueryWrapper<AdminCompSelect> adminCompSelectQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<AdminCompSelect> adminCompSelectQueryWrapper = new QueryWrapper<>();
|
|
- adminCompSelectQueryWrapper.eq("phone",phone);
|
|
|
|
- adminCompSelectQueryWrapper.eq("sys_org_code",sysUser.getOrgCode());
|
|
|
|
- adminCompSelectQueryWrapper.eq("doctor_and_specialist","2");
|
|
|
|
|
|
+ adminCompSelectQueryWrapper.eq("phone", phone);
|
|
|
|
+ adminCompSelectQueryWrapper.eq("sys_org_code", sysUser.getOrgCode());
|
|
|
|
+ adminCompSelectQueryWrapper.eq("doctor_and_specialist", "2");
|
|
AdminCompSelect adminCompSelect = adminCompSelectService.getOne(adminCompSelectQueryWrapper);
|
|
AdminCompSelect adminCompSelect = adminCompSelectService.getOne(adminCompSelectQueryWrapper);
|
|
- if (null!=adminCompSelect){
|
|
|
|
|
|
+ if (null != adminCompSelect) {
|
|
adminCompSelect.setKsName(adminUser.getKsname());
|
|
adminCompSelect.setKsName(adminUser.getKsname());
|
|
adminCompSelect.setDwName(adminUser.getDwname());
|
|
adminCompSelect.setDwName(adminUser.getDwname());
|
|
adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
|
|
+ adminCompSelect.setName(adminUser.getName());
|
|
adminCompSelectService.updateById(adminCompSelect);
|
|
adminCompSelectService.updateById(adminCompSelect);
|
|
}
|
|
}
|
|
adminUserService.updateById(adminUser);
|
|
adminUserService.updateById(adminUser);
|