|
|
本帖最后由 spiral 于 2012-10-19 16:13 编辑
导入Excel的记录只有一条时,导入成功,但导入的数据有两条记录时,会出现以下错误:
导入的Excel数据如下:
function userId(name){
var doc = getCurrentDocument();
var value1 = "";
var sql = "select * from tlk_用户 where name='"+name+"'";
var datas = queryBySQL(sql);
if(datas != null && datas.size() > 0) {
var doc=datas.get(0);
value1=doc.getId();
}
return value1;
} |
|