Jelajahi Sumber

门户供需列表及详情返回创建者头像

沈静伟 4 tahun lalu
induk
melakukan
4e401a6d80

+ 2 - 1
src/dsb/com/cnd3b/restcontroller/publicmethod/homepage/SQL/供需列表查询.sql

@@ -10,7 +10,8 @@ t1.checkby,
 t1.checkdate,
 t1.fenddate,
 t2.fagentname,
-t1.tagentsid
+t1.tagentsid,
+t1.tenterprise_userid
 from tsupplyanddemand t1
 inner join tagents t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid
 where t1.siteid=$siteid$ and t1.fstatus not in ('н¨') and $where$

+ 1 - 0
src/dsb/com/cnd3b/restcontroller/publicmethod/homepage/SQL/供需详情查询.sql

@@ -3,6 +3,7 @@ select t1.tsupplyanddemandid, t1.ftitle,t1.fissupply,
        t1.fenddate,t1.tcooperationagentsid,t2.fagentname,t3.fname,t3.fphonenumber,
        t1.fcontent,
        t1.freadtimes,
+       t1.tenterprise_userid,
         (select count(0) from timdialog where siteid=t1.siteid and ownertable='tsupplyanddemand' and ownerid=t1.tsupplyanddemandid) as fcommunicationtimes
 from tsupplyanddemand t1
 inner join tagents t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid

+ 2 - 0
src/dsb/com/cnd3b/restcontroller/publicmethod/homepage/homepage.java

@@ -70,6 +70,7 @@ public class homepage extends Controller {
         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();
     }
@@ -92,6 +93,7 @@ public class homepage extends Controller {
         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();
     }