|
@@ -8,6 +8,7 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
+import thyyxxk.webserver.api.medicallaboratory.model.PatientType;
|
|
|
import thyyxxk.webserver.config.auth.PassToken;
|
|
|
import thyyxxk.webserver.config.exception.BizException;
|
|
|
import thyyxxk.webserver.config.exception.ExceptionEnum;
|
|
@@ -116,7 +117,13 @@ public class MedicalLaboratoryController {
|
|
|
"\"url\":\"" + redirect + "\"}";
|
|
|
|
|
|
JSONObject obj = new JSONObject();
|
|
|
- obj.put("cardNo", body.getPatNo());
|
|
|
+ String cardNo;
|
|
|
+ if (null != body.getPatType() && body.getPatType() == PatientType.INPATIENT) {
|
|
|
+ cardNo = dao.getPatientIdByInpatientNo(body.getPatNo());
|
|
|
+ } else {
|
|
|
+ cardNo = body.getPatNo();
|
|
|
+ }
|
|
|
+ obj.put("cardNo", cardNo);
|
|
|
obj.put("msgContext", JSON.parseObject(msgContent));
|
|
|
wxServer.pushWxMessage(obj);
|
|
|
}
|