优化95值计算相关数据查看

This commit is contained in:
gaoyutao
2026-01-27 11:27:55 +08:00
parent 5dd1b90acb
commit 3ef0aacf0c
7 changed files with 55 additions and 4 deletions
@@ -383,7 +383,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SELECT
a.id,
GROUP_CONCAT(DISTINCT a.`name` SEPARATOR ',') AS name,
a.`mac` AS mac,
GROUP_CONCAT(DISTINCT a.`mac` SEPARATOR ',') AS mac,
a.`status` AS status,
a.`type` AS type,
a.`ipV4` AS ipV4,
@@ -453,7 +453,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and a.revenue_method = #{revenueMethod}
</if>
<if test="mac != null and mac != ''">
and a.mac = #{mac}
and a.mac in
<foreach collection="mac.split(',')" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
</where>
GROUP BY a.create_time DESC