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
256e90ed
Commit
256e90ed
authored
Sep 02, 2021
by
zhoujinhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
05441a3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
dc_auto_week_shortage_dao.cs
AutoTurnOver.DB/dc_auto_week_shortage_dao.cs
+2
-1
WeeklyStatisticsServices.cs
AutoTurnOver.Services/WeeklyStatisticsServices.cs
+1
-1
No files found.
AutoTurnOver.DB/dc_auto_week_shortage_dao.cs
View file @
256e90ed
...
@@ -49,7 +49,7 @@ namespace AutoTurnOver.DB
...
@@ -49,7 +49,7 @@ namespace AutoTurnOver.DB
sql
.
Append
(
" ORDER BY t1.create_date_time DESC "
);
sql
.
Append
(
" ORDER BY t1.create_date_time DESC "
);
try
try
{
{
if
(
limit
>
0
)
if
(
limit
>
0
)
{
{
var
obj
=
_connection
.
Page
<
week_shortage_details_page_output_dto
>(
offset
,
limit
,
sql
.
ToString
(),
ref
total
);
var
obj
=
_connection
.
Page
<
week_shortage_details_page_output_dto
>(
offset
,
limit
,
sql
.
ToString
(),
ref
total
);
return
obj
.
AsList
();
return
obj
.
AsList
();
...
@@ -131,6 +131,7 @@ namespace AutoTurnOver.DB
...
@@ -131,6 +131,7 @@ namespace AutoTurnOver.DB
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
Console
.
WriteLine
(
"GetGmtOutStockPageList异常:"
+
ex
.
Message
);
return
new
List
<
gmt_out_stock_page_output_dto
>();
return
new
List
<
gmt_out_stock_page_output_dto
>();
}
}
}
}
...
...
AutoTurnOver.Services/WeeklyStatisticsServices.cs
View file @
256e90ed
...
@@ -163,7 +163,7 @@ namespace AutoTurnOver.Services
...
@@ -163,7 +163,7 @@ namespace AutoTurnOver.Services
start_date
=
DateHelper
.
GetWeekFirstDayMon
(
DateTime
.
Now
.
AddDays
(-
1
)),
start_date
=
DateHelper
.
GetWeekFirstDayMon
(
DateTime
.
Now
.
AddDays
(-
1
)),
end_date
=
DateHelper
.
GetWeekLastDaySun
(
DateTime
.
Now
.
AddDays
(-
1
))
end_date
=
DateHelper
.
GetWeekLastDaySun
(
DateTime
.
Now
.
AddDays
(-
1
))
};
};
dc_auto_week_shortage_dao
.
Insert
(
model
);
//
dc_auto_week_shortage_dao.Insert(model);
Console
.
WriteLine
(
$"写入缺货数据:
{
i
}
---
{
item
.
bailun_sku
}
"
);
Console
.
WriteLine
(
$"写入缺货数据:
{
i
}
---
{
item
.
bailun_sku
}
"
);
}
}
}
}
...
...
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