Commit dc84c61d by 泽锋 李

fix

parent 365dc130
......@@ -368,9 +368,9 @@ and t1.quantity_init_advise>=0 and ( t3.buyer_name in ('张莹霞1') and t1.ware
// 刷新商品moq汇总数据
_connection.Execute(@" -- 刷新 刷新商品moq汇总数据
-- 清空视图表的数据
Truncate table dc_aims_goods_moq_temp;
Truncate table dc_aims_goods_moq;
INSERT into dc_aims_goods_moq_temp(`product_inner_code`,`suppliers_id`,`warehouse_code`,`sum_quantity_init_advise`,`max_moq`
INSERT into dc_aims_goods_moq(`product_inner_code`,`suppliers_id`,`warehouse_code`,`sum_quantity_init_advise`,`max_moq`
,`sum_history_fourteenday_sales`,`sku_count`,`sku_codes`,`u_id`)
(
SELECT
......@@ -416,18 +416,13 @@ INSERT into dc_aims_goods_moq_temp(`product_inner_code`,`suppliers_id`,`warehous
GROUP BY
`t6`.`product_inner_code`,
`t6`.`suppliers_id`,
`t1`.`warehouse_code`)
;
alter table dc_aims_goods_moq rename dc_aims_goods_moqTemp;
alter table dc_aims_goods_moq_temp rename dc_aims_goods_moq;
alter table dc_aims_goods_moqTemp rename dc_aims_goods_moq_temp;
truncate table dc_aims_goods_moq_temp; ", new { time = date }, commandTimeout: 0);
`t1`.`warehouse_code`);
; ", new { time = date }, commandTimeout: 0);
_connection.Execute(@" update dc_auto_turnover as t1,
dc_base_sku as t2
set t1.adv_uid = CONCAT(t2.product_inner_code,t2.suppliers_id,t1.warehouse_code)
where t1.bailun_sku = t2.bailun_sku and t1.gmt_modified>=@btime
where t1.bailun_sku = t2.bailun_sku and t1.gmt_modified>=@btime ;
",new { btime = date },commandTimeout:0);
//RedundancyDeduction("QYBLZZ", "GZBLWH");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment