|
|
|
@ -72,6 +72,8 @@
|
|
|
|
|
<result column="is_used" property="isUsed"/>
|
|
|
|
|
<result column="clear_weight" property="clearWeight"/>
|
|
|
|
|
<result column="order_no" property="orderNo"/>
|
|
|
|
|
<result column="sale_amount" property="saleAmount"/>
|
|
|
|
|
<result column="purchase_amount" property="purchaseAmount"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap id="purchaseReturn" type="jnpf.entity.WarehousingStoragePoundlistEntity">
|
|
|
|
|
<id column="id" property="id"/>
|
|
|
|
@ -700,4 +702,12 @@
|
|
|
|
|
left join jg_business_order_product_relational e on d.id = e.business_order_id and b.product_id = e.product_id and e.f_delete_mark is null
|
|
|
|
|
where a.f_delete_mark is null and a.is_transfer = '2' and a.business_order_id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="queryAmountByBusinessOrder" resultType="java.util.Map">
|
|
|
|
|
select
|
|
|
|
|
IFNULL(SUM(a.sale_amount), 0 ) AS saleAmount,
|
|
|
|
|
IFNULL(SUM(a.purchase_amount), 0 ) AS purchaseAmount
|
|
|
|
|
from jg_voucher a
|
|
|
|
|
where a.f_delete_mark is null and a.is_transfer = '2' and a.business_order_id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|