提交 e9f3049c authored 作者: 杨凯's avatar 杨凯

feat:家庭医生初始化

上级 60d5c082
......@@ -44,7 +44,7 @@ public class MobileBenefitPackageController {
@ApiOperation(value = "更新账户的IM在线状态",httpMethod = "POST")
@RequestMapping(value = "/update/online/status",method = RequestMethod.POST)
Result<String> updateOnlineStatus(@RequestBody IMUpdateOnlineStatusReqDTO reqDTO){
BaseResponse<String> updateOnlineStatus(@RequestBody IMUpdateOnlineStatusReqDTO reqDTO){
return mobileBenefitPackageService.updateOnlineStatus(reqDTO);
}
}
......@@ -22,5 +22,5 @@ public interface MobileBenefitPackageService {
Result<MobileBenefitRes> addBenefitPackage(List<MobileBenefitPackageDTO> vos);
Result<String> updateOnlineStatus(IMUpdateOnlineStatusReqDTO reqDTO);
BaseResponse<String> updateOnlineStatus(IMUpdateOnlineStatusReqDTO reqDTO);
}
......@@ -209,12 +209,12 @@ public class MobileBenefitPackageServiceImpl implements MobileBenefitPackageServ
}
@Override
public Result<String> updateOnlineStatus(IMUpdateOnlineStatusReqDTO reqDTO) {
public BaseResponse<String> updateOnlineStatus(IMUpdateOnlineStatusReqDTO reqDTO) {
QueryWrapper<PatientEntity> wrapper = new QueryWrapper<>();
PatientEntity patient = new PatientEntity();
patient.setPhone(reqDTO.getPhone());
patient.setUserId(reqDTO.getPatientUserId());
wrapper.setEntity(patient);
PatientEntity patientEntity = patientMapper.selectOne(wrapper);
if (Objects.nonNull(patientEntity)) {
patientEntity.setOnOfflineStatus(reqDTO.getStatus());
......@@ -222,7 +222,7 @@ public class MobileBenefitPackageServiceImpl implements MobileBenefitPackageServ
patientMapper.updateById(patientEntity);
}
return Result.success(success());
return BaseResponse.success();
}
private MobileBenefitRes success() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论