|
楼主 |
发表于 2017-5-24 10:32:40
|
显示全部楼层
StringBuffer insertSql = new StringBuffer();
insertSql.append("insert into yfck_yhgl select '"+CommonUtils.createGUID()+"', '0', a.sCode, a.sName, a.sCode, a.sMainOrgPostName, '123456', '000565', '"+fUpdateTime+"', null, null, '"+ fYHLB +"' from x5sys.sa_opperson a where a.sCode = '"+ code +"' and a.sValidState = 1");
Map insertSqlMap = new HashMap();
insertSqlMap.put(SQL.DEFAULT_DB_NAME, insertSql.toString());
insertSqlMap.put(DatabaseProduct.MSSQL.name(), insertSql.toString());
SQL.executeUpdate(insertSqlMap, null, "/comtomoa/yfckManager/data");
直接用的SQL写的 |
|