|
@@ -246,16 +246,6 @@ public class UserController extends AppBaseController {
|
|
|
if(0 != idCardVerificationResponse.getResult()){
|
|
if(0 != idCardVerificationResponse.getResult()){
|
|
|
throw new CustomException(idCardVerificationResponse.getDescription());
|
|
throw new CustomException(idCardVerificationResponse.getDescription());
|
|
|
}
|
|
}
|
|
|
- FsDoctor doctor= doctorService.selectFsDoctorByUserId(Long.parseLong(getUserId()));
|
|
|
|
|
- if(doctor!=null){
|
|
|
|
|
- if(doctor.getIsAudit().equals(0)){
|
|
|
|
|
- return R.error(String.format("您已提交申请: %s,等待审核...",doctor.getDoctorName()));
|
|
|
|
|
- }
|
|
|
|
|
- else if(doctor.getIsAudit().equals(1)){
|
|
|
|
|
- return R.error(String.format("您已提交过申请 提交信息: %s",doctor.getDoctorName()));
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
if(param.getDoctorType().equals(1)){//医生
|
|
if(param.getDoctorType().equals(1)){//医生
|
|
|
if(param.getHospitalId() == null){
|
|
if(param.getHospitalId() == null){
|
|
|
return R.error("请选择,所属医院");
|
|
return R.error("请选择,所属医院");
|
|
@@ -274,10 +264,28 @@ public class UserController extends AppBaseController {
|
|
|
return R.error("药剂师,绑定店铺审核状态还未通过");
|
|
return R.error("药剂师,绑定店铺审核状态还未通过");
|
|
|
}else if(!fsStoreScrm.getStatus().equals(1)){
|
|
}else if(!fsStoreScrm.getStatus().equals(1)){
|
|
|
return R.error("药剂师,绑定店铺状态未启用!");
|
|
return R.error("药剂师,绑定店铺状态未启用!");
|
|
|
|
|
+ }else{
|
|
|
|
|
+ Boolean idNumberInShop = doctorService.isIdNumberInShop(param.getIdCard(), param.getStoreId());
|
|
|
|
|
+ if(idNumberInShop){
|
|
|
|
|
+ return R.error("该药剂师已在当前店铺存在");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
param.setStoreName(fsStoreScrm.getStoreName());
|
|
param.setStoreName(fsStoreScrm.getStoreName());
|
|
|
}
|
|
}
|
|
|
- doctor=new FsDoctor();
|
|
|
|
|
|
|
+
|
|
|
|
|
+ //一个用户可以提交多个申请
|
|
|
|
|
+// FsDoctor doctor= doctorService.selectFsDoctorByUserId(Long.parseLong(getUserId()));
|
|
|
|
|
+// if(doctor!=null){
|
|
|
|
|
+// if(doctor.getIsAudit().equals(0)){
|
|
|
|
|
+// return R.error(String.format("您已提交申请: %s,等待审核...",doctor.getDoctorName()));
|
|
|
|
|
+// }
|
|
|
|
|
+// else if(doctor.getIsAudit().equals(1)){
|
|
|
|
|
+// return R.error(String.format("您已提交过申请 提交信息: %s",doctor.getDoctorName()));
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ FsDoctor doctor=new FsDoctor();
|
|
|
BeanUtils.copyProperties(param,doctor);
|
|
BeanUtils.copyProperties(param,doctor);
|
|
|
doctor.setUserId(Long.parseLong(getUserId()));
|
|
doctor.setUserId(Long.parseLong(getUserId()));
|
|
|
doctor.setIsAudit(0);
|
|
doctor.setIsAudit(0);
|