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
d75eb92d
Commit
d75eb92d
authored
Jul 28, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6825c7fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
3 deletions
+32
-3
DbHelper.cs
AutoTurnOver.DB/Base/DbHelper.cs
+2
-0
report_cash_flow_dao.cs
AutoTurnOver.DB/report_cash_flow_dao.cs
+2
-2
CommonController.cs
AutoTurnOver/Controllers/CommonController.cs
+18
-0
Program.cs
ResetOutofstock/Program.cs
+10
-1
No files found.
AutoTurnOver.DB/Base/DbHelper.cs
View file @
d75eb92d
using
AutoTurnOver.Models.Base
;
using
AutoTurnOver.Utility
;
using
Dapper
;
using
MySql.Data
;
using
MySql.Data.MySqlClient
;
using
System
;
using
System.Collections.Generic
;
...
...
@@ -229,6 +230,7 @@ namespace AutoTurnOver.DB.Base
if
(
table
.
Rows
.
Count
==
0
)
return
0
;
string
tmpPath
=
Path
.
GetTempFileName
();
Console
.
WriteLine
(
tmpPath
);
string
csv
=
DataTableToCsv
(
table
);
File
.
WriteAllText
(
tmpPath
,
csv
);
// MySqlTransaction tran = null;
...
...
AutoTurnOver.DB/report_cash_flow_dao.cs
View file @
d75eb92d
...
...
@@ -28,7 +28,7 @@ namespace AutoTurnOver.DB
var
conn
=
_connection
;
conn
.
Open
();
int
page
=
1
;
int
rows
=
1000
0
;
int
rows
=
1000
;
List
<
dc_report_cash_flow_config
>
configs
=
conn
.
Query
<
dc_report_cash_flow_config
>(
" select * from dc_report_cash_flow_config "
).
AsList
();
while
(
true
)
{
...
...
@@ -395,7 +395,7 @@ namespace AutoTurnOver.DB
{
UpdateUsersTest
(
conn
,
updateList
);
}
}
}
catch
(
Exception
ex
)
...
...
AutoTurnOver/Controllers/CommonController.cs
View file @
d75eb92d
...
...
@@ -147,6 +147,24 @@ namespace AutoTurnOver.Controllers
}
public
JsonResult
LogisticsCompanyList
(
string
name
)
{
try
{
var
list
=
ApiUtility
.
RealTimeShipLogisticsCompanyList
().
Where
(
s
=>
s
.
Company_Name
.
Contains
(
name
));
return
new
JsonResult
(
list
.
Select
(
p
=>
new
{
id
=
p
.
Company_Code
,
text
=
p
.
Company_Code
+
" - "
+
p
.
Company_Name
}));
}
catch
(
Exception
ex
)
{
throw
;
}
}
public
JsonResult
PlatformList
()
{
var
datas
=
ApiServices
.
PlatformList
();
...
...
ResetOutofstock/Program.cs
View file @
d75eb92d
...
...
@@ -14,7 +14,16 @@ namespace ResetOutofstock
{
Console
.
WriteLine
(
"刷新缺货数据任务启动..."
);
//report_cash_flow_dao.CalculationOrderCostLogistics(now.AddMonths(-3), DateTime.Parse(now.AddDays(-1).ToString("yyyy-MM-dd 23:59:59")));
//try
//{
// var now = DateTime.Now;
// report_cash_flow_dao.CalculationOrder(now.AddMonths(-3), DateTime.Parse(now.ToString("yyyy-MM-dd 23:59:59")));
//}
//catch (Exception ex)
//{
// throw;
//}
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
{
...
...
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