src/main/resources/mapper/purchase/PurchaseReturnOrdersMapper.xml
@@ -88,7 +88,7 @@ SELECT sir.id, sir.product_model_id, slp.id saleLedgerProductId, slp.id salesLedgerProductId, slp.product_category, slp.specification_model, slp.unit, @@ -141,7 +141,7 @@ LEFT JOIN (SELECT stock_in_record_id, SUM(return_quantity) AS total_return_num FROM purchase_return_order_products WHERE 1 = 1 and purchase_return_order_id != #{id} WHERE 1 = 1 and purchase_return_order_id = #{id} GROUP BY stock_in_record_id) rs ON rs.stock_in_record_id = sir.id where pro.id = #{id} </select>