|
|
@@ -30,6 +30,9 @@ public class HandleData {
|
|
|
@Value("${manualQryMonth}")
|
|
|
private String manualQryMonth;
|
|
|
|
|
|
+ @Value("${resultWithUnit}")
|
|
|
+ private String resultWithUnit;
|
|
|
+
|
|
|
public static final Map<String, String> RerunSampleField = new HashMap<>();
|
|
|
|
|
|
static {
|
|
|
@@ -365,7 +368,7 @@ public class HandleData {
|
|
|
log.info("fail update");
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ //以下暂停使用
|
|
|
// for (Map<String, Object> qualityIndicatorMap : qualityIndicatorList) {
|
|
|
// log.info(qualityIndicatorMap.toString());
|
|
|
// String DateRange = DateRangeUtil.getDateRange(qualityIndicatorMap.get("bian_zhi_shi_jian").toString());
|
|
|
@@ -384,6 +387,7 @@ public class HandleData {
|
|
|
// ibpsRepository.updateQualityIndicatorData(updateDataList);
|
|
|
}
|
|
|
|
|
|
+ //与LIS中List进行匹配
|
|
|
public List<Map<String, Object>> MatchLISRes(Map<String, Object> undoQIMap, List<Map<String, Object>> lisRetList, List<Map<String, Object>> matchList, String formattedDateTime) {
|
|
|
// 如果 matchList 为 null,则初始化
|
|
|
if (matchList == null) {
|
|
|
@@ -400,12 +404,15 @@ public class HandleData {
|
|
|
// 找到匹配项,创建新的匹配记录
|
|
|
Map<String, Object> matchRecord = new HashMap<>();
|
|
|
matchRecord.put("id_", undoQIMap.get("id_")); // 从 undoQIMap 取 id_
|
|
|
- matchRecord.put("shi_ji_shu_zhi_", lisMap.get("percentage")); // 从 lisRetList 取 percentage
|
|
|
//计算是否达标
|
|
|
String curValue = lisMap.get("percentage").toString();
|
|
|
String compChar = undoQIMap.get("yuan_shi_shu_ju_").toString();
|
|
|
String compRes = ValueEvaluator.evaluateValue(curValue, compChar);
|
|
|
matchRecord.put("da_biao_qing_kuan", compRes);
|
|
|
+ if(resultWithUnit.equals("1")){
|
|
|
+ curValue = curValue + compChar.split("@")[2];
|
|
|
+ }
|
|
|
+ matchRecord.put("shi_ji_shu_zhi_", curValue);
|
|
|
matchRecord.put("zhuang_tai_", "已完成");
|
|
|
matchRecord.put("update_time_", Timestamp.valueOf(String.valueOf(formattedDateTime)));
|
|
|
log.info("curValue:"+curValue+", compChar:"+compChar+", cpmpare result:"+compRes);
|