@@ -103,18 +107,19 @@ public class DataMigration extends CommonIT {
...
@@ -103,18 +107,19 @@ public class DataMigration extends CommonIT {
}catch(Exceptione){
}catch(Exceptione){
return0L;
return0L;
}
}
}
}
//todo:cell_template --220081
//todo:cell_template --220081
@Test
@Test
publicvoiddoMigrationCellTemplate(){
publicvoiddoMigrationCellTemplate(){
Stringsql="SELECT * FROM CellTemplate_20180622 WHERE ReportTemplateID IN (SELECT ID FROM Template_20180622 WHERE TemplateGroupID IN('1E741076-2CBF-448A-A31C-B92C9ECB29D3','04B3B25D-131F-4214-9EDE-3B3858BE196A') AND path LIKE '%VatTemplate/DefaultVersion/%')";
Stringsql="SELECT * FROM CellTemplate_20180622 WHERE ReportTemplateID IN "+
"(SELECT ID FROM Template_20180622 WHERE TemplateGroupID IN("+templateGroupId+") "+
" AND path LIKE '%VatTemplate/DefaultVersion/%')";
sql="SELECT ID,ReportTemplateID,RowIndex,ColumnIndex from CellTemplate_20180622 WHERE ReportTemplateID IN (SELECT ID FROM Template_20180622 WHERE TemplateGroupID IN('1E741076-2CBF-448A-A31C-B92C9ECB29D3','04B3B25D-131F-4214-9EDE-3B3858BE196A') AND path LIKE '%VatTemplate/DefaultVersion/%')";
sql="SELECT ID,ReportTemplateID,RowIndex,ColumnIndex from CellTemplate_20180622 WHERE ReportTemplateID IN "+
"(SELECT ID FROM Template_20180622 WHERE TemplateGroupID IN"+
"("+templateGroupId+") AND path LIKE '%VatTemplate/DefaultVersion/%')";