Parcourir la source

通告查询列表及主界面新增创建者头像链接

沈静伟 il y a 4 ans
Parent
commit
9c7ed14f84

+ 1 - 0
src/dsb/com/cnd3b/restcontroller/customer/notice/SQL/公告主界面查询.sql

@@ -6,6 +6,7 @@ select  t1.tnoticeid,
         t1.fcontent,
         t1.fisontop,
         t1.freadcount,
+        t1.tenterprise_userid,
         t2.tagentsid,
         t2.fbrand,
         t2.fagentname

+ 3 - 1
src/dsb/com/cnd3b/restcontroller/customer/notice/SQL/公告列表查询.sql

@@ -2,12 +2,14 @@ select t1.tnoticeid,
        t1.ftype,
        t1.ftitle,
        t1.fsummary,
+       t1.fcontent,
        t1.checkdate,
        t1.fisontop,
        t1.freadcount,
        t2.tagentsid,
        t2.fbrand,
-       t2.fagentname
+       t2.fagentname,
+       t1.tenterprise_userid
 from tnotice t1
 left join tagents t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid
 where t1.siteid = $siteid$ and t1.fstatus='·¢²¼' and t1.fbegdate<=getdate() and t1.fenddate>=getdate() and $where$

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

@@ -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);

+ 2 - 1
src/dsb/com/cnd3b/restcontroller/customer/noticemag/SQL/公告主界面查询.sql

@@ -18,6 +18,7 @@ select t1.tnoticeid,
        t1.fischeckagent,
        t1.fishomepage,
        t1.fissingleagent,
-       t1.fisspecifiedrange
+       t1.fisspecifiedrange,
+       t1.tenterprise_userid
 from tnotice t1
 where t1.siteid = $siteid$ and t1.tnoticeid=$tnoticeid$

+ 3 - 1
src/dsb/com/cnd3b/restcontroller/customer/noticemag/SQL/公告列表查询.sql

@@ -2,6 +2,7 @@ select t1.tnoticeid,
        t1.ftype,
        t1.ftitle,
        t1.fsummary,
+       t1.fcontent,
        t1.checkdate,
        t1.fisontop,
        t1.fbegdate,
@@ -13,6 +14,7 @@ select t1.tnoticeid,
        t1.fischeckagent,
        t1.fishomepage,
        t1.fissingleagent,
-       t1.fisspecifiedrange
+       t1.fisspecifiedrange,
+       t1.tenterprise_userid
 from tnotice t1
 where t1.siteid = $siteid$ and t1.tagentsid=$tagentsid$ and $where$

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

@@ -65,6 +65,7 @@ public class noticemag extends Controller {
             String tnoticeid = row.getString("tnoticeid");
             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);
     }
@@ -83,6 +84,7 @@ public class noticemag extends Controller {
 
         Rows attinfosRows = getAttachmentUrl("tnotice", tnoticeid);
         rows.get(0).put("attinfos", attinfosRows);
+        rows.get(0).put("headportraiturl", getHeadPic(rows.get(0).getLong("tenterprise_userid")));
 
         return getSucReturnObject().setData(rows).toString();
     }

+ 1 - 0
src/dsb/com/cnd3b/restcontroller/enterprise/notice_agent/SQL/公告主界面查询.sql

@@ -14,6 +14,7 @@ select t1.tnoticeid,
        t1.fenddate,
        t1.checkby,
        t1.freadcount,
+       t1.tenterprise_userid,
        t2.fbrand,
        t2.fagentname
 from tnotice t1

+ 2 - 0
src/dsb/com/cnd3b/restcontroller/enterprise/notice_agent/SQL/公告列表查询.sql

@@ -2,6 +2,7 @@ select t1.tnoticeid,
        t1.ftype,
        t1.ftitle,
        t1.fsummary,
+       t1.fcontent,
        t1.checkdate,
        t1.fisontop,
        t1.fbegdate,
@@ -9,6 +10,7 @@ select t1.tnoticeid,
        t1.fstatus,
        t1.checkby,
        t1.freadcount,
+       t1.tenterprise_userid,
        t2.fbrand,
        t2.fagentname
 from tnotice t1

+ 2 - 1
src/dsb/com/cnd3b/restcontroller/enterprise/notice_agent/notice_agent.java

@@ -60,6 +60,7 @@ public class notice_agent extends Controller {
             String tnoticeid = row.getString("tnoticeid");
             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);
     }
@@ -78,7 +79,7 @@ public class notice_agent extends Controller {
 
         Rows attinfosRows = getAttachmentUrl("tnotice", tnoticeid);
         rows.get(0).put("attinfos", attinfosRows);
-
+        rows.get(0).put("headportraiturl", getHeadPic(rows.get(0).getLong("tenterprise_userid")));
         return getSucReturnObject().setData(rows).toString();
     }
 

+ 2 - 1
src/dsb/com/cnd3b/restcontroller/enterprise/noticemag/SQL/公告主界面查询.sql

@@ -18,6 +18,7 @@ select t1.tnoticeid,
        t1.fischeckagent,
        t1.fishomepage,
        t1.fissingleagent,
-       t1.fisspecifiedrange
+       t1.fisspecifiedrange,
+       t1.tenterprise_userid
 from tnotice t1
 where t1.siteid = $siteid$ and t1.tnoticeid=$tnoticeid$

+ 3 - 1
src/dsb/com/cnd3b/restcontroller/enterprise/noticemag/SQL/公告列表查询.sql

@@ -2,6 +2,7 @@ select t1.tnoticeid,
        t1.ftype,
        t1.ftitle,
        t1.fsummary,
+       t1.fcontent,
        t1.checkdate,
        t1.fisontop,
        t1.fbegdate,
@@ -13,6 +14,7 @@ select t1.tnoticeid,
        t1.fischeckagent,
        t1.fishomepage,
        t1.fissingleagent,
-       t1.fisspecifiedrange
+       t1.fisspecifiedrange,
+       t1.tenterprise_userid
 from tnotice t1
 where  t1.siteid = $siteid$ and t1.tagentsid is null and $where$

+ 2 - 0
src/dsb/com/cnd3b/restcontroller/enterprise/noticemag/noticemag.java

@@ -65,6 +65,7 @@ public class noticemag extends Controller {
             String tnoticeid = row.getString("tnoticeid");
             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);
@@ -84,6 +85,7 @@ public class noticemag extends Controller {
 
         Rows attinfosRows = getAttachmentUrl("tnotice", tnoticeid);
         rows.get(0).put("attinfos", attinfosRows);
+        rows.get(0).put("headportraiturl", getHeadPic(rows.get(0).getLong("tenterprise_userid")));
 
         return getSucReturnObject().setData(rows).toString();
     }