cms icon indicating copy to clipboard operation
cms copied to clipboard

表单插件-表中ExtendValues字段数据,通过<str:queryString> sql查询语句在<stl:sqlContents>实体类如何显示出来?

Open wangzhe1909 opened this issue 11 months ago • 2 comments

表单插件-表中ExtendValues(字段值内容:{“name”:”张三“,"age":28} ) 字段数据, 通过str:queryString sql查询语句在stl:sqlContents实体类如何显示出来(显示name字段)?

stl:sqlContents str:queryString select * from tablename where 1=1 </str:queryString> <stl:sqlContent type='ExtendValues'> </stl:sqlContent> </stl:sqlContents> 只能显示ExtendValues json值,想要直接显示name等字段。

wangzhe1909 avatar Mar 14 '24 08:03 wangzhe1909

可以通过Like语句试试

starlying avatar Mar 18 '24 01:03 starlying

可以试试这个 <stl:content type="自定义字段名称"></stl:content> 或者 {Content.自定义字段名称}

WaitFYting avatar Apr 21 '24 08:04 WaitFYting