|
@ -1,5 +1,7 @@
|
|
|
package com.yihu.wlyy.web.patient.prescription;
|
|
|
|
|
|
import com.yihu.wlyy.aop.ObserverRequired;
|
|
|
import com.yihu.wlyy.service.app.account.DoctorInfoService;
|
|
|
import com.yihu.wlyy.service.app.prescription.PrescriptionInfoService;
|
|
|
import com.yihu.wlyy.util.SystemConf;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
@ -26,6 +28,8 @@ public class PatientPrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private PrescriptionInfoService prescriptionInfoService;
|
|
|
@Autowired
|
|
|
private DoctorInfoService doctorInfoService;
|
|
|
|
|
|
/**
|
|
|
* 获取处方列表
|
|
@ -120,5 +124,20 @@ public class PatientPrescriptionInfoController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//判断是否在线上安装证书
|
|
|
@ObserverRequired
|
|
|
@ApiOperation("判断医生的CA是否有在线上安装证书")
|
|
|
@ResponseBody
|
|
|
@RequestMapping(value = "/doctor/isAuthentication", method = RequestMethod.POST)
|
|
|
public String isAuthentication(@RequestParam(required = true,value="doctorCode")@ApiParam(name="doctorCode",value="医生的code")String doctorCode){
|
|
|
try {
|
|
|
//0de6a26a62dd11e69faffa163e8aee56
|
|
|
JSONObject data = doctorInfoService.isAuthentication(getRepUID());
|
|
|
return write(200, "获取信息成功!", "data", data);
|
|
|
}catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|