提交 40e0e470 authored 作者: 杨凯's avatar 杨凯

feat:家庭医生初始化

上级 8dc1926d
......@@ -28,4 +28,6 @@ public class SendImMsgDTO {
private String admId;
private String abnormalId;
private String intention;
}
......@@ -32,4 +32,6 @@ public class RegisterPatientVo {
private String signSeqId;
private String abnormalId;
private String intention;
}
......@@ -8,7 +8,6 @@ import com.doctoruser.api.pojo.base.vo.doctor.PersonnelInfo;
import com.doctoruser.api.pojo.vo.UserInfoByDoctorIdRespVO;
import com.doctoruser.api.pojo.vo.UserInfoByUserIdRespVO;
import com.ebaiyihui.family.doctor.common.bo.*;
import com.ebaiyihui.family.doctor.common.dto.AbnormalDataDTO;
import com.ebaiyihui.family.doctor.common.dto.DoctorIdDTO;
import com.ebaiyihui.family.doctor.common.dto.HealthInfoDTO;
import com.ebaiyihui.family.doctor.common.dto.SendImMsgDTO;
......@@ -184,16 +183,7 @@ public class ImChatTemplateImpl implements ImChatTemplate {
// 报告异常特殊处理
if (MsgTempTypeEnum.REP_ANO.getValue().equals(sendImMsgDTO.getType())) {
AbnormalDataDTO abnormalDataDTO = new AbnormalDataDTO();
abnormalDataDTO.setPhone(patientSignInfo.getPatientPhone());
abnormalDataDTO.setAbnormalId(sendImMsgDTO.getAbnormalId());
String result = thirdOrderPushUtil.getAbnormalData(abnormalDataDTO);
if (!StringUtils.isEmpty(result)) {
Result<String> abResult = JSON.parseObject(result, Result.class);
if (abResult.isSuccess()) {
content = MessageFormat.format(content, patientSignInfo.getDoctorName(), abResult.getData());
}
}
content = MessageFormat.format(content, patientSignInfo.getDoctorName(), sendImMsgDTO.getIntention());
}
if (SenderEnum.DOCTOR.getDesc().equals(componentsList.get(i).getSender())) {
......
......@@ -113,6 +113,10 @@ public class MobileBenefitPackageServiceImpl implements MobileBenefitPackageServ
registerPatientVo.setAbnormalId(map.get("abnormalId"));
}
if (Objects.nonNull(map.get("intention"))) {
registerPatientVo.setIntention(map.get("intention"));
}
if (Objects.nonNull(map.get("signSeqId"))) {
registerPatientVo.setSignSeqId(map.get("signSeqId"));
PatientSignEntity patientSignEntity = patientSignMapper.selectById(Long.valueOf(map.get("signSeqId")));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论