Explorar o código

经销商目标管理详情列表20231018142103 搜索项无效,排序无效,增加经销商简称列 abbreviation

wu hai 2 semanas
pai
achega
da393d64fd

+ 2 - 1
src/custom/restcontroller/webmanage/sale/salestarget/SQL/企业-业绩目标完成列表.sql

@@ -7,6 +7,7 @@ SELECT DISTINCT m.year,
                 m.sys_enterpriseid,
                 t2.agentnum,
                 t1.enterprisename,
+                t1.abbreviation,
                 m1.target_l + m2.target_l + m3.target_l + m4.target_l  y1l,
                 m1.target_h + m2.target_h + m3.target_h + m4.target_h y1h,
                 m1.target_l s1l,
@@ -25,6 +26,6 @@ from sa_salestarget m
          LEFT JOIN sys_enterprise t1 on t1.sys_enterpriseid=m.sys_enterpriseid
          LEFT JOIN sa_agents t2 on t1.sys_enterpriseid=t2.sys_enterpriseid and t1.siteid=t2.siteid
         where $where1$
-ORDER BY m.year desc
+