Selaa lähdekoodia

新增公告通告详情

吴志根 3 vuotta sitten
vanhempi
commit
e8753fe335

+ 24 - 0
src/dsb/com/cnd3b/restcontroller/publicmethod/homepage/SQL/通告主界面查询.sql

@@ -0,0 +1,24 @@
+select t1.tnoticeid,
+       t1.ftype,
+       t1.ftitle,
+       t1.fsummary,
+       t1.checkdate,
+       t1.fcontent,
+       t1.createby,
+       t1.createdate,
+       t1.fstatus,
+       t1.changeby,
+       t1.changedate,
+       t1.fisontop,
+       t1.fbegdate,
+       t1.fenddate,
+       t1.freadcount,
+       t1.checkby,
+       t1.fisagentsubuser,
+       t1.fischeckagent,
+       t1.fishomepage,
+       t1.fissingleagent,
+       t1.fisspecifiedrange,
+       t1.tenterprise_userid
+from tnotice t1
+where t1.siteid = $siteid$ and t1.tnoticeid=$tnoticeid$

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

@@ -184,6 +184,25 @@ public class homepage extends Controller {
         return getSucReturnObject().setDataByPaging(rows).preloading(1).toString();
     }
 
+    /**
+     * 通告主界面查询
+     *
+     * @return
+     */
+    public String query_noticeMain() {
+        String tnoticeid = content.getString("tnoticeid");
+        SQLFactory noticehead = new SQLFactory(this, "通告主界面查询");
+        noticehead.addParameter("siteid", siteid);
+        noticehead.addParameter("tnoticeid", tnoticeid);
+        Rows rows = dbConnect.runSqlQuery(noticehead.getSQL());
+
+        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();
+    }
+
     /**
      * 新增招商管理表单
      * @return