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
a2ae15af
Commit
a2ae15af
authored
Apr 23, 2019
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缓存采购在途表
parent
3682f75b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
report.cs
AutoTurnOver.DB/report.cs
+19
-1
No files found.
AutoTurnOver.DB/report.cs
View file @
a2ae15af
...
@@ -200,7 +200,7 @@ left join china_warehouse_unshipped as t4 on t1.bailun_sku = t4.bailun_sku and t
...
@@ -200,7 +200,7 @@ left join china_warehouse_unshipped as t4 on t1.bailun_sku = t4.bailun_sku and t
left join dc_base_stock as t5 on t1.bailun_sku = t5.bailun_sku and t1.warehouse_code = t5.warehouse_code
left join dc_base_stock as t5 on t1.bailun_sku = t5.bailun_sku and t1.warehouse_code = t5.warehouse_code
left join dc_base_sku as t6 on t1.bailun_sku = t6.bailun_sku
left join dc_base_sku as t6 on t1.bailun_sku = t6.bailun_sku
left join dc_auto_config_sku_warehouse as t7 on t1.bailun_sku = t7.bailun_sku and t1.warehouse_code = t7.warehouse_code
left join dc_auto_config_sku_warehouse as t7 on t1.bailun_sku = t7.bailun_sku and t1.warehouse_code = t7.warehouse_code
left join
view_buy_ontheway_detail
as t8 on t1.bailun_sku = t8.bailun_sku and t1.warehouse_code_extend = t8.warehouse_code
left join
buy_ontheway_detail_temp
as t8 on t1.bailun_sku = t8.bailun_sku and t1.warehouse_code_extend = t8.warehouse_code
where 1=1
where 1=1
"
;
"
;
}
}
...
@@ -357,6 +357,24 @@ alter table china_warehouse_unshipped rename china_warehouse_unshippedTemp;
...
@@ -357,6 +357,24 @@ alter table china_warehouse_unshipped rename china_warehouse_unshippedTemp;
alter table china_warehouse_unshipped_temp rename china_warehouse_unshipped;
alter table china_warehouse_unshipped_temp rename china_warehouse_unshipped;
alter table china_warehouse_unshippedTemp rename china_warehouse_unshipped_temp;
alter table china_warehouse_unshippedTemp rename china_warehouse_unshipped_temp;
truncate table china_warehouse_unshipped_temp; "
,
commandTimeout
:
0
);
truncate table china_warehouse_unshipped_temp; "
,
commandTimeout
:
0
);
_connection
.
Execute
(
@" -- 刷新缺货明细表
set session transaction isolation level read uncommitted;
start transaction;
-- 清空视图表的数据
Truncate table buy_ontheway_detail_temp;
INSERT into buy_ontheway_detail_temp(`bailun_sku`,`warehouse_code`,`buy_ontheway_detail`) (
select
t1.*
from view_buy_ontheway_detail as t1
);
alter table buy_ontheway_detail rename buy_ontheway_detailTemp;
alter table buy_ontheway_detail_temp rename buy_ontheway_detail;
alter table buy_ontheway_detailTemp rename buy_ontheway_detailtemp;
truncate table buy_ontheway_detailtemp; "
,
commandTimeout
:
0
);
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
...
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