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()":(">=curdate()-"+incrDt));
if(null!=dg){
if(null!=dg){
sqlCount=sqlCount+" and id%"+dG+"="+dg;
sqlCount=sqlCount+" and id%"+dG+"="+dg;
}
}
...
@@ -89,7 +89,7 @@ public class DMCollectionProcessor extends DataMigrationProcessorService {
...
@@ -89,7 +89,7 @@ public class DMCollectionProcessor extends DataMigrationProcessorService {
" select row_number() over (partition by user_id,type,idcode,name order by updated_at desc) rn,e.* from enters e where e.is_certification = 'yes' and e.deleted_at is null and created_at"+(StringUtils.isBlank(incrDt)?"<":">=")+"curdate()\n"+
" select row_number() over (partition by user_id,type,idcode,name order by updated_at desc) rn,e.* from enters e where e.is_certification = 'yes' and e.deleted_at is null and created_at"+(StringUtils.isBlank(incrDt)?"<curdate()":(">=curdate()-"+incrDt))+"\n"+
" ) tk where tk.rn=1 ";
" ) tk where tk.rn=1 ";
if(null!=dg){
if(null!=dg){
sqlCount=sqlCount+" and id%"+dG+"="+dg;
sqlCount=sqlCount+" and id%"+dG+"="+dg;
...
@@ -98,10 +98,11 @@ public class DMEntersProcessor extends DataMigrationProcessorService {
...
@@ -98,10 +98,11 @@ public class DMEntersProcessor extends DataMigrationProcessorService {
StringsqlCount="select count(1) from user_vip_card_orders where status in (1,5) and created_at"+(StringUtils.isBlank(incrDt)?"<":">=")+"curdate()";
StringsqlCount="select count(1) from user_vip_card_orders where status in (1,5) and created_at"+(StringUtils.isBlank(incrDt)?"<curdate()":(">=curdate()-"+incrDt));
if(null!=dg){
if(null!=dg){
sqlCount=sqlCount+" and id%"+dG+"="+dg;
sqlCount=sqlCount+" and id%"+dG+"="+dg;
}
}
...
@@ -129,10 +129,12 @@ public class DMMemberOrderProcessor extends DataMigrationProcessorService {
...
@@ -129,10 +129,12 @@ public class DMMemberOrderProcessor extends DataMigrationProcessorService {
StringsqlCount="select count(1) from user_real_name where id not in (9145,7456,7448,7197,7194,4137,4138,4139,269,261,262,263,264,265,266,267,251) and created_at"+(StringUtils.isBlank(incrDt)?"<":">=")+"curdate()";
StringsqlCount="select count(1) from user_real_name where id not in (9145,7456,7448,7197,7194,4137,4138,4139,269,261,262,263,264,265,266,267,251) and created_at"+(StringUtils.isBlank(incrDt)?"<curdate()":(">=curdate()-"+incrDt));
if(null!=dg){
if(null!=dg){
sqlCount=sqlCount+" and id%"+dG+"="+dg;
sqlCount=sqlCount+" and id%"+dG+"="+dg;
}
}
...
@@ -96,11 +96,12 @@ public class DMRealNameProcessor extends DataMigrationProcessorService {
...
@@ -96,11 +96,12 @@ public class DMRealNameProcessor extends DataMigrationProcessorService {
" 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()":(">=curdate()-"+incrDt))+"\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;
...
@@ -106,10 +106,11 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
...
@@ -106,10 +106,11 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
// String sqlCount = "select count(1) from users where delete_tag in (0,1) and length(mobile)=11 and created_at" + (StringUtils.isBlank(incrDt) ? "<" : ">=") + "curdate()";
// String sqlCount = "select count(1) from users where delete_tag in (0,1) and length(mobile)=11 and created_at" + (StringUtils.isBlank(incrDt) ? "<" : ">=") + "curdate()";
StringsqlCount="select count(1) from users where delete_tag in (0,1) and created_at"+(StringUtils.isBlank(incrDt)?"<":">=")+"curdate()";
StringsqlCount="select count(1) from users where delete_tag in (0,1) and created_at"+(StringUtils.isBlank(incrDt)?"<curdate()":(">=curdate()-"+incrDt));
if(null!=dg){
if(null!=dg){
sqlCount=sqlCount+" and uid%"+dG+"="+dg;
sqlCount=sqlCount+" and uid%"+dG+"="+dg;
}
}
...
@@ -144,11 +144,12 @@ public class DMUserInformationProcessor extends DataMigrationProcessorService {
...
@@ -144,11 +144,12 @@ public class DMUserInformationProcessor extends DataMigrationProcessorService {