|
|
@@ -3,6 +3,7 @@ package cn.hnthyy.thmz.controller;
|
|
|
import cn.hnthyy.thmz.Utils.AddressResolutionUtil;
|
|
|
import cn.hnthyy.thmz.Utils.AssertUtil;
|
|
|
import cn.hnthyy.thmz.Utils.R;
|
|
|
+import cn.hnthyy.thmz.Utils.TokenUtil;
|
|
|
import cn.hnthyy.thmz.Utils.Tools;
|
|
|
import cn.hnthyy.thmz.comment.UserLoginToken;
|
|
|
import cn.hnthyy.thmz.entity.his.mz.CodeNameEntity;
|
|
|
@@ -13,6 +14,8 @@ import cn.hnthyy.thmz.service.his.mz.*;
|
|
|
import cn.hnthyy.thmz.service.his.zd.*;
|
|
|
import cn.hnthyy.thmz.service.thmz.UserService;
|
|
|
import cn.hutool.core.convert.Convert;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
+import cn.hutool.http.HttpUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -20,6 +23,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.*;
|
|
|
|
|
|
@Slf4j
|
|
|
@@ -67,6 +71,8 @@ public class CommonController {
|
|
|
//门诊结算单地址
|
|
|
@Value("${mzjsdHost}")
|
|
|
private String mzjsdHost;
|
|
|
+ @Value("${wxPayOrderServiceUrl}")
|
|
|
+ private String wxPayOrderServiceUrl;
|
|
|
@Resource
|
|
|
private DictDataService dictDataService;
|
|
|
|
|
|
@@ -881,6 +887,24 @@ public class CommonController {
|
|
|
resultMap.put("data", mzjsdHost);
|
|
|
return resultMap;
|
|
|
}
|
|
|
+ /**
|
|
|
+ * @description: 医生签名
|
|
|
+ * @author: lihong
|
|
|
+ * @date: 2024/7/18 14:45
|
|
|
+ * @param: request
|
|
|
+ * @param: doctorCode
|
|
|
+ * @return: cn.hnthyy.thmz.Utils.R
|
|
|
+ **/
|
|
|
+ @RequestMapping(value = "/getDoctorSignatureImage", method = {RequestMethod.GET})
|
|
|
+ public R getDoctorSignatureImage(String doctorCode) {
|
|
|
+ String url = StrUtil.format("{}/doctorSignatureImage/{}.png", wxPayOrderServiceUrl, doctorCode);
|
|
|
+ if(HttpUtil.get(url) == null){
|
|
|
+ return R.error();
|
|
|
+ }
|
|
|
+ return R.ok().put("data",url);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 根据输入的参数查询诊断列表的前50个诊断
|