81,092
社区成员
发帖
与我相关
我的任务
分享
List<Object[]> list = getBaseService().findBySql(sql);
for(Object[] vo : list){
for(int i=0; i<tables.length; i++){
if(vo[2].equals(tables[i])){
String hql = "from "+ pojos[i] +" t where t.id='"+ vo[1] +"'";
List<TLink> lists = this.getBaseService().findByHql(hql,null);
for(TLink obj : lists){
//这里打印的是a数据库里的,如:4028829a1fcbcd94011fcbe15c9d0005
System.out.println("$$$$&&&$$$$: "+obj.getId());
if(action.equals("insert"))
this.getRometeService().insert(obj); //新增到远程机上
}
}
}
}