|
@ -6,6 +6,7 @@ import com.yihu.wlyy.service.app.account.DoctorInfoService;
|
|
|
import com.yihu.wlyy.service.app.account.PatientInfoService;
|
|
|
import com.yihu.wlyy.service.app.sign.SignWebService;
|
|
|
import com.yihu.wlyy.service.common.account.PatientService;
|
|
|
import com.yihu.wlyy.service.third.jw.JwSignService;
|
|
|
import com.yihu.wlyy.util.CommonUtil;
|
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
|
import com.yihu.wlyy.util.IdCardUtil;
|
|
@ -41,6 +42,8 @@ public class DoctorSignController extends WeixinBaseController {
|
|
|
private PatientInfoService patientInfoService;
|
|
|
@Autowired
|
|
|
private SignWebService signWebService;
|
|
|
@Autowired
|
|
|
private JwSignService jwSignService;
|
|
|
|
|
|
@Autowired
|
|
|
private CommonUtil CommonUtil;
|
|
@ -799,4 +802,22 @@ public class DoctorSignController extends WeixinBaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 根据身份证号同步居民签约信息
|
|
|
* @param idcard
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/loadSignFamilyByIdcard", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String loadSignFamilyByIdcard(@RequestParam(required = true)String idcard){
|
|
|
try {
|
|
|
String re = jwSignService.LoadSignFamilyByIdcard(idcard);
|
|
|
Patient patient = patientService.findByIdcard(idcard);
|
|
|
return write(200, "更新签约成功","patient",patient);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "更新签约失败!");
|
|
|
}
|
|
|
}
|
|
|
}
|