Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
data-center-auto
Commits
dc84c61d
Commit
dc84c61d
authored
Jan 20, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
365dc130
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
purchase_advise.cs
AutoTurnOver.DB/purchase_advise.cs
+5
-10
No files found.
AutoTurnOver.DB/purchase_advise.cs
View file @
dc84c61d
...
...
@@ -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");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment