|
@@ -9,6 +9,7 @@ import cn.tr.module.smart.app.controller.vo.AppQuestionAndDeptListVO;
|
|
|
import cn.tr.module.smart.common.entity.BizQuestionEntity;
|
|
import cn.tr.module.smart.common.entity.BizQuestionEntity;
|
|
|
import cn.tr.module.smart.common.entity.BizWxAppletQuestionAnswerEntity;
|
|
import cn.tr.module.smart.common.entity.BizWxAppletQuestionAnswerEntity;
|
|
|
import cn.tr.module.smart.common.enums.ClinicPhaseEnums;
|
|
import cn.tr.module.smart.common.enums.ClinicPhaseEnums;
|
|
|
|
|
+import cn.tr.module.smart.common.enums.ClinicUndoType;
|
|
|
import cn.tr.module.smart.common.mapper.BizQuestionAnswerMapper;
|
|
import cn.tr.module.smart.common.mapper.BizQuestionAnswerMapper;
|
|
|
import cn.tr.module.smart.common.mapper.BizQuestionMapper;
|
|
import cn.tr.module.smart.common.mapper.BizQuestionMapper;
|
|
|
import cn.tr.module.smart.common.po.BizClinicRoomPO;
|
|
import cn.tr.module.smart.common.po.BizClinicRoomPO;
|
|
@@ -19,6 +20,7 @@ import cn.tr.module.smart.common.repository.BizClinicRoomRepository;
|
|
|
import cn.tr.module.smart.common.repository.BizQuestionAnswerRepository;
|
|
import cn.tr.module.smart.common.repository.BizQuestionAnswerRepository;
|
|
|
import cn.tr.module.smart.common.repository.BizQuestionGroupRepository;
|
|
import cn.tr.module.smart.common.repository.BizQuestionGroupRepository;
|
|
|
import cn.tr.module.smart.common.repository.BizQuestionRepository;
|
|
import cn.tr.module.smart.common.repository.BizQuestionRepository;
|
|
|
|
|
+import cn.tr.module.smart.common.service.IBizClinicRoomUndoService;
|
|
|
import cn.tr.module.smart.common.service.IBizQuestionAnswerService;
|
|
import cn.tr.module.smart.common.service.IBizQuestionAnswerService;
|
|
|
import cn.tr.module.smart.common.service.IBizQuestionService;
|
|
import cn.tr.module.smart.common.service.IBizQuestionService;
|
|
|
import cn.tr.module.smart.web.dto.BizWebQuestionAnswerByClinicIdDTO;
|
|
import cn.tr.module.smart.web.dto.BizWebQuestionAnswerByClinicIdDTO;
|
|
@@ -62,6 +64,10 @@ public class BizQuestionAnswerServiceImpl implements IBizQuestionAnswerService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
@Lazy
|
|
@Lazy
|
|
|
private IBizQuestionService questionService;
|
|
private IBizQuestionService questionService;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ @Lazy
|
|
|
|
|
+ private IBizClinicRoomUndoService clinicRoomUndoService;
|
|
|
@Override
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public Boolean stdWxAppletCommitPreSurgeryQuestionnaireAnswer(BizWxAppletCommitSurgeryQuestionDTO source) {
|
|
public Boolean stdWxAppletCommitPreSurgeryQuestionnaireAnswer(BizWxAppletCommitSurgeryQuestionDTO source) {
|
|
@@ -90,6 +96,8 @@ public class BizQuestionAnswerServiceImpl implements IBizQuestionAnswerService {
|
|
|
baseRepository.insert(questionAnswer);
|
|
baseRepository.insert(questionAnswer);
|
|
|
clinicRoom.setLastBeforeQuestionTime(new Date());
|
|
clinicRoom.setLastBeforeQuestionTime(new Date());
|
|
|
clinicRoomRepository.updateById(clinicRoom);
|
|
clinicRoomRepository.updateById(clinicRoom);
|
|
|
|
|
+ //消除镇痛提醒
|
|
|
|
|
+ clinicRoomUndoService.doneBizClinicRoom(ClinicUndoType.assessment,clinicRoom.getId());
|
|
|
return Boolean.TRUE;
|
|
return Boolean.TRUE;
|
|
|
}
|
|
}
|
|
|
|
|
|