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
16503b6e
Commit
16503b6e
authored
Aug 02, 2019
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化库存查询
parent
6ccf96e4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
daily.cs
AutoTurnOver.DB/daily.cs
+13
-8
Program.cs
ShortagePush/Program.cs
+1
-1
No files found.
AutoTurnOver.DB/daily.cs
View file @
16503b6e
...
...
@@ -239,9 +239,12 @@ from
dc_base_stock as t1
left join dc_base_warehouse as dbw on t1.warehouse_code = dbw.warehouse_code
left join dc_mid_transit as t4 on t1.bailun_sku = t4.bailun_sku and t1.warehouse_code = t4.warehouse_code
left join dc_base_tort as t5 on t1.bailun_sku = t5.bailun_sku
where 1=1"
;
"
;
if
(
has_tort
!=
null
)
{
sql
+=
" left join dc_base_tort as t5 on t1.bailun_sku = t5.bailun_sku "
;
}
sql
+=
" where 1=1 "
;
}
else
{
...
...
@@ -269,18 +272,20 @@ left join dc_auto_config_sku_warehouse as t7 on t1.bailun_sku = t7.bailun_sku an
where 1=1
"
;
}
var
countSql
=
@"
select
count(1)
from
dc_base_stock as t1
left join dc_base_warehouse as dbw on t1.warehouse_code = dbw.warehouse_code
left join dc_mid_transit as t4 on t1.bailun_sku = t4.bailun_sku and t1.warehouse_code = t4.warehouse_code
left join dc_base_tort as t5 on t1.bailun_sku = t5.bailun_sku
where 1=1
"
;
if
(
has_tort
!=
null
)
{
countSql
+=
" left join dc_base_tort as t5 on t1.bailun_sku = t5.bailun_sku "
;
}
countSql
+=
"where 1=1 "
;
DynamicParameters
parameters
=
new
DynamicParameters
();
parameters
.
Add
(
"time"
,
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd 00:00:00"
));
...
...
ShortagePush/Program.cs
View file @
16503b6e
...
...
@@ -12,7 +12,7 @@ namespace ShortagePush
static
async
Task
Main
(
string
[]
args
)
{
Console
.
WriteLine
(
"推送缺货数据服务"
);
var
datas
=
report
.
ShortagePush
();
var
datas
=
report
.
ShortagePush
(
true
);
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
{
services
.
AddHostedService
<
ShortagePushBackgroundService
>();
...
...
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