|
@@ -2,22 +2,26 @@ package com.diagbot.facade;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
-import com.diagbot.CdssApplication;
|
|
|
import com.diagbot.biz.push.entity.Item;
|
|
|
import com.diagbot.dto.IndicationDTO;
|
|
|
import com.diagbot.dto.PushDTO;
|
|
|
import com.diagbot.dto.PushPlanDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.entity.PacsInfo;
|
|
|
import com.diagbot.entity.SysUser;
|
|
|
import com.diagbot.entity.TranDatadockingLog;
|
|
|
import com.diagbot.entity.TranHospitalRelation;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
|
import com.diagbot.enums.StatusEnum;
|
|
|
+import com.diagbot.service.PacsInfoService;
|
|
|
+import com.diagbot.service.impl.PacsInfoServiceImpl;
|
|
|
import com.diagbot.util.*;
|
|
|
import com.diagbot.vo.*;
|
|
|
+import com.google.common.collect.Lists;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Qualifier;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -55,6 +59,10 @@ public class DataPageDockFacade {
|
|
|
@Autowired
|
|
|
private KlConceptStaticFacade KlConceptStaticFacade;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ PacsInfoServiceImpl pacsInfoServiceImpl;
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* @Description:静态知识开单合理性
|
|
|
* @Author:liuqq
|
|
@@ -331,4 +339,32 @@ public class DataPageDockFacade {
|
|
|
return hospitalId;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ public RespDTO sendPacsInfos(List<PacsVO> list) {
|
|
|
+ try {
|
|
|
+ if(list!=null && list.size()>0){
|
|
|
+ //循环验证数据有效性
|
|
|
+ for (PacsVO pacsVO:list) {
|
|
|
+ if(StringUtil.isEmpty(pacsVO.getApplyNo())){
|
|
|
+ return RespDTO.onError("请输入申请单号!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ List<PacsInfo> pacsInfoList= Lists.newArrayList();
|
|
|
+ list.stream().forEach(s->{
|
|
|
+ PacsInfo pacsInfo = new PacsInfo();
|
|
|
+ BeanUtil.copyProperties(s,pacsInfo);
|
|
|
+ pacsInfoList.add(pacsInfo);
|
|
|
+ });
|
|
|
+ pacsInfoServiceImpl.saveBatch(pacsInfoList);
|
|
|
+
|
|
|
+ return RespDTO.onSuc("操作正常!");
|
|
|
+ }else{
|
|
|
+ return RespDTO.onError("未接收到数据!");
|
|
|
+ }
|
|
|
+ }catch (Exception e){
|
|
|
+ return RespDTO.onError(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|