|
@ -167,7 +167,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
String name,
|
|
String name,
|
|
String idcard,
|
|
String idcard,
|
|
@RequestParam(required = false) String ssc,
|
|
@RequestParam(required = false) String ssc,
|
|
String mobile,
|
|
|
|
|
|
@RequestParam(required = false)String mobile,
|
|
String healthLabel,
|
|
String healthLabel,
|
|
@RequestParam(required = false, defaultValue = "") String customLabel,
|
|
@RequestParam(required = false, defaultValue = "") String customLabel,
|
|
@RequestParam(required = false, defaultValue = "") String disease,
|
|
@RequestParam(required = false, defaultValue = "") String disease,
|
|
@ -224,12 +224,6 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
if (StringUtils.isEmpty(ssc)) {
|
|
if (StringUtils.isEmpty(ssc)) {
|
|
return error(-1, "社保卡号不允许为空!");
|
|
return error(-1, "社保卡号不允许为空!");
|
|
}
|
|
}
|
|
if (!StringUtils.isEmpty(mobile)) {
|
|
|
|
Patient patient = patientService.findByMobile(mobile);
|
|
|
|
if (patient != null && !StringUtils.equals(patient.getIdcard(), idcard)) {
|
|
|
|
return error(-1, "该手机号已绑定其他身份证号!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (StringUtils.isEmpty(healthLabel)) {
|
|
if (StringUtils.isEmpty(healthLabel)) {
|
|
return error(-1, "健康情况标签不能为空!");
|
|
return error(-1, "健康情况标签不能为空!");
|
|
}
|
|
}
|
|
@ -240,7 +234,12 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
if (StringUtils.isNotEmpty(images)) {
|
|
if (StringUtils.isNotEmpty(images)) {
|
|
images = CommonUtil.copyTempImage(images);
|
|
images = CommonUtil.copyTempImage(images);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (!org.springframework.util.StringUtils.isEmpty(mobile)) {
|
|
|
|
Patient patient = patientService.findByMobile(mobile);
|
|
|
|
if (patient != null && !StringUtils.equals(patient.getIdcard(), idcard)) {
|
|
|
|
return error(-1, "该手机号已绑定其他身份证号!");
|
|
|
|
}
|
|
|
|
}
|
|
Doctor cDoctor = doctorService.findDoctorByCode(getUID());
|
|
Doctor cDoctor = doctorService.findDoctorByCode(getUID());
|
|
SignFamily sf = familyContractService.agent(getAccessToken(), name, doctor, doctorName,
|
|
SignFamily sf = familyContractService.agent(getAccessToken(), name, doctor, doctorName,
|
|
healthDoctor, healthDoctorName, majorDoctor, majorDoctorName, cDoctor.getHospital(), cDoctor.getHosptialName(),
|
|
healthDoctor, healthDoctorName, majorDoctor, majorDoctorName, cDoctor.getHospital(), cDoctor.getHosptialName(),
|