## 阶段架构查询优化

This commit is contained in:
zhangheng 2025-10-23 17:08:26 +08:00
parent 20f75b0536
commit 75fb7752d6
1 changed files with 0 additions and 2 deletions

View File

@ -81,7 +81,6 @@
COUNT(CASE WHEN curd.STAGE = 3 AND curd.STAGE_STATUS = 1 THEN 1 END) AS threeOrderQuantity COUNT(CASE WHEN curd.STAGE = 3 AND curd.STAGE_STATUS = 1 THEN 1 END) AS threeOrderQuantity
FROM FROM
${settleTableName} cmr ${settleTableName} cmr
LEFT JOIN CU_MEMBER cu ON cmr.PK_MEMBER = cu.PK_ID
LEFT JOIN ${settleDetailTableName} curd ON cmr.PK_MEMBER = curd.PK_MEMBER LEFT JOIN ${settleDetailTableName} curd ON cmr.PK_MEMBER = curd.PK_MEMBER
WHERE 1=1 WHERE 1=1
<if test="memberCode != null and memberCode != ''"> <if test="memberCode != null and memberCode != ''">
@ -109,7 +108,6 @@
COUNT(CASE WHEN curd.STAGE = 3 AND curd.STAGE_STATUS = 1 THEN 1 END) AS threeOrderQuantity COUNT(CASE WHEN curd.STAGE = 3 AND curd.STAGE_STATUS = 1 THEN 1 END) AS threeOrderQuantity
FROM FROM
${settleTableName} cmr ${settleTableName} cmr
LEFT JOIN CU_MEMBER cu ON cmr.PK_MEMBER = cu.PK_ID
LEFT JOIN ${settleDetailTableName} curd ON cmr.PK_MEMBER = curd.PK_MEMBER LEFT JOIN ${settleDetailTableName} curd ON cmr.PK_MEMBER = curd.PK_MEMBER
WHERE WHERE
cmr.PK_MEMBER = #{userId} cmr.PK_MEMBER = #{userId}