|
|
@@ -8,6 +8,7 @@ import com.cnd3b.common.data.Row;
|
|
|
import com.cnd3b.common.data.Rows;
|
|
|
import com.cnd3b.common.data.RowsMap;
|
|
|
import com.cnd3b.common.data.SQLFactory;
|
|
|
+import com.cnd3b.common.parameter.parameter;
|
|
|
import p2.pao.PaoRemote;
|
|
|
import p2.pao.PaoSetRemote;
|
|
|
import p2.util.P2Exception;
|
|
|
@@ -79,6 +80,7 @@ public class supplyanddemand extends Controller {
|
|
|
Rows newmsgrows = newmsgmap.get(drow.getString("timdialogid"));
|
|
|
for (Row newmsg : newmsgrows) {
|
|
|
newmsg.put("message", JSONObject.parseObject(newmsg.getString("message")));
|
|
|
+ newmsg.put("fisonline", parameter.websocketClients.containsKey(newmsg.getLong("tenterprise_userid")) ? 1 : 0);
|
|
|
}
|
|
|
drow.put("latestnews", newmsgrows);//×îÐÂÏûÏ¢
|
|
|
}
|
|
|
@@ -244,6 +246,7 @@ public class supplyanddemand extends Controller {
|
|
|
Rows newmsgrows = newmsgmap.get(row.getString("timdialogid"));
|
|
|
for (Row newmsg : newmsgrows) {
|
|
|
newmsg.put("message", JSONObject.parseObject(newmsg.getString("message")));
|
|
|
+ newmsg.put("fisonline", parameter.websocketClients.containsKey(newmsg.getLong("tenterprise_userid")) ? 1 : 0);
|
|
|
}
|
|
|
row.put("latestnews", newmsgrows);//×îÐÂÏûÏ¢
|
|
|
}
|