|
@@ -1,10 +1,18 @@
|
|
package com.diagbot.facade;
|
|
package com.diagbot.facade;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
import com.diagbot.client.AiptServiceClient;
|
|
import com.diagbot.client.AiptServiceClient;
|
|
|
|
+import com.diagbot.client.TranServiceClient;
|
|
import com.diagbot.dto.ConceptIntroduceDTO;
|
|
import com.diagbot.dto.ConceptIntroduceDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
|
|
+import com.diagbot.enums.ConceptTypeEnum;
|
|
|
|
+import com.diagbot.util.DateUtil;
|
|
import com.diagbot.util.RespDTOUtil;
|
|
import com.diagbot.util.RespDTOUtil;
|
|
import com.diagbot.vo.ConceptIntroduceVO;
|
|
import com.diagbot.vo.ConceptIntroduceVO;
|
|
|
|
+import com.diagbot.vo.InputInfoVO;
|
|
|
|
+
|
|
|
|
+import java.util.Date;
|
|
|
|
+
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
@@ -17,10 +25,36 @@ import org.springframework.stereotype.Component;
|
|
public class ConceptDetailFacade {
|
|
public class ConceptDetailFacade {
|
|
@Autowired
|
|
@Autowired
|
|
private AiptServiceClient aiptServiceClient;
|
|
private AiptServiceClient aiptServiceClient;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private TranServiceClient tranServiceClient;
|
|
|
|
|
|
public ConceptIntroduceDTO getConceptDetail(ConceptIntroduceVO conceptIntroduceVO) {
|
|
public ConceptIntroduceDTO getConceptDetail(ConceptIntroduceVO conceptIntroduceVO) {
|
|
RespDTO<ConceptIntroduceDTO> res = aiptServiceClient.getConceptDetail(conceptIntroduceVO);
|
|
RespDTO<ConceptIntroduceDTO> res = aiptServiceClient.getConceptDetail(conceptIntroduceVO);
|
|
RespDTOUtil.respNGDeal(res, "获取提示信息失败");
|
|
RespDTOUtil.respNGDeal(res, "获取提示信息失败");
|
|
|
|
+
|
|
|
|
+ //增加统计功能
|
|
|
|
+ saveInputInfo(conceptIntroduceVO,res);
|
|
return res.data;
|
|
return res.data;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ private void saveInputInfo(ConceptIntroduceVO conceptIntroduceVO,RespDTO<ConceptIntroduceDTO> res) {
|
|
|
|
+ InputInfoVO inputInfo=new InputInfoVO();
|
|
|
|
+ inputInfo.setHospitalCode(conceptIntroduceVO.getHospitalCode());
|
|
|
|
+ inputInfo.setHosptialName(conceptIntroduceVO.getHosptialName());
|
|
|
|
+ inputInfo.setHosptialDeptCode(conceptIntroduceVO.getHosptialDeptCode());
|
|
|
|
+ inputInfo.setHosptialDeptName(conceptIntroduceVO.getHosptialDeptName());
|
|
|
|
+ inputInfo.setDoctorCode(conceptIntroduceVO.getDoctorCode());
|
|
|
|
+ inputInfo.setDoctorName(conceptIntroduceVO.getDoctorName());
|
|
|
|
+ inputInfo.setInquiryCode(conceptIntroduceVO.getInquiryCode());
|
|
|
|
+ inputInfo.setDiseaseName(conceptIntroduceVO.getName());
|
|
|
|
+ inputInfo.setAge(conceptIntroduceVO.getAge());
|
|
|
|
+ inputInfo.setSexType(conceptIntroduceVO.getSexType());
|
|
|
|
+ inputInfo.setTransTime(DateUtil.format(new Date(), DateUtil.DATE_TIME_FORMAT));
|
|
|
|
+
|
|
|
|
+ inputInfo.setRemark(ConceptTypeEnum.getEnum(conceptIntroduceVO.getType()).toString());
|
|
|
|
+ inputInfo.setParamIn(JSONObject.toJSONString(conceptIntroduceVO));
|
|
|
|
+ inputInfo.setParamOut(JSONObject.toJSONString(res));
|
|
|
|
+ tranServiceClient.saveInputInfo(inputInfo);
|
|
|
|
+ }
|
|
}
|
|
}
|