zhijiezhao 1 year ago
parent
commit
decb0f0ddd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/resources/mapper/ReceiptMapper.xml

+ 1 - 1
src/main/resources/mapper/ReceiptMapper.xml

@@ -1245,7 +1245,7 @@
         select ifnull(sum(cop.cmCostPrice * cop.num), 0) +IF(cso.rebateOrder = 1 ,IFNULL(cso.shopPostFee,0)- IFNULL(cso.supplierFreight,0),0)
         from cm_order_product cop
         left join cm_shop_order cso on cop.shopOrderID = cso.shopOrderID
-        where shopOrderID = #{shopOrderId}
+        where cop.shopOrderID = #{shopOrderId}
     </select>
 
     <select id="getPlatformOrderByReceiptId" resultType="com.caimei365.order.model.vo.ShopOrderVo">