|
@@ -67,7 +67,7 @@
|
|
|
<select id="getSaleData" parameterType="long" resultType="string">
|
|
<select id="getSaleData" parameterType="long" resultType="string">
|
|
|
select concat('[',five,',',other,']') from ((
|
|
select concat('[',five,',',other,']') from ((
|
|
|
|
|
|
|
|
- select GROUP_CONCAT(concat('{"x":"',si_custname,'","y":',IFNULL(round(si_amount/10000,2),0),',"z":"',si_custshortname,'"}')) five from (
|
|
|
|
|
|
|
+ select GROUP_CONCAT(concat('{"x":"',si_custname,'","y":',IFNULL(round(si_amount/10000,2),0),',"z":"',ifnull(si_custshortname,''),'"}')) five from (
|
|
|
select * from statsinfo where companyid=#{componyId} and si_yearmonth=DATE_FORMAT(now(),'%Y%m') and si_type='SALE' ORDER BY si_amount desc limit 0,5
|
|
select * from statsinfo where companyid=#{componyId} and si_yearmonth=DATE_FORMAT(now(),'%Y%m') and si_type='SALE' ORDER BY si_amount desc limit 0,5
|
|
|
) c)d,(
|
|
) c)d,(
|
|
|
|
|
|