yaozhixue 1 year ago
parent
commit
00a68f8afb

+ 2 - 2
src/main/java/com/zfire/jiasm/syncdata/service/impl/DetailDownloadServiceImpl.java

@@ -206,7 +206,7 @@ public class DetailDownloadServiceImpl implements DetailDownloadService {
 
 		if (detailDownloadDatas.size()<=0){
 			// 修改同步表状态信息
-			updateSyncTable(id,"获取的数据为空");
+			updateSyncTable(id,"获取的数据为空无需同步");
 			return;
 		}
 
@@ -215,7 +215,7 @@ public class DetailDownloadServiceImpl implements DetailDownloadService {
 	}
 
 	public void updateSyncTable(Long synReqId, String msg) {
-		jdbcTemplate.update("update itf_gree_to_fa_download_task_list set download_times = download_times + 1,download_time=?,download_err_msg=? where id=?",
+		jdbcTemplate.update("update itf_gree_to_fa_download_task_list set download_status = 1,download_time=?,download_err_msg=? where id=?",
 				new Object[] { new Date(System.currentTimeMillis()), msg, synReqId });
 	}