|
|
@@ -213,7 +213,11 @@ public class supplyanddemand extends Controller {
|
|
|
timnewmsgSQL.addParameter_in("timdialogid", rows.toArrayList("timdialogid"));
|
|
|
RowsMap newmsgmap = timnewmsgSQL.runSqlQuery().toRowsMap("timdialogid");
|
|
|
for (Row row : dialogrows) {
|
|
|
- row.put("latestnews", newmsgmap.get(row.getString("timdialogid")));//×îÐÂÏûÏ¢
|
|
|
+ Rows newmsgrows = newmsgmap.get(row.getString("timdialogid"));
|
|
|
+ for (Row newmsg : newmsgrows) {
|
|
|
+ newmsg.put("message", JSONObject.parseObject(newmsg.getString("message")));
|
|
|
+ }
|
|
|
+ row.put("latestnews", newmsgrows);//×îÐÂÏûÏ¢
|
|
|
}
|
|
|
|
|
|
RowsMap attinfoRowsMap = getAttachmentUrl("tsupplyanddemand", rows.toArrayList("tsupplyanddemandid"));
|