|
|
@@ -53,8 +53,8 @@ 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")));
|
|
|
}
|
|
|
return getSucReturnObject().setDataByPaging(rows).saveToDataPool().toString();
|
|
|
@@ -67,10 +67,13 @@ public class supplyanddemand extends Controller {
|
|
|
*/
|
|
|
public String query_supplyanddemandMain() throws P2Exception {
|
|
|
long tsupplyanddemandid = content.getLong("tsupplyanddemandid");
|
|
|
+ /**
|
|
|
+ * 阅读次数+1
|
|
|
+ */
|
|
|
+ dbConnect.runSqlUpdate("update tsupplyanddemand set freadtimes=isnull(freadtimes,0)+1 where siteid='"+siteid+"' and tsupplyanddemandid='"+tsupplyanddemandid+"'");
|
|
|
|
|
|
SQLFactory sqlFactory = new SQLFactory(this, "供需详情查询");
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
- sqlFactory.addParameter("tagentsid", tagentsid);
|
|
|
sqlFactory.addParameter("tsupplyanddemandid", tsupplyanddemandid);
|
|
|
Rows rows = dbConnect.runSqlQuery(sqlFactory.getSQL());
|
|
|
|
|
|
@@ -178,6 +181,7 @@ public class supplyanddemand extends Controller {
|
|
|
row.put("attinfos", attinfoRowsMap.get(row.getString("tsupplyanddemandid")));
|
|
|
row.put("imdialogs", dialogrows);
|
|
|
}
|
|
|
+
|
|
|
return getSucReturnObject().setData(rows).toString();
|
|
|
}
|
|
|
|