Merge branch 'tmp'
This commit is contained in:
commit
165f6ff28a
|
@ -89,7 +89,7 @@ public class MergeProjectsOld {
|
|||
// updateControlDao.deleteOneItem(updateControlProjectsTableName, updateProject.getId());
|
||||
// }
|
||||
// }
|
||||
List<GatherProjectsModel> updateProjectList = gatherDao.selectUpdateProjects(sourceTableName);
|
||||
List<GatherProjectsModel> updateProjectList = gatherDao.selectUpdateProjects(sourceTableName,batchSize);
|
||||
for(GatherProjectsModel model:updateProjectList){
|
||||
mergeProjectNew.handleNewProject(model, true);
|
||||
gatherDao.updateUpdateMark(sourceTableName, 1, model.getId());
|
||||
|
|
|
@ -26,12 +26,12 @@ public interface DBDest {
|
|||
*/
|
||||
//向open_source_projects表中插入对象数据
|
||||
@Insert("insert into ${table} (id,name,description,"
|
||||
+ "url,language,category,"
|
||||
+ "source,created_time,updated_time,"
|
||||
+ "url,url_md5,language,category,homepage,license,"
|
||||
+ "source,created_time,updated_time,extracted_time,"
|
||||
+ "tags,tags_for_search,synonyms,update_mark) values (#{model.id},#{model.name},#{model.description},"
|
||||
+ "#{model.url},,#{model.language},"
|
||||
+ "#{model.category},#{model.source},"
|
||||
+ "#{model.created_time},#{model.updated_time},#{model.tags},"
|
||||
+ "#{model.url},#{model.url_md5},#{model.language},"
|
||||
+ "#{model.category},#{model.homepage},#{model.license},#{model.source},"
|
||||
+ "#{model.created_time},#{model.updated_time},#{model.extracted_time},#{model.tags},"
|
||||
+ "#{model.tags_for_search},#{model.synonyms},#{model.update_mark})")
|
||||
public void insertOsp(@Param("table") String table, @Param("model") OpenSourceProject model);
|
||||
|
||||
|
|
Loading…
Reference in New Issue