StringsqlCount="select count(1) from user_collections where type='TICKET' and status=1 and content_id>=5722 and created_at"+(StringUtils.isBlank(incrDt)?"<":">=")+"curdate()";
StringsqlCount="select count(1) from user_collections where type='TICKET' and status=1 and content_id>=5722 and created_at"+(StringUtils.isBlank(incrDt)?"<":">=")+"curdate()";
if(null!=dg){
if(null!=dg){
sqlCount=sqlCount+" and id%"+dG+"="+dg;
sqlCount=sqlCount+" and id%"+dG+"="+dg;
}
}
...
@@ -48,53 +48,75 @@ public class DMCollectionProcessor extends DataMigrationProcessorService {
...
@@ -48,53 +48,75 @@ public class DMCollectionProcessor extends DataMigrationProcessorService {
@@ -36,7 +36,7 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
...
@@ -36,7 +36,7 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
}
}
StringsqlCount="select count(1) from (\n"+
StringsqlCount="select count(1) from (\n"+
" select row_number() over (partition by uid,type order by created_at desc) rn,id,uid,open_id,avatar,nickname,type,created_at,updated_at from user_third_parts where `status`=1 and delete_tag in (0,1) and open_id<>'' and uid>0 and created_at"+(StringUtils.isBlank(incrDt)?"<":">=")+"curdate()\n"+
" select row_number() over (partition by uid,type order by created_at desc) rn,id,uid,open_id,avatar,nickname,type,created_at,updated_at from user_third_parts where `status`=1 and delete_tag in (0,1) and open_id<>'' and uid>0 and created_at"+(StringUtils.isBlank(incrDt)?"<":">=")+"curdate()\n"+
" ) t where t.rn=1";
" ) t where t.rn=1";
if(null!=dg){
if(null!=dg){
sqlCount=sqlCount+" and id%"+dG+"="+dg;
sqlCount=sqlCount+" and id%"+dG+"="+dg;
...
@@ -50,65 +50,87 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
...
@@ -50,65 +50,87 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {