|
|
@@ -4,11 +4,15 @@ import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.tr.core.exception.TRExcCode;
|
|
|
import cn.tr.core.strategy.LoginUserStrategy;
|
|
|
+import cn.tr.module.smart.common.po.BizDeptPO;
|
|
|
+import cn.tr.module.smart.wx.controller.vo.BizWxDeptQuestionVO;
|
|
|
import cn.tr.module.smart.wx.dto.BizClinicAddOrEditDTO;
|
|
|
import cn.tr.module.smart.wx.dto.BizWxAppletClinicQueryDTO;
|
|
|
import cn.tr.module.smart.wx.dto.BizWxAppletClinicShiftCareDTO;
|
|
|
import cn.tr.module.smart.wx.controller.vo.BizWxAppletClinicVO;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import org.apache.poi.util.StringUtil;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
@@ -23,6 +27,8 @@ import java.util.stream.Collectors;
|
|
|
|
|
|
import cn.tr.module.smart.common.service.IBizClinicService;
|
|
|
import cn.tr.module.smart.common.mapper.BizClinicMapper;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
+
|
|
|
/**
|
|
|
* 手术信息Service接口实现类
|
|
|
*
|
|
|
@@ -33,6 +39,8 @@ import cn.tr.module.smart.common.mapper.BizClinicMapper;
|
|
|
public class BizClinicServiceImpl extends ServiceImpl<BizClinicRepository,BizClinicPO> implements IBizClinicService {
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 根据条件查询手术信息
|
|
|
* @param query 查询参数
|
|
|
@@ -163,6 +171,7 @@ public class BizClinicServiceImpl extends ServiceImpl<BizClinicRepository,BizCli
|
|
|
public BizWxAppletClinicVO stdSelectWxAppletById(String id) {
|
|
|
String userId = LoginUserStrategy.tr.getCurrentUserId();
|
|
|
BizClinicPO result = baseMapper.selectById(id);
|
|
|
+ System.out.println(result);
|
|
|
if(ObjectUtil.isNull(result)){
|
|
|
return null;
|
|
|
}
|
|
|
@@ -171,4 +180,21 @@ public class BizClinicServiceImpl extends ServiceImpl<BizClinicRepository,BizCli
|
|
|
}
|
|
|
return BizClinicMapper.INSTANCE.convertWxAppletVO(result);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public BizWxDeptQuestionVO selectPreSurgeryQuestionnaire(String clinicId) {
|
|
|
+
|
|
|
+ //判断临床id是否为空
|
|
|
+ if(StrUtil.isBlank(clinicId)){
|
|
|
+ throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"患者信息不存在");
|
|
|
+ }
|
|
|
+ BizClinicPO clinic = baseMapper.selectById(clinicId);
|
|
|
+ String deptId = clinic.getDeptId();
|
|
|
+ //判断科室id是否为空
|
|
|
+ //如果科室id不为空获取到问题组id
|
|
|
+ //判断问题组id是否为空不为空
|
|
|
+ //通过问题组id去查询出来biz_question表中的所有问题并传给前端
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|