|
|
@ -51,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
AND i.purchaser_name = #{queryParam.purchaserName} |
|
|
|
</if> |
|
|
|
AND p.del_flag = '0' |
|
|
|
AND dt.result_type = 'reviewSuccess' |
|
|
|
</where> |
|
|
|
ORDER BY |
|
|
|
i.purchaser_name,p.type, p.brand |
|
|
@ -130,7 +131,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<select id="selectModelStatistics" resultType="map"> |
|
|
|
SELECT |
|
|
|
CONCAT(p.brand, ' ', p.version_str) AS name, |
|
|
|
CONCAT(p.brand) AS name, |
|
|
|
SUM(p.quantity) AS value |
|
|
|
FROM |
|
|
|
contractual_product_info p |
|
|
@ -151,7 +152,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
AND ci.purchaser_name = #{bo.purchaserName} |
|
|
|
</if> |
|
|
|
GROUP BY |
|
|
|
p.brand, p.version_str |
|
|
|
p.brand |
|
|
|
ORDER BY |
|
|
|
value DESC |
|
|
|
</select> |
|
|
|