|
|
@@ -2,8 +2,12 @@ package com.cnd3b.restcontroller.enterprise.supplyanddemand;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.cnd3b.common.Controller;
|
|
|
+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 p2.pao.PaoRemote;
|
|
|
+import p2.pao.PaoSetRemote;
|
|
|
|
|
|
public class supplyanddemand extends Controller {
|
|
|
public supplyanddemand(JSONObject content) {
|
|
|
@@ -66,8 +70,13 @@ public class supplyanddemand extends Controller {
|
|
|
sqlFactory.addParameter("tagentsid", tagentsid);
|
|
|
sqlFactory.addParameter("tsupplyanddemandid", tsupplyanddemandid);
|
|
|
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().setData(rows).toString();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
}
|