Procházet zdrojové kódy

个人商户限制进行商户合作申请
热门展商附件显示改为经销商附件

沈静伟 před 4 roky
rodič
revize
da36d41e5a

+ 3 - 0
src/dsb/com/cnd3b/restcontroller/customer/tagents/tagents.java

@@ -185,6 +185,9 @@ public class tagents extends Controller {
         if (tcooperationagentsid == tagentsid) {
             return getErrReturnObject().setErrMsg("无法和自己建立合作关系!").toString();
         }
+        if (getAgent(tagentsid).getString("ftype").equals("个人")) {
+            return getErrReturnObject().setErrMsg("请先进行商户认证!").toString();
+        }
         if (dbConnect.runSqlQuery("select *from tagents where tagentsid='" + tcooperationagentsid + "'").isEmpty()) {
             return getErrReturnObject().setErrMsg("找不到该合作商户信息!").toString();
         }

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

@@ -68,9 +68,9 @@ public class live extends Controller {
         agentlistSql.addParameter("tactivityid", tactivityid);
         agentlistSql.addParameter("siteid", siteid);
         Rows rows = agentlistSql.runSqlQuery();
-        RowsMap map = getAttachmentUrl("tactivity_agentmsg", rows.toArrayList("tactivity_agentmsgid"));
+        RowsMap map = getAttachmentUrl("tagents", rows.toArrayList("tagentsid"));
         for (Row row : rows) {
-            row.put("attinfos", map.get(row.getString("tactivity_agentmsgid")));
+            row.put("attinfos", map.get(row.getString("tagentsid")));
         }
         return getSucReturnObject().setData(rows).saveToDataPool(10).toString();
     }