|
@@ -115,6 +115,14 @@ public class ResultStaticKnowledgeNeoFacade extends ResultStaticKnowledgeService
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (ListUtil.isEmpty(lisConfigList)) {
|
|
|
|
+ //终止运行
|
|
|
|
+ runningInfoVO.setStatus(0);
|
|
|
|
+ runningInfoFacade.updateStatus(runningInfoVO);
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "文件不能为空");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
Integer totleNum = 0;
|
|
Integer totleNum = 0;
|
|
if (ListUtil.isNotEmpty(lisConfigList)) {
|
|
if (ListUtil.isNotEmpty(lisConfigList)) {
|
|
totleNum = lisConfigList.size();
|
|
totleNum = lisConfigList.size();
|
|
@@ -302,6 +310,14 @@ public class ResultStaticKnowledgeNeoFacade extends ResultStaticKnowledgeService
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (ListUtil.isEmpty(pacsConfigList)) {
|
|
|
|
+ //终止运行
|
|
|
|
+ runningInfoVO.setStatus(0);
|
|
|
|
+ runningInfoFacade.updateStatus(runningInfoVO);
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "文件不能为空");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
Integer totleNum = 0;
|
|
Integer totleNum = 0;
|
|
if (ListUtil.isNotEmpty(pacsConfigList)) {
|
|
if (ListUtil.isNotEmpty(pacsConfigList)) {
|
|
totleNum = pacsConfigList.size();
|
|
totleNum = pacsConfigList.size();
|
|
@@ -456,6 +472,14 @@ public class ResultStaticKnowledgeNeoFacade extends ResultStaticKnowledgeService
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (ListUtil.isEmpty(drugConfigList)) {
|
|
|
|
+ //终止运行
|
|
|
|
+ runningInfoVO.setStatus(0);
|
|
|
|
+ runningInfoFacade.updateStatus(runningInfoVO);
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "文件不能为空");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
Integer totleNum = 0;
|
|
Integer totleNum = 0;
|
|
if (ListUtil.isNotEmpty(drugConfigList)) {
|
|
if (ListUtil.isNotEmpty(drugConfigList)) {
|
|
totleNum = drugConfigList.size();
|
|
totleNum = drugConfigList.size();
|
|
@@ -614,6 +638,14 @@ public class ResultStaticKnowledgeNeoFacade extends ResultStaticKnowledgeService
|
|
}
|
|
}
|
|
System.out.println("读取excel文件结束时间:" + DateUtil.now());
|
|
System.out.println("读取excel文件结束时间:" + DateUtil.now());
|
|
|
|
|
|
|
|
+ if (ListUtil.isEmpty(diseaseConfigList)) {
|
|
|
|
+ //终止运行
|
|
|
|
+ runningInfoVO.setStatus(0);
|
|
|
|
+ runningInfoFacade.updateStatus(runningInfoVO);
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "文件不能为空");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
Integer totleNum = 0;
|
|
Integer totleNum = 0;
|
|
if (ListUtil.isNotEmpty(diseaseConfigList)) {
|
|
if (ListUtil.isNotEmpty(diseaseConfigList)) {
|
|
totleNum = diseaseConfigList.size();
|
|
totleNum = diseaseConfigList.size();
|
|
@@ -778,6 +810,13 @@ public class ResultStaticKnowledgeNeoFacade extends ResultStaticKnowledgeService
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (ListUtil.isEmpty(operationConfigList)) {
|
|
|
|
+ //终止运行
|
|
|
|
+ runningInfoVO.setStatus(0);
|
|
|
|
+ runningInfoFacade.updateStatus(runningInfoVO);
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "文件不能为空");
|
|
|
|
+ }
|
|
|
|
+
|
|
Integer totleNum = 0;
|
|
Integer totleNum = 0;
|
|
if (ListUtil.isNotEmpty(operationConfigList)) {
|
|
if (ListUtil.isNotEmpty(operationConfigList)) {
|
|
totleNum = operationConfigList.size();
|
|
totleNum = operationConfigList.size();
|
|
@@ -932,6 +971,13 @@ public class ResultStaticKnowledgeNeoFacade extends ResultStaticKnowledgeService
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (ListUtil.isEmpty(scaleConfigList)) {
|
|
|
|
+ //终止运行
|
|
|
|
+ runningInfoVO.setStatus(0);
|
|
|
|
+ runningInfoFacade.updateStatus(runningInfoVO);
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "文件不能为空");
|
|
|
|
+ }
|
|
|
|
+
|
|
Integer totleNum = 0;
|
|
Integer totleNum = 0;
|
|
if (ListUtil.isNotEmpty(scaleConfigList)) {
|
|
if (ListUtil.isNotEmpty(scaleConfigList)) {
|
|
totleNum = scaleConfigList.size();
|
|
totleNum = scaleConfigList.size();
|
|
@@ -1086,6 +1132,13 @@ public class ResultStaticKnowledgeNeoFacade extends ResultStaticKnowledgeService
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (ListUtil.isEmpty(nurseConfigList)) {
|
|
|
|
+ //终止运行
|
|
|
|
+ runningInfoVO.setStatus(0);
|
|
|
|
+ runningInfoFacade.updateStatus(runningInfoVO);
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "文件不能为空");
|
|
|
|
+ }
|
|
|
|
+
|
|
Integer totleNum = 0;
|
|
Integer totleNum = 0;
|
|
if (ListUtil.isNotEmpty(nurseConfigList)) {
|
|
if (ListUtil.isNotEmpty(nurseConfigList)) {
|
|
totleNum = nurseConfigList.size();
|
|
totleNum = nurseConfigList.size();
|
|
@@ -1211,6 +1264,9 @@ public class ResultStaticKnowledgeNeoFacade extends ResultStaticKnowledgeService
|
|
*/
|
|
*/
|
|
@Transactional
|
|
@Transactional
|
|
public Boolean saveResult(List<ResultStaticKnowledge> list, StaticKnowledgeTestVO testVO, Integer totleNum) {
|
|
public Boolean saveResult(List<ResultStaticKnowledge> list, StaticKnowledgeTestVO testVO, Integer totleNum) {
|
|
|
|
+ if (ListUtil.isEmpty(list)) {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
Date now = new Date();
|
|
Date now = new Date();
|
|
Integer unMappingNum = list.stream().filter(i -> i.getHasStandName() != null && i.getHasStandName().equals(0)).collect(Collectors.toList()).size();
|
|
Integer unMappingNum = list.stream().filter(i -> i.getHasStandName() != null && i.getHasStandName().equals(0)).collect(Collectors.toList()).size();
|
|
Integer withoutKnowledgeNum = list.stream().filter(i -> i.getHasStaticKnowledge() != null && i.getHasStaticKnowledge().equals(0)).collect(Collectors.toList()).size();
|
|
Integer withoutKnowledgeNum = list.stream().filter(i -> i.getHasStaticKnowledge() != null && i.getHasStaticKnowledge().equals(0)).collect(Collectors.toList()).size();
|
|
@@ -1311,4 +1367,4 @@ public class ResultStaticKnowledgeNeoFacade extends ResultStaticKnowledgeService
|
|
}
|
|
}
|
|
|
|
|
|
//endregion --------------------------导出------------------------------
|
|
//endregion --------------------------导出------------------------------
|
|
-}
|
|
|
|
|
|
+}
|