浏览代码

商户档案详情添加字段

hu 7 月之前
父节点
当前提交
81f2655aed
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10 1
      src/custom/restcontroller/sale/enterprise/SQL/商户档案详情查询.sql

+ 10 - 1
src/custom/restcontroller/sale/enterprise/SQL/商户档案详情查询.sql

@@ -12,7 +12,16 @@ select t1.siteid,
        t1.contact,
        t1.enterprisename,
        t1.taxno,
-       t1.abbreviation
+       t1.limitreturnday,
+       t1.freefreightamount,
+       t1.latitude,
+       t1.longitude,
+       t1.invoicingpoint,
+       t1.saleclassauth,
+       t1.grade,
+       t1.isorder,
+       t9.erpagentnum
 from sys_enterprise t1
+         LEFT JOIN sys_dataextend t9 ON t1.sys_enterpriseid = t9.ownerid  and ownertable='sys_enterprise' and  t1.siteid = t9.siteid
 where t1.siteid = $siteid$
   and t1.sys_enterpriseid = $sys_enterpriseid$