Procházet zdrojové kódy

直播申请列表查询错误修复
商品去除标签信息
增加小程序参数
管理端供需详情新增附件信息

沈静伟 před 4 roky
rodič
revize
8dfef42b77

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/enterprise/supplyanddemand/SQL/供需详情查询.sql

@@ -1,7 +1,7 @@
 select t1.tsupplyanddemandid, t1.ftitle,t1.fissupply,
        t1.ftype, t1.fstatus, t1.checkby, t1.checkdate,
        t1.fenddate,t1.tcooperationagentsid,t2.fagentname,t3.fname,t3.fphonenumber,
-       t4.fagentname as fcooperationagentname,10 as fcommunicationtimes,t1.fcontent
+       t4.fagentname as fcooperationagentname,10 as fcommunicationtimes,t1.fcontent,t1.tenterprise_userid
 from tsupplyanddemand t1
 inner join tagents t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid
 inner join tenterprise_users t3 on t1.siteid=t3.siteid and t1.tenterprise_userid=t3.tenterprise_userid

+ 10 - 1
src/dsb/com/cnd3b/restcontroller/enterprise/supplyanddemand/supplyanddemand.java

@@ -2,8 +2,12 @@ package com.cnd3b.restcontroller.enterprise.supplyanddemand;
 
 import com.alibaba.fastjson.JSONObject;
 import com.cnd3b.common.Controller;
+import com.cnd3b.common.data.Row;
 import com.cnd3b.common.data.Rows;
+import com.cnd3b.common.data.RowsMap;
 import com.cnd3b.common.data.SQLFactory;
+import p2.pao.PaoRemote;
+import p2.pao.PaoSetRemote;
 
 public class supplyanddemand extends Controller {
     public supplyanddemand(JSONObject content) {
@@ -66,8 +70,13 @@ public class supplyanddemand extends Controller {
         sqlFactory.addParameter("tagentsid", tagentsid);
         sqlFactory.addParameter("tsupplyanddemandid", tsupplyanddemandid);
         Rows rows = dbConnect.runSqlQuery(sqlFactory.getSQL());
+        RowsMap attinfoRowsMap = getAttachmentUrl("tsupplyanddemand", rows.toArrayList("tsupplyanddemandid"));
+        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();
     }
 
-
 }

+ 2 - 0
src/dsb/com/cnd3b/restcontroller/publicmethod/homepage/SQL/热门展品.sql

@@ -0,0 +1,2 @@
+select t1.tactivity_agentproductsid,t2.tagents_productid,t1.tagentsid,t1.fintroduction,t2.fprodname,t2.fprodclassname from tactivity_agentproducts t1
+inner join tagents_product t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid and t1.tagents_productid=t2.tagents_productid

+ 1 - 0
src/dsb/com/cnd3b/restcontroller/publicmethod/homepage/SQL/热门展商.sql

@@ -0,0 +1 @@
+select t1.tactivity_agentmsgid,t1.tagentsid,t1.flocationclass,t1.flocation,t1.fbrand,t1.fintroduction from tactivity_agentmsg t1

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

@@ -95,4 +95,34 @@ public class homepage extends Controller {
     }
 
 
+    /**
+     * 热门商户
+     *
+     * @return
+     */
+    public String agentList() {
+        SQLFactory agentlistSql = new SQLFactory(this, "热门展商");
+        Rows rows = agentlistSql.runSqlQuery();
+        RowsMap map = getAttachmentUrl("tactivity_agentmsg", rows.toArrayList("tactivity_agentmsgid"));
+        for (Row row : rows) {
+            row.put("attinfos", map.get(row.getString("tactivity_agentmsgid")));
+        }
+        return getSucReturnObject().setData(rows).saveToDataPool(10).toString();
+    }
+
+    /**
+     * 热门商品
+     *
+     * @return
+     */
+    public String prodList() {
+        SQLFactory agentlistSql = new SQLFactory(this, "热门展品");
+        Rows rows = agentlistSql.runSqlQuery();
+        RowsMap map = getAttachmentUrl("tagents_product", rows.toArrayList("tagents_productid"));
+        for (Row row : rows) {
+            row.put("attinfos", map.get(row.getString("tagents_productid")));
+        }
+        return getSucReturnObject().setData(rows).saveToDataPool(10).toString();
+    }
+
 }