|
|
@@ -4,6 +4,7 @@ import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
|
+import com.nb.app.msg.bean.MsgBean;
|
|
|
import com.nb.core.entity.GenericEntity;
|
|
|
import com.nb.app.msg.enums.MsgEnum;
|
|
|
import com.nb.core.enums.SexEnum;
|
|
|
@@ -41,7 +42,7 @@ public class AppMsgEntity extends GenericEntity<String> {
|
|
|
@ApiModelProperty(value = "发送人名称")
|
|
|
private String senderName;
|
|
|
|
|
|
- @ApiModelProperty(value = "发送人id")
|
|
|
+ @ApiModelProperty(value = "病人姓名")
|
|
|
@JsonIgnoreProperties
|
|
|
private String patientName;
|
|
|
|
|
|
@@ -80,6 +81,19 @@ public class AppMsgEntity extends GenericEntity<String> {
|
|
|
return StrUtil.isEmpty(patientName)?patientCode:patientName;
|
|
|
}
|
|
|
|
|
|
+ public String getPayload() {
|
|
|
+ if(MsgEnum.ASSIST_LIFT.equals(this.getMsgType())
|
|
|
+ ||MsgEnum.DOCTOR_LIFT.equals(this.getMsgType())){
|
|
|
+ return String.format("%s与%s解除绑定",this.getSenderName(),this.getPatient());
|
|
|
+ }
|
|
|
+
|
|
|
+ return payload;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPayload(String payload) {
|
|
|
+ this.payload = payload;
|
|
|
+ }
|
|
|
+
|
|
|
public String getTitle() {
|
|
|
if(msgType==null){
|
|
|
return "";
|
|
|
@@ -101,6 +115,10 @@ public class AppMsgEntity extends GenericEntity<String> {
|
|
|
return getSenderName()+"通过了"+getPatient()+"的绑定申请";
|
|
|
case ASSIST_EVAL:
|
|
|
return getPatient()+getExtend()+"未进行疼痛评估";
|
|
|
+ case ASSIST_LIFT:
|
|
|
+ return "患者绑定解除";
|
|
|
+ case DOCTOR_LIFT:
|
|
|
+ return "患者绑定解除";
|
|
|
default: return "";
|
|
|
}
|
|
|
}
|