|
|
@@ -9,6 +9,7 @@ import cn.tr.module.smart.common.po.BizDeptPO;
|
|
|
import cn.tr.module.smart.common.repository.BizDeptRepository;
|
|
|
import cn.tr.module.smart.common.service.IBizDeptService;
|
|
|
import cn.tr.module.smart.common.service.IBizQuestionService;
|
|
|
+import cn.tr.module.smart.wx.controller.vo.BizPreSurgeryQuestionVO;
|
|
|
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;
|
|
|
@@ -16,6 +17,7 @@ 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.checkerframework.checker.units.qual.A;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
@@ -49,6 +51,9 @@ public class BizClinicServiceImpl extends ServiceImpl<BizClinicRepository,BizCli
|
|
|
@Autowired
|
|
|
private IBizQuestionService bizQuestionService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private BizClinicRepository bizClinicRepository;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 根据条件查询手术信息
|
|
|
@@ -191,13 +196,15 @@ public class BizClinicServiceImpl extends ServiceImpl<BizClinicRepository,BizCli
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<BizWxDeptQuestionVO> selectPreSurgeryQuestionnaire(String clinicId) {
|
|
|
+ public BizPreSurgeryQuestionVO selectPreSurgeryQuestionnaire(String clinicId) {
|
|
|
//判断临床id是否为空
|
|
|
if(StrUtil.isBlank(clinicId)){
|
|
|
throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"患者信息不存在");
|
|
|
}
|
|
|
BizClinicPO clinic = baseMapper.selectById(clinicId);
|
|
|
String deptId = clinic.getDeptId();
|
|
|
+ Date lastQuestionTime = clinic.getLastQuestionTime();
|
|
|
+
|
|
|
//判断科室id是否为空
|
|
|
if(StrUtil.isBlank(deptId)){
|
|
|
throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"科室信息不存在");
|
|
|
@@ -205,7 +212,13 @@ public class BizClinicServiceImpl extends ServiceImpl<BizClinicRepository,BizCli
|
|
|
BizDeptDTO bizDeptDTO = bizDeptService.selectBizDeptById(deptId);
|
|
|
String groupId = bizDeptDTO.getGroupId();
|
|
|
//通过获取到的groupId查询问卷调查问题表
|
|
|
- List<BizWxDeptQuestionVO> result = bizQuestionService.selectBizQuestionByGroupId(groupId);
|
|
|
+ List<BizWxDeptQuestionVO> questionVOList = bizQuestionService.selectBizQuestionByGroupId(groupId);
|
|
|
+
|
|
|
+ BizPreSurgeryQuestionVO result = new BizPreSurgeryQuestionVO();
|
|
|
+ result.setDataList(questionVOList);
|
|
|
+ result.setLastQuestionTime(lastQuestionTime);
|
|
|
+
|
|
|
+
|
|
|
return result;
|
|
|
}
|
|
|
}
|