瀏覽代碼

经销商取消经营类目表,新增经营类目字段

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

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/customer/tagents/SQL/经销商主界面查询.sql

@@ -23,6 +23,6 @@ select t1.tagentsid,
        t1.fintroduction,
        t1.faddress,
        t1.fdutyparagraph,
-       isnull(t1.saleprodclass,[])as saleprodclass
+       isnull(t1.saleprodclass,'[]')as saleprodclass
 from tagents t1
 where t1.siteid =$siteid$ and t1.tagentsid=$tagentsid$

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

@@ -12,10 +12,10 @@ select t1.tagentsid,
        --(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,
-       isnull(t1.saleprodclass,[])as saleprodclass
+       isnull(t1.saleprodclass,'[]')as saleprodclass
 from tagents t1
 inner join tenterprise_users t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid
 left join tuserrequestlog t3 on t1.siteid = t3.siteid and t2.tenterprise_userid = t3.tenterprise_userid
 where t1.siteid =$siteid$ and t1.tagentsid=$tagentsid$
 group by t1.tagentsid,t1.siteid,t1.createdate,t1.fagentname,t1.faddress,t1.fcontact,t1.fphonenumber,t1.fbrand,
-t1.fintroduction,t1.fdutyparagraph,t1.fisused
+t1.fintroduction,t1.fdutyparagraph,t1.fisused,t1.saleprodclass

+ 2 - 2
src/dsb/com/cnd3b/restcontroller/enterprise/tagents/SQL/认证商户列表查询.sql

@@ -10,9 +10,9 @@ select t1.tagentsid,
        --(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,
-       isnull(t1.saleprodclass,[])as saleprodclass
+       isnull(t1.saleprodclass,'[]')as saleprodclass
 from tagents t1
 inner join tenterprise_users t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid
 left join tuserrequestlog t3 on t1.siteid = t3.siteid and t2.tenterprise_userid = t3.tenterprise_userid
 where t1.siteid =$siteid$ and $where$ and t1.ftype!='¸öÈË'
-group by t1.tagentsid,t1.siteid,t1.createdate,t1.fagentname,t1.faddress,t1.fcontact,t1.fphonenumber,t1.fbrand,t1.fisused
+group by t1.tagentsid,t1.siteid,t1.createdate,t1.fagentname,t1.faddress,t1.fcontact,t1.fphonenumber,t1.fbrand,t1.fisused,t1.saleprodclass