|
@ -25,6 +25,7 @@ import com.yihu.wlyy.service.common.account.RoleService;
|
|
|
import com.yihu.wlyy.util.*;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import io.swagger.models.auth.In;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.http.NameValuePair;
|
|
@ -1953,9 +1954,9 @@ public class DoctorController extends BaseController {
|
|
|
@ResponseBody
|
|
|
@RequestMapping(value = "/requestRealNameSoftCertAndSign", method = RequestMethod.POST)
|
|
|
public String requestRealNameSoftCertAndSign(
|
|
|
@RequestParam(value = "strRealNameSoftCertCalledPasswd",required = true) String strRealNameSoftCertCalledPasswd,
|
|
|
@RequestParam(value = "strOriginalData",required = true) String strOriginalData,
|
|
|
@RequestParam(value = "prescriptionCode",required = true) String prescriptionCode){
|
|
|
@ApiParam(required = true, name = "strRealNameSoftCertCalledPasswd", value = "证书被调用保护口令") @RequestParam(value = "strRealNameSoftCertCalledPasswd",required = true) String strRealNameSoftCertCalledPasswd,
|
|
|
@ApiParam(required = true, name = "strOriginalData", value = "原文") @RequestParam(value = "strOriginalData",required = true) String strOriginalData,
|
|
|
@ApiParam(required = true, name = "prescriptionCode", value = "处方code") @RequestParam(value = "prescriptionCode",required = true) String prescriptionCode){
|
|
|
|
|
|
try {
|
|
|
Doctor doctor = doctorInfoService.findDoctorByCode(getRepUID());
|
|
@ -1978,7 +1979,8 @@ public class DoctorController extends BaseController {
|
|
|
@ObserverRequired
|
|
|
@ResponseBody
|
|
|
@RequestMapping(value = "/checkCertificate", method = RequestMethod.GET)
|
|
|
public String checkCertificate(@RequestParam(value = "certificateNum",required = true) String certificateNum){
|
|
|
public String checkCertificate(
|
|
|
@ApiParam(required = true, name = "certificateNum", value = "证书编号") @RequestParam(value = "certificateNum",required = true) String certificateNum){
|
|
|
|
|
|
try {
|
|
|
boolean b = doctorInfoService.checkCertificate("0de6a26a62dd11e69faffa163e8aee56",certificateNum);
|
|
@ -1997,9 +1999,9 @@ public class DoctorController extends BaseController {
|
|
|
@ResponseBody
|
|
|
@RequestMapping(value = "/verifySignOnMultiServer", method = RequestMethod.GET)
|
|
|
public String verifySignOnMultiServer(
|
|
|
@RequestParam(value = "strSignData",required = true) String strSignData,
|
|
|
@RequestParam(value = "strCertData",required = true) String strCertData,
|
|
|
@RequestParam(value = "strOriginalData",required = true) String strOriginalData){
|
|
|
@ApiParam(required = true, name = "strSignData", value = "签名值") @RequestParam(value = "strSignData",required = true) String strSignData,
|
|
|
@ApiParam(required = true, name = "strCertData", value = "证书主体数据") @RequestParam(value = "strCertData",required = true) String strCertData,
|
|
|
@ApiParam(required = true, name = "strOriginalData", value = "原文数据") @RequestParam(value = "strOriginalData",required = true) String strOriginalData){
|
|
|
|
|
|
try {
|
|
|
boolean b = doctorInfoService.verifySignOnMultiServer(strSignData,strCertData,strOriginalData);
|