소스 검색

我的需求头像错误修复

沈静伟 4 년 전
부모
커밋
ea0524b45a

+ 1 - 0
src/dsb/com/cnd3b/restcontroller/customer/supplyanddemand/SQL/我的供需列表查询.sql

@@ -9,6 +9,7 @@ t1.checkdate,
 t1.fenddate,
 t2.fagentname,
 t1.freadtimes,
+t1.tenterprise_userid,
 (select count(0) from timdialog where siteid=t1.siteid and ownertable='tsupplyanddemand' and ownerid=t1.tsupplyanddemandid) as fcommunicationtimes,
 t1.tcooperationagentsid,
 t3.fagentname as fcooperationagentname

+ 1 - 0
src/dsb/com/cnd3b/restcontroller/customer/supplyanddemand/SQL/我的供需详情查询.sql

@@ -2,6 +2,7 @@ select t1.tsupplyanddemandid, t1.ftitle,t1.fissupply,
        t1.ftype, t1.fstatus, t1.checkdate,
        t1.fenddate,t1.tcooperationagentsid,
        t1.fcontent,t4.fagentname as fcooperationagentname,
+       t1.tenterprise_userid,
        t1.freadtimes,
        (select count(0) from timdialog where siteid=t1.siteid and ownertable='tsupplyanddemand' and ownerid=t1.tsupplyanddemandid) as fcommunicationtimes
 from tsupplyanddemand t1

+ 2 - 2
src/dsb/com/cnd3b/restcontroller/customer/supplyanddemand/supplyanddemand.java

@@ -161,7 +161,7 @@ public class supplyanddemand extends Controller {
         for (Row row : rows) {
             row.put("attinfos", attinfoRowsMap.get(row.getString("tsupplyanddemandid")));
             //´´½¨ÕßÍ·Ïñ
-            row.put("headportraiturl", getHeadPic(userid));
+            row.put("headportraiturl", getHeadPic(row.getLong("tenterprise_userid")));
         }
         return getSucReturnObject().setDataByPaging(rows).saveToDataPool().toString();
     }
@@ -191,7 +191,7 @@ public class supplyanddemand extends Controller {
             row.put("attinfos", attinfoRowsMap.get(row.getString("tsupplyanddemandid")));
             row.put("imdialogs", dialogrows);
             //´´½¨ÕßÍ·Ïñ
-            row.put("headportraiturl", getHeadPic(userid));
+            row.put("headportraiturl", getHeadPic(row.getLong("tenterprise_userid")));
         }
 
         return getSucReturnObject().setData(rows).toString();