fix(shop): 调整经销商订单查询条件

- 移除了 third_user_id 的查询条件
- 保留了 user_id、first_user_id 和 second_user_id 的查询逻辑
This commit is contained in:
2025-10-19 23:36:19 +08:00
parent c92acd8db3
commit e4b5431dbc

View File

@@ -19,7 +19,7 @@
AND a.user_id = #{param.userId}
</if>
<if test="param.resourceId != null">
AND ( a.user_id = #{param.resourceId} OR a.first_user_id = #{param.resourceId} OR a.second_user_id = #{param.resourceId} OR a.third_user_id = #{param.resourceId} )
AND ( a.user_id = #{param.resourceId} OR a.first_user_id = #{param.resourceId} OR a.second_user_id = #{param.resourceId} )
</if>
<if test="param.month != null">
AND a.month = #{param.month}