此主题相关图片如下:qq图片20231109153923.png
Dim cmd As New SQLCommand
cmd.Conn ec tio nName = "主数据源" \'记得设置数据源名称
cmd.CommandText = "Sel ect [_Identify],[_SortKey],卷宗名称,材料类别,材料名称,材料附件,材料guid From {View_juanzongcailiao} where 案件id=\'2b8ff1fa-2ed5-4cfd-ad3c-748616441a13\'and 材料名称 is not null and 材料guid is not null "
Dim dt As DataTable = cmd.ExecuteReader
Dim ja As New JArray
For Each ss As String() In dt.getvalues("材料guid|卷宗名称|材料名称|材料附件")
Dim jo As New JObject
jo("id") = ss(0)
jo("label") = ss(1)
jo("name") = ss(2)
jo("parentId") = "0"
\' jo("fujian") = ss(3)
Dim json As String = ss(3)
Dim jsonObjects As JArray = JArray.Parse(json)
Dim firstJsonObject As JObject = jsonObjects(0)
Dim urlValue As String = firstJsonObject("url")
Output.Show("http://localhost:8088" & urlValue)
\' jo("children") = "123"
If Not ja.Contains(jo("id")) Then
ja.Add(jo)
End If
Next
Output.Show(ja.ToString)