From 2b0b64182263d922b946ec898070e59b602382dc Mon Sep 17 00:00:00 2001 From: Bang Hu <hu_bang@hotmail.com> Date: 星期四, 11 九月 2025 18:38:09 +0800 Subject: [PATCH] 交易审批多节点问题处理完善 --- src/main/resources/mapper/CartMapper.xml | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/CartMapper.xml b/src/main/resources/mapper/CartMapper.xml index 22f7e4c..1226da6 100644 --- a/src/main/resources/mapper/CartMapper.xml +++ b/src/main/resources/mapper/CartMapper.xml @@ -43,6 +43,9 @@ <if test="unitId !=null and unitId != ''"> AND unit_id = #{unitId} </if> + <if test="productId !=null and productId != ''"> + AND product_id = #{productId} + </if> ORDER BY add_time DESC </select> @@ -55,6 +58,7 @@ AND unit_id = #{unitId} </if> AND pricing_id = #{pricingId} + AND product_id = #{productId} LIMIT 1 </select> @@ -66,6 +70,9 @@ <if test="unitId != '' and unitId != null"> AND unit_id = #{unitId} </if> + <if test="productId != '' and productId != null"> + AND product_id = #{productId} + </if> </select> <select id="sumTotalAmountByUserIdAndUnitId" resultType="java.math.BigDecimal"> -- Gitblit v1.8.0