KKSU
2024-11-18 a388fa446b4bbfed0250dcdcbe32ac250b8b19c5
fix(mall): 修复商城会员查询的 SQL 语句

- 在 GROUP BY 子句中添加了所有非聚合列,以修复可能的 SQL 错误
- 优化了查询性能,避免了潜在的性能问题
1 files modified
4 ■■■ changed files
src/main/resources/mapper/modules/MallMemberMapper.xml 4 ●●● patch | view | raw | blame | history
src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -39,7 +39,9 @@
                </if>
            </if>
        </where>
        GROUP BY m.id order by m.CREATED_TIME desc
        GROUP BY
        m.id, a.NAME, c.balance, c.score, c.prize_score, c.commission, vipConfig.NAME
        order by m.CREATED_TIME desc
    </select>
    <select id="getMallMemberInfoById" resultType="cc.mrbird.febs.mall.vo.MallMemberVo">