main
黄海 1 year ago
parent 82ce4c58ed
commit 7ab6debe45

@ -0,0 +1,27 @@
package UnitTest;
import com.YunXiao.Util.SyncUtil;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import java.util.List;
public class FixDataError {
public static void main(String[] args) {
//初始化
SyncUtil.init();
String sql = "select form_table_name from t_collect_job where form_table_name is not null";
List<Record> list = Db.find(sql);
for (Record record : list) {
String tableName = record.getStr("form_table_name");
sql = "select area_name from " + tableName + " where area_name ='忻州市'";
List<Record> list2 = Db.find(sql);
for (Record r1 : list2) {
System.out.println(tableName);
System.out.println(r1.getStr("area_name"));
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Loading…
Cancel
Save