|
|
@@ -79,6 +79,7 @@ public class notice extends Controller {
|
|
|
row.put("fisread", tnoticeids.contains(tnoticeid) ? 1 : 0);
|
|
|
row.put("fattachmentcount", attinfocountmap.containsKey(tnoticeid) ? attinfocountmap.get(tnoticeid).getRow(0).getInteger("fattachmentcount") : 0);
|
|
|
row.put("attinfos", noticecovermap.get(tnoticeid));
|
|
|
+ row.put("headportraiturl", getHeadPic(row.getLong("tenterprise_userid")));
|
|
|
}
|
|
|
return getSucReturnObject().setDataByPaging(rows, sortfield).setFinalDo(DataPool.defaultdatalife, 1);
|
|
|
}
|
|
|
@@ -96,6 +97,7 @@ public class notice extends Controller {
|
|
|
Rows rows = dbConnect.runSqlQuery(noticehead.getSQL());
|
|
|
for (Row row : rows) {
|
|
|
row.put("attinfos", getAttachmentUrl("tnotice", String.valueOf(tnoticeid)));
|
|
|
+ row.put("headportraiturl", getHeadPic(row.getLong("tenterprise_userid")));
|
|
|
}
|
|
|
SQLFactory factory = new SQLFactory(this, "¹«¸æÔĶÁ¿ªÊ¼");
|
|
|
factory.addParameter("siteid", siteid);
|