OtaServicesMapper.java
//获取备案信息中的数据与日志中的数据比较
List getOtaDataAndLogDataCompareList(@Param("logTableName") String logTableName, @Param("query") DataQualityAnalysisQuery query);
OtaServicesMapper.xml
select os.deploy_time as otaUpgradeTime,
os.deploy_period as deployPeriod,
os.ota_push_way as otaPushWay,
os.ota_push_way_remark as otaPushWayRemark,
op.ota_download_time as otaDownloadTime,
op.ota_install_time as otaInstallTime,
oplb.upgrade_way as logUpgradeWay,
oplb.upgrade_time as logUpgradeTime,
oplb.upgrade_start as logUpgradeStart,
oplb.upgrade_end as logUpgradeEnd,
os.ota_need_confirm_flag as otaNeedConfirm,
oplb.is_setup_flag as logSetupFlag,
oplb.record_num as logRecordNum
from ota_services as os
left join ota_packages as op on os.record_num = op.record_num
left join ota_report_flow orf on orf.record_num = os.record_num
left join ${logTableName} oplb on op.record_num = oplb.record_num
and orf.report_time between #{query.beginDate} and #{query.endDate}
UpgradeConsistencyAnalysisServiceImpl.java
public RespBean getUpgradeConsistency(DataQualityAnalysisQuery query) {
List corpList = carCorpMapper.getCarCorpList(new CarCorpPo());
List selectTableNames = otaProcessLogMapper.selectTableNames(dataBaseConfig.getDatabase());
List