|
@@ -45,7 +45,9 @@ SELECT DISTINCT m.year,
|
|
|
m11.target_l m11l,
|
|
|
m11.target_h m11h,
|
|
|
m12.target_l m12l,
|
|
|
- m12.target_h m12h
|
|
|
+ m12.target_h m12h,
|
|
|
+ ROUND(ifnull(t5.sumamount_year,0)/10000,2) sumamount_year,
|
|
|
+ ROUND(ifnull(t6.sumamount_currentmonth,0)/10000,2) sumamount_currentmonth
|
|
|
from sa_salestarget m
|
|
|
LEFT JOIN sa_salestarget m1 ON m1.year = m.year and m1.point = 1 and m.sys_enterpriseid = m1.sys_enterpriseid
|
|
|
LEFT JOIN sa_salestarget m2 ON m2.year = m.year and m2.point = 2 and m.sys_enterpriseid = m2.sys_enterpriseid
|