|
@@ -44,28 +44,26 @@ public class DataWarehouseService {
|
|
|
|
|
|
public String checkSource(String day) {
|
|
|
StringBuffer stringBuffer = new StringBuffer();
|
|
|
+ // 注意,只有文件已存在时才能 checkMD5, 否则读取MD5文件时必出异常
|
|
|
// 河北_CEM移网质量投诉明细
|
|
|
File mobileComplaintDayFile = getMobileComplaintDayFile(day);
|
|
|
if (!mobileComplaintDayFile.exists()) {
|
|
|
stringBuffer.append("河北_CEM移网质量投诉明细_HE_D_MOBILE_COMP表账期 ").append(day).append(" 数据未到达");
|
|
|
- }
|
|
|
- if (!checkMD5(mobileComplaintDayFile)) {
|
|
|
+ }else if (!checkMD5(mobileComplaintDayFile)) {
|
|
|
stringBuffer.append("河北_CEM移网质量投诉明细_HE_D_MOBILE_COMP表账期 ").append(day).append(" MD5验证未通过");
|
|
|
}
|
|
|
// 河北_CEM高品质2日明细
|
|
|
File highQualityListDayFile = getHighQualityListDayFile(day);
|
|
|
if (!highQualityListDayFile.exists()) {
|
|
|
stringBuffer.append("河北_CEM高品质2日明细_HE_D_HIGH_QUALITY_LIST表账期 ").append(day).append(" 数据未到达");
|
|
|
- }
|
|
|
- if (!checkMD5(highQualityListDayFile)) {
|
|
|
+ }else if (!checkMD5(highQualityListDayFile)) {
|
|
|
stringBuffer.append("河北_CEM高品质2日明细_HE_D_HIGH_QUALITY_LIST表账期 ").append(day).append(" MD5验证未通过");
|
|
|
}
|
|
|
// 河北_CEM高品质2日统计
|
|
|
File highQualityCountDayFile = getHighQualityCountDayFile(day);
|
|
|
if (!highQualityCountDayFile.exists()) {
|
|
|
stringBuffer.append("河北_CEM高品质2日统计_HE_D_HIGH_QUALITY_COUNT表账期 ").append(day).append(" 数据未到达");
|
|
|
- }
|
|
|
- if (!checkMD5(highQualityCountDayFile)) {
|
|
|
+ } else if (!checkMD5(highQualityCountDayFile)) {
|
|
|
stringBuffer.append("河北_CEM高品质2日统计_HE_D_HIGH_QUALITY_COUNT表账期 ").append(day).append(" MD5验证未通过");
|
|
|
}
|
|
|
return stringBuffer.toString();
|