提交 fe852c29 authored 作者: luzhangjian's avatar luzhangjian

feat:修改

上级 173ad36f
...@@ -33,7 +33,7 @@ public class ImInfoDetailDocResVo { ...@@ -33,7 +33,7 @@ public class ImInfoDetailDocResVo {
private String admId; private String admId;
@ApiModelProperty("就诊日期") @ApiModelProperty("就诊日期")
private Date admTime; private String admTime;
@ApiModelProperty("订单状态 2.进行中 3.已完成") @ApiModelProperty("订单状态 2.进行中 3.已完成")
private Integer status; private Integer status;
......
...@@ -110,11 +110,11 @@ public class PatientMedicalRecordServiceImpl implements PatientMedicalRecordServ ...@@ -110,11 +110,11 @@ public class PatientMedicalRecordServiceImpl implements PatientMedicalRecordServ
public BaseResponse<PatientMedicalRecordVO> detailMedicalRecord(InvalidMedicalRecordDTO dto) { public BaseResponse<PatientMedicalRecordVO> detailMedicalRecord(InvalidMedicalRecordDTO dto) {
log.info("病历详情入参:{}", dto.toString()); log.info("病历详情入参:{}", dto.toString());
if (StringUtils.isEmpty(dto.getAdmId())) { if (StringUtils.isEmpty(dto.getAdmId())) {
throw new BusinessException("就诊id不能未空"); throw new BusinessException("amdId不能未空");
} }
PatientMedicalRecordEntity entity = patientMedicalRecordMapper.getByAdmId(dto.getAdmId()); PatientMedicalRecordEntity entity = patientMedicalRecordMapper.getByAdmId(dto.getAdmId());
if (ObjectUtil.isNull(entity)) { if (ObjectUtil.isNull(entity)) {
throw new BusinessException("未找到该病历,或病例失效"); return BaseResponse.success();
} }
PatientMedicalRecordVO vo = new PatientMedicalRecordVO(); PatientMedicalRecordVO vo = new PatientMedicalRecordVO();
BeanUtils.copyProperties(entity, vo); BeanUtils.copyProperties(entity, vo);
......
package com.ebaiyihui.family.doctor.server.service.impl; package com.ebaiyihui.family.doctor.server.service.impl;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
...@@ -231,7 +232,9 @@ public class PatientSignServiceImpl implements PatientSignService { ...@@ -231,7 +232,9 @@ public class PatientSignServiceImpl implements PatientSignService {
resVo.setDeptId(patientSignEntity.getDeptId().toString()); resVo.setDeptId(patientSignEntity.getDeptId().toString());
resVo.setDeptName(patientSignEntity.getDeptName()); resVo.setDeptName(patientSignEntity.getDeptName());
resVo.setSignEndTime(patientSignEntity.getSignEndTime()); resVo.setSignEndTime(patientSignEntity.getSignEndTime());
resVo.setAdmTime(patientSignEntity.getSignEndTime()); // 格式化日期 date格式化
String signEndTime = DateUtil.format(patientSignEntity.getSignEndTime(), "yyyy-MM-dd");
resVo.setAdmTime(signEndTime);
//患者信息 //患者信息
PatientEntity patientEntity = patientMapper.selectById(patientSignEntity.getPatientId()); PatientEntity patientEntity = patientMapper.selectById(patientSignEntity.getPatientId());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论