Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
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
DataCenter_Core2.1_20190520
Commits
297b34c9
Commit
297b34c9
authored
Dec 24, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整计算平台订单利润率
parent
d1f44cc9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
29 deletions
+34
-29
Services.cs
Bailun.DC.DailyItemNoAdGMV/Services.cs
+3
-3
Program.cs
Bailun.DC.DailyItemNoProfitRate/Program.cs
+10
-10
Services.cs
Bailun.DC.DailyItemNoProfitRate/Services.cs
+0
-0
dc_mid_itemno_profit_order.cs
Bailun.DC.Models/dc_mid_itemno_profit_order.cs
+5
-0
Program.cs
Bailun.DC.MonthSaleProfit/Program.cs
+16
-16
No files found.
Bailun.DC.DailyItemNoAdGMV/Services.cs
View file @
297b34c9
...
...
@@ -174,11 +174,11 @@ namespace Bailun.DC.DailyItemNoAdGMV
switch
(
website
)
{
case
"UK"
:
//英国
return
0
;
return
1
;
case
"CA"
:
//加拿大和美国取太平洋时间
case
"US"
:
return
-
5
;
return
-
7
;
case
"AU"
:
//澳大利亚
return
10
;
case
"DE"
:
//德国
...
...
@@ -187,7 +187,7 @@ namespace Bailun.DC.DailyItemNoAdGMV
case
"NL"
:
//荷兰
case
"SE"
:
//瑞典
case
"IT"
:
//意大利
return
1
;
return
2
;
case
"JP"
:
//日本
return
9
;
case
"ID"
:
//印度尼西亚
...
...
Bailun.DC.DailyItemNoProfitRate/Program.cs
View file @
297b34c9
...
...
@@ -10,19 +10,19 @@ namespace Bailun.DC.DailyItemNoProfitRate
static
async
Task
Main
(
string
[]
args
)
{
//
Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
//
var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
//
{
//
services.AddHostedService<Services>();
//
});
Console
.
WriteLine
(
"启动服务 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
{
services
.
AddHostedService
<
Services
>();
});
//
await builder.RunConsoleAsync();
await
builder
.
RunConsoleAsync
();
var
_service
=
new
Services
();
var
day
=
DateTime
.
Parse
(
DateTime
.
Now
.
AddDays
(-
2
).
ToShortDateString
());
//
var _service = new Services();
//
var day = DateTime.Parse(DateTime.Now.AddDays(-2).ToShortDateString());
//_service.Init(day.AddDays(-20), day);
//_service.OneDayItemNoProfitRate(day.AddDays(-1), day);
_service
.
SaveProfitRate
(
day
.
AddDays
(-
20
),
day
);
//
//
_service.OneDayItemNoProfitRate(day.AddDays(-1), day);
//
_service.SaveProfitRate(day.AddDays(-20), day);
}
}
}
Bailun.DC.DailyItemNoProfitRate/Services.cs
View file @
297b34c9
This diff is collapsed.
Click to expand it.
Bailun.DC.Models/dc_mid_itemno_profit_order.cs
View file @
297b34c9
...
...
@@ -62,6 +62,11 @@ namespace Bailun.DC.Models
public
DateTime
paid_time
{
get
;
set
;
}
/// <summary>
/// 平台付款时间
/// </summary>
public
DateTime
platform_paid_time
{
get
;
set
;
}
/// <summary>
/// 销售额
/// </summary>
public
decimal
amount_sales
{
get
;
set
;
}
...
...
Bailun.DC.MonthSaleProfit/Program.cs
View file @
297b34c9
...
...
@@ -7,24 +7,24 @@ namespace Bailun.DC.MonthSaleProfit
{
class
Program
{
static
async
Task
Main
(
string
[]
args
)
{
Console
.
WriteLine
(
"启动服务 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
{
services
.
AddHostedService
<
Services
>();
});
await
builder
.
RunConsoleAsync
();
}
//static void Main(string[] args)
//static async Task Main(string[] args)
//{
// var _services = new Services();
// Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
// var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
// {
// services.AddHostedService<Services>();
// });
// var start = DateTime.Parse("2020-11-01");
// //_services.InitNew(start);
// _services.InitNew4K(start);
// await builder.RunConsoleAsync();
//}
static
void
Main
(
string
[]
args
)
{
var
_services
=
new
Services
();
var
start
=
DateTime
.
Parse
(
"2020-11-01"
);
_services
.
InitNew
(
start
);
//_services.InitNew4K(start);
}
}
}
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