Merge branch 'master' into dev_js_20260420

This commit is contained in:
king
2026-04-28 11:36:24 +08:00

View File

@@ -1161,6 +1161,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectNewGrBiSaAggGroupHZList" resultType="java.util.Map">
select t.* from (
SELECT
'自营品种' as bk,
IF(GROUPING (saler_name, zone_name) = 2, CONCAT(zone_name, "总计"), IFNULL(zone_name, '省区合计')) AS zone_name,
@@ -1192,7 +1193,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
saler_name,
c.position WITH ROLLUP
HAVING GROUPING (saler_name, zone_name, c.position) != 1
HAVING GROUPING (saler_name, zone_name, c.position) != 1 ORDER BY a.zone_name DESC, zone_name ASC, c.position IS NULL , c.position DESC
) t
UNION ALL
SELECT