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
bb4009e9
Commit
bb4009e9
authored
Feb 24, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7aefa40f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
report.cs
AutoTurnOver.DB/report.cs
+18
-1
No files found.
AutoTurnOver.DB/report.cs
View file @
bb4009e9
...
@@ -4120,9 +4120,26 @@ from dc_base_transfer_plan as t1
...
@@ -4120,9 +4120,26 @@ from dc_base_transfer_plan as t1
left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code
left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code
where t1.`status`=1 and t2.hq_type not IN ('国内仓','fba仓') and t1.deleted=0
where t1.`status`=1 and t2.hq_type not IN ('国内仓','fba仓') and t1.deleted=0
"
).
ToList
();
"
).
ToList
();
if
(
temp_p_datas2
!=
null
&&
temp_p_datas2
.
Count
>=
1
)
_connection
.
Execute
(
@" update dc_mid_transit as t1 ,
dc_base_warehouse as t2
set t1.quantity_transfer_temp_schedule=0
where t1.warehouse_code =t2.warehouse_code and t2.hq_type not in ('国内仓','fba仓')
"
);
if
(
temp_p_datas2
!=
null
&&
temp_p_datas2
.
Count
>=
1
)
{
{
temp_p_datas
.
AddRange
(
temp_p_datas2
);
temp_p_datas
.
AddRange
(
temp_p_datas2
);
// 刷到实时缺货表里面
foreach
(
var
item
in
temp_p_datas2
.
GroupBy
(
s
=>
new
{
s
.
bailun_sku
,
s
.
warehouse_code
}))
{
_connection
.
Execute
(
"update dc_mid_transit set quantity_transfer_temp_schedule=@quantity_transfer_temp_schedule where bailun_sku=@bailun_sku and warehouse_code=@warehouse_code "
,
new
{
bailun_sku
=
item
.
Key
.
bailun_sku
,
warehouse_code
=
item
.
Key
.
warehouse_code
,
quantity_transfer_temp_schedule
=
item
.
Sum
(
v
=>
v
.
count
)
});
}
}
}
// 查询已经有调拨的采购单
// 查询已经有调拨的采购单
foreach
(
var
item
in
temp_p_datas
.
GroupBy
(
s
=>
s
.
purchase_id
))
foreach
(
var
item
in
temp_p_datas
.
GroupBy
(
s
=>
s
.
purchase_id
))
...
...
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