|
@@ -14,16 +14,15 @@ import cn.tr.module.smart.common.enums.ClinicPhaseEnums;
|
|
|
import cn.tr.module.smart.common.enums.UserTypeEnums;
|
|
import cn.tr.module.smart.common.enums.UserTypeEnums;
|
|
|
import cn.tr.module.smart.common.mapper.BizInfusionHistoryMapper;
|
|
import cn.tr.module.smart.common.mapper.BizInfusionHistoryMapper;
|
|
|
import cn.tr.module.smart.common.po.*;
|
|
import cn.tr.module.smart.common.po.*;
|
|
|
|
|
+import cn.tr.module.smart.common.properties.ALiYunProperties;
|
|
|
import cn.tr.module.smart.common.repository.*;
|
|
import cn.tr.module.smart.common.repository.*;
|
|
|
import cn.tr.module.smart.common.service.*;
|
|
import cn.tr.module.smart.common.service.*;
|
|
|
|
|
+import cn.tr.module.smart.wx.controller.vo.BizAiAgentParamVO;
|
|
|
import cn.tr.module.smart.wx.controller.vo.BizWxAppletClinicDetailVO;
|
|
import cn.tr.module.smart.wx.controller.vo.BizWxAppletClinicDetailVO;
|
|
|
import cn.tr.module.smart.wx.controller.vo.BizWxDeptQuestionVO;
|
|
import cn.tr.module.smart.wx.controller.vo.BizWxDeptQuestionVO;
|
|
|
import cn.tr.module.smart.common.dto.BizClinicAddOrEditDTO;
|
|
import cn.tr.module.smart.common.dto.BizClinicAddOrEditDTO;
|
|
|
import cn.tr.module.smart.wx.controller.vo.IdCardInfoVO;
|
|
import cn.tr.module.smart.wx.controller.vo.IdCardInfoVO;
|
|
|
-import cn.tr.module.smart.wx.dto.BizMpPublishInfoDTO;
|
|
|
|
|
-import cn.tr.module.smart.wx.dto.BizWxAppletClinicQueryDTO;
|
|
|
|
|
-import cn.tr.module.smart.wx.dto.BizWxAppletFinishClinicDTO;
|
|
|
|
|
-import cn.tr.module.smart.wx.dto.BizWxUserCheckCardNoDTO;
|
|
|
|
|
|
|
+import cn.tr.module.smart.wx.dto.*;
|
|
|
import cn.tr.module.smart.wx.utils.Id2Utils;
|
|
import cn.tr.module.smart.wx.utils.Id2Utils;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -93,6 +92,9 @@ public class BizClinicRoomServiceImpl implements IBizClinicRoomService {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private BizInfusionHistoryRepository infusionHistoryRepository;
|
|
private BizInfusionHistoryRepository infusionHistoryRepository;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ALiYunProperties aLiYunProperties;
|
|
|
@Override
|
|
@Override
|
|
|
public List<BizWxAppletClinicDetailVO> stdSelectWxAppletClinicList(BizWxAppletClinicQueryDTO query) {
|
|
public List<BizWxAppletClinicDetailVO> stdSelectWxAppletClinicList(BizWxAppletClinicQueryDTO query) {
|
|
|
return baseRepository.stdSelectWxAppletClinicList(query);
|
|
return baseRepository.stdSelectWxAppletClinicList(query);
|
|
@@ -468,6 +470,32 @@ public class BizClinicRoomServiceImpl implements IBizClinicRoomService {
|
|
|
return baseRepository.selectMpPushTaskInfoById(clinicId);
|
|
return baseRepository.selectMpPushTaskInfoById(clinicId);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public BizAiAgentParamVO touchMemoryId(BizCreateAgentSessionDTO source) {
|
|
|
|
|
+ BizAiAgentParamVO result = new BizAiAgentParamVO();
|
|
|
|
|
+ result.setAppId(aLiYunProperties.getAppId());
|
|
|
|
|
+ result.setApiKey(aLiYunProperties.getApiKey());
|
|
|
|
|
+ BizClinicRoomPO clinicRoom = baseRepository.selectById(source.getClinicId());
|
|
|
|
|
+ if(ObjectUtil.isNull(clinicRoom)){
|
|
|
|
|
+ throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001, "手术信息不存在");
|
|
|
|
|
+ }
|
|
|
|
|
+ if(StrUtil.isNotEmpty(clinicRoom.getMemoryId())){
|
|
|
|
|
+ result.setMemoryId(clinicRoom.getMemoryId());
|
|
|
|
|
+ }else {
|
|
|
|
|
+ String memoryId = createMemoryId(clinicRoom.getId());
|
|
|
|
|
+ result.setMemoryId(memoryId);
|
|
|
|
|
+ }
|
|
|
|
|
+ return result;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public DoctorClinicRoomVO selectAppBizClinicRoomById(String clinicId) {
|
|
|
|
|
+ return baseRepository.selectAppBizClinicRoomById(clinicId);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public String createMemoryId(String clinicId){
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
/**
|
|
/**
|
|
|
* 微信小程序基于医生已填写的信息更新数据
|
|
* 微信小程序基于医生已填写的信息更新数据
|
|
|
*/
|
|
*/
|