a4fca648 lauka

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

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