瀏覽代碼

管理端商户经营类目管理调整

沈静伟 4 年之前
父節點
當前提交
0e3801df3f

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/enterprise/tagents/SQL/商户主界面查询.sql

@@ -9,7 +9,7 @@ select t1.tagentsid,
        t1.fintroduction,
        t1.fdutyparagraph,
        t1.fisused,
-       (stuff((select ',' + fprodclassname from tagents_prodclass where siteid = t1.siteid and tagentsid=t1.tagentsid for xml path('')),1,1,'')) as fprodclassname,
+       --(stuff((select ',' + fprodclassname from tagents_prodclass where siteid = t1.siteid and tagentsid=t1.tagentsid for xml path('')),1,1,'')) as fprodclassname,
        count(t2.tenterprise_userid) as fteamsize,
        max(t3.flastrequestdate)as flastrequestdate
 from tagents t1

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/enterprise/tagents/SQL/商户经营类目列表查询.sql

@@ -1,2 +1,2 @@
-select t1.tagents_prodclassid,t1.fprodclassname from tagents_prodclass t1
+select t1.fprodclassname from tagents_prodclass t1
 where t1.siteid =$siteid$ and t1.tagentsid=$tagentsid$

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

@@ -116,7 +116,7 @@ public class tagents extends Controller {
             prodclass.addParameter("siteid", siteid);
             prodclass.addParameter("tagentsid", tagentsid);
             Rows prodclassrows = dbConnect.runSqlQuery(prodclass.getSQL());
-            row.put("fprodclassname", prodclassrows);
+            row.put("saleprodclass", prodclassrows.toArray("fprodclassname"));
             row.put("attinfos", getAttachmentUrl("tagentsid", String.valueOf(tagentsid), "brandlogo"));
 
             //ÐÞ¸ÄÉêÇë²éѯ