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
e64fa403
Commit
e64fa403
authored
Jul 18, 2019
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化记录日志
parent
ba0a3765
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
GeneratePurchaseAdviseBackgroundService.cs
...PurchaseAdvise/GeneratePurchaseAdviseBackgroundService.cs
+2
-2
SkuAutoTurnServices.cs
AutoTurnOver.Services/SkuAutoTurnServices.cs
+11
-3
No files found.
AutoGeneratePurchaseAdvise/GeneratePurchaseAdviseBackgroundService.cs
View file @
e64fa403
...
@@ -48,9 +48,9 @@ namespace AutoGeneratePurchaseAdvise
...
@@ -48,9 +48,9 @@ namespace AutoGeneratePurchaseAdvise
if
(
now
.
Hour
==
7
&&
now
.
Minute
==
29
)
if
(
now
.
Hour
==
7
&&
now
.
Minute
==
29
)
{
{
Console
.
WriteLine
(
$"开始推送
采购建议任务
,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Console
.
WriteLine
(
$"开始推送
广州01周转数据
,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
new
SkuAutoTurnServices
().
GenerateData
();
new
SkuAutoTurnServices
().
GenerateData
();
Console
.
WriteLine
(
$"结束推送
采购建议任务
,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Console
.
WriteLine
(
$"结束推送
广州01周转数据
,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
}
}
...
...
AutoTurnOver.Services/SkuAutoTurnServices.cs
View file @
e64fa403
...
@@ -369,9 +369,17 @@ namespace AutoTurnOver.Services
...
@@ -369,9 +369,17 @@ namespace AutoTurnOver.Services
/// <returns></returns>
/// <returns></returns>
public
async
void
GenerateData
()
public
async
void
GenerateData
()
{
{
var
memory
=
Export
(
new
UserData
{
UserAccount
=
"admin"
},
new
Condition_AutoTurnOver
{
warehouse_code
=
"GZBLWH"
},
""
,
""
);
try
var
fileData
=
await
QiNiuCloudHelper
.
UploadAsync
(
memory
,
$"zhouzhuangshuj_
{
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
)}
.csv"
);
{
ApiServices
.
QiYeJiQiRenMsPush
(
new
QiYeJiQiRenMsDto
{
msgtype
=
"text"
,
text
=
new
QiYeJiQiRenMsDto
.
text_dto
{
content
=
"广州01周转数据:"
+
fileData
}
});
var
memory
=
Export
(
new
UserData
{
UserAccount
=
"admin"
},
new
Condition_AutoTurnOver
{
warehouse_code
=
"GZBLWH"
},
""
,
""
);
var
fileData
=
await
QiNiuCloudHelper
.
UploadAsync
(
memory
,
$"zhouzhuangshuj_
{
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
)}
.csv"
);
ApiServices
.
QiYeJiQiRenMsPush
(
new
QiYeJiQiRenMsDto
{
msgtype
=
"text"
,
text
=
new
QiYeJiQiRenMsDto
.
text_dto
{
content
=
"广州01周转数据:"
+
fileData
}
});
}
catch
(
Exception
ex
)
{
Console
.
WriteLine
(
ex
.
Message
);
}
}
}
...
...
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