@IocBean
public class OrgDataStorageTask implements Runnable {
private String orgList;
private String mysqlFront;
private String mysqlAfter;
@Inject("dao")
Dao dao; ->>null
@Inject("dwDao")
Dao dwDao; ->>null
public OrgDataStorageTask(String orgList, String mysqlFront, String mysqlAfter) {
this.orgList = orgList;
this.mysqlFront = mysqlFront;
this.mysqlAfter = mysqlAfter;
}
@Override
public void run() {
System.out.println(SqlInUtil.formatInString(orgList));
String sSqlTables = "select * from sys_department";
Sql sqlTables = Sqls.create(sSqlTables);
sqlTables.setCallback(Sqls.callback.records());