sum(case when t1.create_time>=@btime1 and t1.create_time<=@etime1 then t1.amount_sales * t1.order_to_usd_exchange_rate * t1.bailun_sku_quantity_ordered else 0 end) as 'amount_sales_usd_1',
sum(case when t1.create_time>=@btime1 and t1.create_time<=@etime1 then t1.amount_sales * t1.order_to_usd_exchange_rate * t1.bailun_sku_quantity_ordered else 0 end) as 'amount_sales_usd_1',
sum(case when t1.create_time>=@btime1 and t1.create_time<=@etime1 then t1.bailun_sku_quantity_ordered else 0 end) as 'bailun_sku_quantity_ordered_1',
sum(case when t1.create_time>=@btime1 and t1.create_time<=@etime1 then t1.bailun_sku_quantity_ordered else 0 end) as 'bailun_sku_quantity_ordered_1',
...
@@ -1318,7 +1319,7 @@ and t1.bailun_sku=@bailun_sku and t1.warehouse_code=@warehouse_code
...
@@ -1318,7 +1319,7 @@ and t1.bailun_sku=@bailun_sku and t1.warehouse_code=@warehouse_code
sum(case when t1.create_time>=@btime_month_1 and t1.create_time<=@etime_month_1 then t1.amount_sales * t1.order_to_usd_exchange_rate * t1.bailun_sku_quantity_ordered else 0 end) as 'amount_sales_usd_month_1',
sum(case when t1.create_time>=@btime_month_1 and t1.create_time<=@etime_month_1 then t1.amount_sales * t1.order_to_usd_exchange_rate * t1.bailun_sku_quantity_ordered else 0 end) as 'amount_sales_usd_month_1',
sum(case when t1.create_time>=@btime_month_1 and t1.create_time<=@etime_month_1 then t1.bailun_sku_quantity_ordered else 0 end) as 'bailun_sku_quantity_ordered_month_1',
sum(case when t1.create_time>=@btime_month_1 and t1.create_time<=@etime_month_1 then t1.bailun_sku_quantity_ordered else 0 end) as 'bailun_sku_quantity_ordered_month_1',
...
@@ -1355,7 +1356,7 @@ and t1.bailun_sku=@bailun_sku and t1.warehouse_code=@warehouse_code
...
@@ -1355,7 +1356,7 @@ and t1.bailun_sku=@bailun_sku and t1.warehouse_code=@warehouse_code