Error setting expression '1ecApplmainDto.ecApplDetailDtos_[0].id.serialno' with value '[Ljava.lang.String;@53c29556' ognl.ExpressionSyntaxException: Malformed OGNL expression: 1ecApplmainDto.ecApplDetailDtos_[0].id.serialno [ognl.ParseException: Encountered " <IDENT> "ecApplmainDto "" at line 1, column 2.
时间: 2024-04-05 11:29:11 浏览: 11
这个错误提示是因为你在设置表达式的时候出现了语法错误,具体是在 `1ecApplmainDto.ecApplDetailDtos_[0].id.serialno` 这个表达式中出现了问题。可能原因是你的表达式不符合 OGNL 语法规则。建议检查一下表达式中是否有语法错误或者变量名拼写错误。另外,`[Ljava.lang.String;@53c29556` 这个值也可能是因为你在设置值的时候出现了问题,建议检查一下设置值的方式是否正确。
相关问题
select * from (select rownum as r, t.* from (select to_char(a.d_disclosedate, 'yyyy-MM-dd') as showdatetime, a.c_filetype, a.c_filename, a.c_filepath, a.c_month, a.c_year, a.d_modifydate, a.d_createdate, a.l_serialno, b.c_caption, b.c_keyvalue, wm_concat(c.c_fundcode) as c_fundcode, wm_concat(c.c_fundname) as c_fundname, b.c_memo from twordfilesmanage a, tdictionary b, tfundinfo c, twordfundrelation d where 1 = 1 and b.c_sysname = 'DATACNT' and b.l_keyno = 1301 and a.c_publish = '1' and a.c_filetype = trim(b.c_keyvalue) and c.c_fundcode = d.c_fundcode and a.l_serialno = d.l_serialno and a.c_filetype = '1' group by (a.d_disclosedate, a.c_filetype, a.c_filename, a.c_filepath, a.c_month, a.c_year, a.d_modifydate, a.d_createdate, a.l_serialno, b.c_caption, b.c_keyvalue, b.c_memo)) t where rownum <= 10) where r >= 1
这是一条 SQL 查询语句,目的是从数据库中查询符合条件的记录,并返回所有列的值。具体查询条件如下:
- 查询表 twordfilesmanage、tdictionary、tfundinfo 和 twordfundrelation
- 查询条件包括:
- b.c_sysname = 'DATACNT'
- b.l_keyno = 1301
- a.c_publish = '1'
- a.c_filetype = trim(b.c_keyvalue)
- c.c_fundcode = d.c_fundcode
- a.l_serialno = d.l_serialno
- a.c_filetype = '1'
- 查询结果按照 a.d_disclosedate、a.c_filetype、a.c_filename、a.c_filepath、a.c_month、a.c_year、a.d_modifydate、a.d_createdate、a.l_serialno、b.c_caption、b.c_keyvalue 和 b.c_memo 分组,并使用 wm_concat 函数对 c.c_fundcode 和 c.c_fundname 进行合并处理
- 最终返回 10 条符合条件的记录
该查询语句的具体实现可能会根据数据库的不同而有所不同。
sqlstr1 = string.Format("update GoodsOut set status='通过' where Serialno='{0}'", serial);
这是一段更新数据库中GoodsOut表中某个Serialno对应记录的状态为“通过”的SQL语句。其中,serial是一个变量,代表要更新的Serialno的值。该语句使用了string.Format()方法,将serial的值动态地插入到SQL语句中。注意,这段代码可能存在SQL注入漏洞,需要进行安全性检查和防范。