|
|
|
@ -122,10 +122,36 @@ public class BusinessController { |
|
|
|
|
return ResponseResult.JOIN_QUEUE.toMessResult(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@PostMapping("cvms") |
|
|
|
|
@ResponseBody |
|
|
|
|
public MessageSendResult cvms(String content, String patientId, String url, String organizeName, String IdCard, String buttonName,String deptCode){ |
|
|
|
|
log.info("进入接口-[危机值推送接口]-医院通知/新版本待定,content-{},patientId-{},url-{},organizeName-{},IdCard-{},buttonName-{},deptCode-{}", content, patientId, url, organizeName, IdCard,buttonName,deptCode); |
|
|
|
|
MessageSendResult check = BusinessHelper.ParamsCheck(organizeName, patientId, null, deptCode); |
|
|
|
|
if (!check.getErrcode().equals("0")) { |
|
|
|
|
return check; |
|
|
|
|
} |
|
|
|
|
if (content == null) { |
|
|
|
|
log.info("[危机值推送接口]-医院通知/新版本待定, 必填字段为空"); |
|
|
|
|
return ResponseResult.PARAMETER_IS_NULL.toMessResult(); |
|
|
|
|
} |
|
|
|
|
Map<String, String> message = new HashMap<>(); |
|
|
|
|
message.put("tip", MessageTypeEnum.CVMS.CODE); |
|
|
|
|
message.put("organizeName", organizeName); |
|
|
|
|
message.put("buttonName",buttonName); |
|
|
|
|
message.put("patientId", patientId); |
|
|
|
|
message.put("deptCode", deptCode); |
|
|
|
|
message.put("IdCard", IdCard); |
|
|
|
|
message.put("content", content); |
|
|
|
|
message.put("url", url == null ? "" : url); |
|
|
|
|
rabbitSender.TipSend(message); |
|
|
|
|
return ResponseResult.JOIN_QUEUE.toMessResult(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("universal") |
|
|
|
|
@ResponseBody |
|
|
|
|
public MessageSendResult universal(String content, String patientId, String url, String organizeName, String IdCard, String doctorCode) { |
|
|
|
|
log.info("进入接口-[通用推送接口]-绑定通知,content-{},patientId-{},url-{},organizeName-{},IdCard-{},doctorCode-{}", content, patientId, url, organizeName, IdCard, doctorCode); |
|
|
|
|
public MessageSendResult universal(String content, String patientId, String url, String organizeName, String IdCard, String doctorCode,String buttonName) { |
|
|
|
|
log.info("进入接口-[通用推送接口]-绑定通知,content-{},patientId-{},url-{},organizeName-{},IdCard-{},doctorCode-{},buttonName-{}", content, patientId, url, organizeName, IdCard, doctorCode,buttonName); |
|
|
|
|
MessageSendResult check = BusinessHelper.ParamsCheck(organizeName, patientId, null, doctorCode); |
|
|
|
|
if (!check.getErrcode().equals("0")) { |
|
|
|
|
return check; |
|
|
|
@ -137,6 +163,7 @@ public class BusinessController { |
|
|
|
|
Map<String, String> message = new HashMap<>(); |
|
|
|
|
message.put("tip", MessageTypeEnum.UNIVERSAL.CODE); |
|
|
|
|
message.put("organizeName", organizeName); |
|
|
|
|
message.put("buttonName",buttonName); |
|
|
|
|
message.put("patientId", patientId); |
|
|
|
|
message.put("doctorCode", doctorCode); |
|
|
|
|
message.put("IdCard", IdCard); |
|
|
|
|