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
48452575
Commit
48452575
authored
Oct 22, 2019
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改刷新缺货字段的方法
parent
b6ad8e5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
purchase_advise.cs
AutoTurnOver.DB/purchase_advise.cs
+5
-0
No files found.
AutoTurnOver.DB/purchase_advise.cs
View file @
48452575
...
@@ -418,6 +418,11 @@ SELECT
...
@@ -418,6 +418,11 @@ SELECT
WHERE (t1.bailun_sku_quantity_ordered - t1.bailun_sku_quantity_pushed - t2.usable_stock - t2.occupy_stock + ifnull(t3.safe_stock, 0)) >= 0
WHERE (t1.bailun_sku_quantity_ordered - t1.bailun_sku_quantity_pushed - t2.usable_stock - t2.occupy_stock + ifnull(t3.safe_stock, 0)) >= 0
ON DUPLICATE KEY UPDATE quantity_out_stock = values(quantity_out_stock) ,gmt_out_stock_modified = values(gmt_out_stock_modified)
ON DUPLICATE KEY UPDATE quantity_out_stock = values(quantity_out_stock) ,gmt_out_stock_modified = values(gmt_out_stock_modified)
"
,
commandTimeout
:
0
);
"
,
commandTimeout
:
0
);
var
time
=
_connection
.
QueryFirstOrDefault
<
DateTime
>(
" select max(gmt_out_stock_modified) from dc_mid_transit "
);
_connection
.
Execute
(
" update dc_mid_transit set quantity_out_stock =0 where gmt_out_stock_modified < @time "
,
new
{
time
=
time
});
}
}
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