|
@ -171,6 +171,7 @@ public class IcNatCompareRecordExcelImportListener implements ReadListener<IcNat |
|
|
ObjectUtil.objectToTrim(data); |
|
|
ObjectUtil.objectToTrim(data); |
|
|
IcNatCompareRecordEntity compareRecordEntity = ConvertUtils.sourceToTarget(data, IcNatCompareRecordEntity.class); |
|
|
IcNatCompareRecordEntity compareRecordEntity = ConvertUtils.sourceToTarget(data, IcNatCompareRecordEntity.class); |
|
|
compareRecordEntity.setCustomerId(customerId); |
|
|
compareRecordEntity.setCustomerId(customerId); |
|
|
|
|
|
compareRecordEntity.setLatestCyTime(null); |
|
|
compareRecordEntity.setLatestNatTime(null); |
|
|
compareRecordEntity.setLatestNatTime(null); |
|
|
compareRecordEntity.setNatAddress(StrConstant.EPMETY_STR); |
|
|
compareRecordEntity.setNatAddress(StrConstant.EPMETY_STR); |
|
|
compareRecordEntity.setNatResult(StrConstant.EPMETY_STR); |
|
|
compareRecordEntity.setNatResult(StrConstant.EPMETY_STR); |
|
@ -228,22 +229,24 @@ public class IcNatCompareRecordExcelImportListener implements ReadListener<IcNat |
|
|
compareRecordEntity.setNatResult(NumConstant.ZERO_STR); |
|
|
compareRecordEntity.setNatResult(NumConstant.ZERO_STR); |
|
|
} |
|
|
} |
|
|
compareRecordEntity.setContactAddress(StringUtils.isNotBlank(address) ? address : StrConstant.EPMETY_STR); |
|
|
compareRecordEntity.setContactAddress(StringUtils.isNotBlank(address) ? address : StrConstant.EPMETY_STR); |
|
|
compareRecordEntity.setInternalRemark(String.format("匹配成功,采样时间一致,采样视图最近一次采样时间:%s,检测结果视图的最近一次采样时间:%s", |
|
|
compareRecordEntity.setInternalRemark(String.format("%s查询匹配成功,采样时间一致,采样视图最近一次采样时间:%s,检测结果视图的最近一次采样时间:%s", |
|
|
|
|
|
DateUtils.format(importTime,DateUtils.DATE_TIME_PATTERN), |
|
|
DateUtils.format(compareRecordEntity.getLatestCyTime(),DateUtils.DATE_TIME_PATTERN), |
|
|
DateUtils.format(compareRecordEntity.getLatestCyTime(),DateUtils.DATE_TIME_PATTERN), |
|
|
DateUtils.format(sample_time,DateUtils.DATE_TIME_PATTERN))); |
|
|
DateUtils.format(sample_time,DateUtils.DATE_TIME_PATTERN))); |
|
|
} else { |
|
|
} else { |
|
|
// 采样时间不一致,说明未出结果
|
|
|
// 采样时间不一致,说明未出结果
|
|
|
compareRecordEntity.setInternalRemark(String.format("未出结果,采样时间不一致,采样视图最近一次采样时间:%s,检测结果视图的最近一次采样时间:%s", |
|
|
compareRecordEntity.setInternalRemark(String.format("%s查询未出结果,采样时间不一致,采样视图最近一次采样时间:%s,检测结果视图的最近一次采样时间:%s", |
|
|
|
|
|
DateUtils.format(importTime,DateUtils.DATE_TIME_PATTERN), |
|
|
DateUtils.format(compareRecordEntity.getLatestCyTime(),DateUtils.DATE_TIME_PATTERN), |
|
|
DateUtils.format(compareRecordEntity.getLatestCyTime(),DateUtils.DATE_TIME_PATTERN), |
|
|
DateUtils.format(sample_time,DateUtils.DATE_TIME_PATTERN))); |
|
|
DateUtils.format(sample_time,DateUtils.DATE_TIME_PATTERN))); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
compareRecordEntity.setInternalRemark("最近一次检测结果为空"); |
|
|
compareRecordEntity.setInternalRemark(String.format("%s查询最近一次检测结果为空", DateUtils.format(importTime,DateUtils.DATE_TIME_PATTERN))); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
// 没有核酸采样记录
|
|
|
// 没有核酸采样记录
|
|
|
compareRecordEntity.setInternalRemark("最近一次采样结果为空"); |
|
|
compareRecordEntity.setInternalRemark(String.format("%s查询最近一次采样结果为空", DateUtils.format(importTime, DateUtils.DATE_TIME_PATTERN))); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
datas.add(compareRecordEntity); |
|
|
datas.add(compareRecordEntity); |
|
|