a4fca648 lauka

菠萝派-修复订单下载传递SKUID错误的BUG

1 个父辈 c1eb215e
......@@ -250,7 +250,7 @@
<!-- 查询子订单-->
<select id="getOrdersProductList" parameterType="java.lang.String" resultMap="ordersProduct">
SELECT product_sku,id,product_name,spec_info,number,money_price,money_act_single,money_coupon_amount,money_full_amount FROM orders_product
SELECT product_goods_id,id,product_name,spec_info,number,money_price,money_act_single,money_coupon_amount,money_full_amount FROM orders_product
WHERE orders_sn = #{orderSn}
</select>
......
......@@ -171,7 +171,7 @@ public class GetOrderBizServiceImpl extends AbstractBizService<GetOrderRequest>
*/
private OrderGoodResponse getOrderGoodResponse(OrdersProduct ordersProduct){
OrderGoodResponse orderGoodResponse = new OrderGoodResponse();
orderGoodResponse.setProductId(ordersProduct.getProductSku());//平台商品ID或SKUID(SKUID优先)
orderGoodResponse.setProductId(String.valueOf(ordersProduct.getProductGoodsId()));//平台商品ID或SKUID(SKUID优先)
orderGoodResponse.setSubOrderNo(String.valueOf(ordersProduct.getId()));//子订单号(若需要支持拆单发货,则必填)
orderGoodResponse.setTradeGoodsNo(ordersProduct.getProductSku());//外部商家编码或外部SKU编码(SKU编码优先)。注意,如果要与管家对接,这里一般返回管家的商品编码,作为平台的外部商家编码,与管家商品映射
orderGoodResponse.setTradeGoodsName(ordersProduct.getProductName());//商品交易名称
......