|
|
@@ -56,9 +56,12 @@ public class supplyanddemand extends Controller {
|
|
|
|
|
|
Rows rows = dbConnect.runSqlQuery(sqlFactory.getSQL());
|
|
|
RowsMap attinfoRowsMap = getAttachmentUrl("tsupplyanddemand", rows.toArrayList("tsupplyanddemandid"));
|
|
|
+
|
|
|
for (Row row : rows) {
|
|
|
//附件信息
|
|
|
row.put("attinfos", attinfoRowsMap.get(row.getString("tsupplyanddemandid")));
|
|
|
+ //创建者头像
|
|
|
+ row.put("headportraiturl", getHeadPic(row.getLong("tenterprise_userid")));
|
|
|
}
|
|
|
return getSucReturnObject().setDataByPaging(rows).saveToDataPool().toString();
|
|
|
}
|
|
|
@@ -84,6 +87,8 @@ public class supplyanddemand extends Controller {
|
|
|
|
|
|
for (Row row : rows) {
|
|
|
row.put("attinfos", attinfoRowsMap.get(row.getString("tsupplyanddemandid")));
|
|
|
+ //创建者头像
|
|
|
+ row.put("headportraiturl", getHeadPic(row.getLong("tenterprise_userid")));
|
|
|
|
|
|
Rows imdialogRows = dbConnect.runSqlQuery("select timdialogid from timdialog where siteid='" + siteid + "' and ownertable='tsupplyanddemand' and ownerid='" + tsupplyanddemandid + "' and tenterprise_userid=" + userid);
|
|
|
long timdialogid;
|
|
|
@@ -155,6 +160,8 @@ public class supplyanddemand extends Controller {
|
|
|
|
|
|
for (Row row : rows) {
|
|
|
row.put("attinfos", attinfoRowsMap.get(row.getString("tsupplyanddemandid")));
|
|
|
+ //创建者头像
|
|
|
+ row.put("headportraiturl", getHeadPic(userid));
|
|
|
}
|
|
|
return getSucReturnObject().setDataByPaging(rows).saveToDataPool().toString();
|
|
|
}
|
|
|
@@ -183,6 +190,8 @@ public class supplyanddemand extends Controller {
|
|
|
for (Row row : rows) {
|
|
|
row.put("attinfos", attinfoRowsMap.get(row.getString("tsupplyanddemandid")));
|
|
|
row.put("imdialogs", dialogrows);
|
|
|
+ //创建者头像
|
|
|
+ row.put("headportraiturl", getHeadPic(userid));
|
|
|
}
|
|
|
|
|
|
return getSucReturnObject().setData(rows).toString();
|