|
|
@@ -61,7 +61,7 @@ public class supplyanddemand extends Controller {
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
|
|
|
-
|
|
|
+ System.err.println(sqlFactory.getSQL());
|
|
|
Rows rows = dbConnect.runSqlQuery(sqlFactory.getSQL());
|
|
|
RowsMap attinfoRowsMap = getAttachmentUrl("tsupplyanddemand", rows.toArrayList("tsupplyanddemandid"));
|
|
|
|
|
|
@@ -78,13 +78,11 @@ public class supplyanddemand extends Controller {
|
|
|
timnewmsgSQL.addParameter("siteid", siteid);
|
|
|
timnewmsgSQL.addParameter("userid", userid);
|
|
|
timnewmsgSQL.addParameter_in("timdialogid", dialogrows.toArrayList("timdialogid"));
|
|
|
- System.err.println(dialogrows.toArrayList("timdialogid"));
|
|
|
- // System.err.println(timnewmsgSQL.getSQL());
|
|
|
+ System.err.println(timnewmsgSQL.getSQL());
|
|
|
RowsMap newmsgmap = timnewmsgSQL.runSqlQuery().toRowsMap("timdialogid");
|
|
|
for (Row drow : dialogrows) {
|
|
|
Rows newmsgrows = newmsgmap.get(drow.getString("timdialogid"));
|
|
|
for (Row newmsg : newmsgrows) {
|
|
|
- System.err.println(newmsg.getString("message"));
|
|
|
try {
|
|
|
newmsg.put("message", JSONObject.parseObject(newmsg.getString("message")));
|
|
|
}catch (Exception e){
|