提交 4cf138ff authored 作者: 杨凯's avatar 杨凯

feat:家庭医生初始化

上级 7c9e5596
...@@ -14,12 +14,19 @@ import java.util.Date; ...@@ -14,12 +14,19 @@ import java.util.Date;
@Data @Data
public class RequestGetScheduleForWeekDTO { public class RequestGetScheduleForWeekDTO {
@ApiModelProperty("医院id")
private Long hospitalId; private Long hospitalId;
@ApiModelProperty("部门id")
private Long deptId; private Long deptId;
@ApiModelProperty("第几周")
private Integer week; private Integer week;
@ApiModelProperty("医生id")
private String doctorId;
@ApiModelProperty("医生名称")
private String doctorName; private String doctorName;
@ApiModelProperty("业务类型") @ApiModelProperty("业务类型")
......
...@@ -33,6 +33,9 @@ public class ImInfoResVo { ...@@ -33,6 +33,9 @@ public class ImInfoResVo {
@ApiModelProperty("医生姓名") @ApiModelProperty("医生姓名")
private String doctorName; private String doctorName;
@ApiModelProperty("医生科室id")
private String deptId;
@ApiModelProperty("IM历史消息") @ApiModelProperty("IM历史消息")
private List<IMMsgResultVo> iMMsgVo; private List<IMMsgResultVo> iMMsgVo;
} }
...@@ -9,6 +9,7 @@ import com.ebaiyihui.family.doctor.common.dto.ImAccountReqDTO; ...@@ -9,6 +9,7 @@ import com.ebaiyihui.family.doctor.common.dto.ImAccountReqDTO;
import com.ebaiyihui.family.doctor.common.dto.ImInfoDetailDocReqDTO; import com.ebaiyihui.family.doctor.common.dto.ImInfoDetailDocReqDTO;
import com.ebaiyihui.family.doctor.common.dto.ImInfoListDocReqDTO; import com.ebaiyihui.family.doctor.common.dto.ImInfoListDocReqDTO;
import com.ebaiyihui.family.doctor.common.vo.*; import com.ebaiyihui.family.doctor.common.vo.*;
import com.ebaiyihui.family.doctor.server.common.constants.CommonConstants;
import com.ebaiyihui.family.doctor.server.common.constants.IMInformConstants; import com.ebaiyihui.family.doctor.server.common.constants.IMInformConstants;
import com.ebaiyihui.family.doctor.server.common.constants.ImConstants; import com.ebaiyihui.family.doctor.server.common.constants.ImConstants;
import com.ebaiyihui.family.doctor.server.common.enums.StatusEnum; import com.ebaiyihui.family.doctor.server.common.enums.StatusEnum;
...@@ -134,11 +135,21 @@ public class PatientSignServiceImpl implements PatientSignService { ...@@ -134,11 +135,21 @@ public class PatientSignServiceImpl implements PatientSignService {
BaseResponse<PersonnelInfo> res = doctorCilent.queryPersonnelInfo(queryPersonnelInfoReq); BaseResponse<PersonnelInfo> res = doctorCilent.queryPersonnelInfo(queryPersonnelInfoReq);
if (res.isSuccess()) { if (res.isSuccess()) {
resVo.setDoctorPortrait(res.getData().getPortrait()); resVo.setDoctorPortrait(res.getData().getPortrait());
resVo.setDeptId(String.valueOf(res.getData().getDeptId()));
} }
List<String> appointmentId = new ArrayList<>(); // List<String> appointmentId = new ArrayList<>();
appointmentId.add(admId); QueryWrapper<PatientSignEntity> listWrapper = new QueryWrapper<>();
imQueryMsgReqVO.setAppointmentId(appointmentId); PatientSignEntity pg = new PatientSignEntity();
pg.setDoctorId(patientSignEntity.getDoctorId());
pg.setDeptId(patientSignEntity.getDeptId());
pg.setAppCode(CommonConstants.APP_CODE);
listWrapper.setEntity(patientSign);
listWrapper.in("sign_status", 1, 2);
List<PatientSignEntity> patientSignEntities = patientSignMapper.selectList(listWrapper);
// appointmentId.add(admId);
imQueryMsgReqVO.setAppointmentId(patientSignEntities.stream().map(PatientSignEntity::getAdmId).collect(Collectors.toList()));
BaseResponse<List<IMSingleMsgResultVO>> allMsgContent = getAllMsgContent(imQueryMsgReqVO); BaseResponse<List<IMSingleMsgResultVO>> allMsgContent = getAllMsgContent(imQueryMsgReqVO);
......
...@@ -137,8 +137,9 @@ public class ScheduleRecordServiceImpl implements ScheduleRecordService { ...@@ -137,8 +137,9 @@ public class ScheduleRecordServiceImpl implements ScheduleRecordService {
QueryWrapper<ScheduleRecordEntity> wrapper = new QueryWrapper(); QueryWrapper<ScheduleRecordEntity> wrapper = new QueryWrapper();
ScheduleRecordEntity entity = new ScheduleRecordEntity(); ScheduleRecordEntity entity = new ScheduleRecordEntity();
entity.setDeptId(JSON.toJSONString(requestGetScheduleForWeekDTO.getDeptId())); entity.setDoctorId(requestGetScheduleForWeekDTO.getDoctorId());
entity.setHospitalId(JSON.toJSONString(requestGetScheduleForWeekDTO.getHospitalId())); entity.setDeptId(String.valueOf(requestGetScheduleForWeekDTO.getDeptId()));
entity.setHospitalId(String.valueOf(requestGetScheduleForWeekDTO.getHospitalId()));
wrapper.setEntity(entity); wrapper.setEntity(entity);
wrapper.between("schedule_date", startDate, endDate); wrapper.between("schedule_date", startDate, endDate);
...@@ -158,6 +159,8 @@ public class ScheduleRecordServiceImpl implements ScheduleRecordService { ...@@ -158,6 +159,8 @@ public class ScheduleRecordServiceImpl implements ScheduleRecordService {
QueryWrapper<ScheduleRecordEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<ScheduleRecordEntity> queryWrapper = new QueryWrapper<>();
ScheduleRecordEntity timeIntervalEntity = new ScheduleRecordEntity(); ScheduleRecordEntity timeIntervalEntity = new ScheduleRecordEntity();
timeIntervalEntity.setHospitalId(String.valueOf(requestGetScheduleForWeekDTO.getHospitalId())); timeIntervalEntity.setHospitalId(String.valueOf(requestGetScheduleForWeekDTO.getHospitalId()));
timeIntervalEntity.setDoctorId(requestGetScheduleForWeekDTO.getDoctorId());
timeIntervalEntity.setDeptId(String.valueOf(requestGetScheduleForWeekDTO.getDeptId()));
timeIntervalEntity.setScheduleRange(j); timeIntervalEntity.setScheduleRange(j);
queryWrapper.setEntity(timeIntervalEntity); queryWrapper.setEntity(timeIntervalEntity);
ScheduleRecordEntity scheduleTimeIntervalEntity = scheduleRecordMapper.selectOne(queryWrapper); ScheduleRecordEntity scheduleTimeIntervalEntity = scheduleRecordMapper.selectOne(queryWrapper);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论