|
@@ -1,5 +1,6 @@
|
|
|
package cn.hnthyy.thmz.service.impl.his.yf;
|
|
|
|
|
|
+import cn.hnthyy.thmz.Utils.ListSizeControlUtil;
|
|
|
import cn.hnthyy.thmz.common.Constants;
|
|
|
import cn.hnthyy.thmz.entity.MzException;
|
|
|
import cn.hnthyy.thmz.entity.his.YzActOrder;
|
|
@@ -582,6 +583,19 @@ public class YfWardPrescriptionServiceImpl implements YfWardPrescriptionService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 发药记录存根日志,以备查验记录
|
|
|
+ if(yyzos != null && yyzos.size() > 0){
|
|
|
+ // 目前开放长期,临时医嘱单存放日志
|
|
|
+ if("5".equals(yyzos.get(0).getPageClass()) || "6".equals(yyzos.get(0).getPageClass())){
|
|
|
+ List<YzYpZyOrder> yzYpList = new ArrayList<>(yyzos);
|
|
|
+ try {
|
|
|
+ callSaveSendOrPrintYpYzDetail(yzYpList, "1");
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("发药记录存根日志出错--1");
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
resultMap.put("code", 0);
|
|
|
resultMap.put("message", "保存领药单发药数据成功");
|
|
|
return resultMap;
|
|
@@ -609,7 +623,12 @@ public class YfWardPrescriptionServiceImpl implements YfWardPrescriptionService
|
|
|
record.setStatusFlag("0");
|
|
|
list.add(record);
|
|
|
}
|
|
|
- ypYzSendRecordMapper.insertYpYzSendRecordList(list);
|
|
|
+
|
|
|
+ log.info("---------------入库数量:" + list.size());
|
|
|
+ List<List<YpYzSendRecord>> result = ListSizeControlUtil.splitList(list, 100);
|
|
|
+ for (List<YpYzSendRecord> record: result) {
|
|
|
+ ypYzSendRecordMapper.insertYpYzSendRecordList(record);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -968,6 +987,25 @@ public class YfWardPrescriptionServiceImpl implements YfWardPrescriptionService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 保存口服药打印查询记录信息
|
|
|
+ if(yfWardVos.size() > 0){
|
|
|
+ // 目前开放长期,临时医嘱单存放日志
|
|
|
+ if("5".equals(yfWardVos.get(0).getPageClass()) || "6".equals(yfWardVos.get(0).getPageClass())){
|
|
|
+ List<YzYpZyOrder> yzYpList = new ArrayList<>();
|
|
|
+ for (YfWardVo vo: yfWardVos) {
|
|
|
+ YzYpZyOrder yz = new YzYpZyOrder();
|
|
|
+ BeanUtils.copyProperties(vo, yz);
|
|
|
+ yzYpList.add(yz);
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ callSaveSendOrPrintYpYzDetail(yzYpList, "2");
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("发药打印存根日志出错--2");
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
return yfWardVos;
|
|
|
}
|
|
|
|