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
94db69a2
Commit
94db69a2
authored
Jan 07, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善不合理报告
parent
1cd7b30f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
71 additions
and
7 deletions
+71
-7
Program.cs
Bailun.DC.DailyPurchaseSellStock/Program.cs
+1
-1
dc_mid_month_sale_putin_report.cs
Bailun.DC.Models/dc_mid_month_sale_putin_report.cs
+20
-0
Dockerfile
Bailun.DC.MonthSalePutin/Dockerfile
+21
-0
Program.cs
Bailun.DC.MonthSalePutin/Program.cs
+22
-6
Services.cs
Bailun.DC.MonthSalePutin/Services.cs
+0
-0
docker-compose.yml
docker-compose.yml
+7
-0
No files found.
Bailun.DC.DailyPurchaseSellStock/Program.cs
View file @
94db69a2
...
@@ -22,7 +22,7 @@ namespace Bailun.DC.DailyPurchaseSellStock
...
@@ -22,7 +22,7 @@ namespace Bailun.DC.DailyPurchaseSellStock
{
{
var
_services
=
new
Services
();
var
_services
=
new
Services
();
var
start
=
DateTime
.
Parse
(
"2020-01-0
2
"
);
var
start
=
DateTime
.
Parse
(
"2020-01-0
5
"
);
_services
.
Init
(
start
);
_services
.
Init
(
start
);
}
}
...
...
Bailun.DC.Models/dc_mid_month_sale_putin_report.cs
View file @
94db69a2
...
@@ -15,6 +15,11 @@ namespace Bailun.DC.Models
...
@@ -15,6 +15,11 @@ namespace Bailun.DC.Models
public
int
id
{
get
;
set
;
}
public
int
id
{
get
;
set
;
}
/// <summary>
/// <summary>
///
/// </summary>
public
int
sale_putin_id
{
get
;
set
;
}
/// <summary>
/// 仓库编码
/// 仓库编码
/// </summary>
/// </summary>
public
string
warehouse_code
{
get
;
set
;
}
public
string
warehouse_code
{
get
;
set
;
}
...
@@ -99,5 +104,20 @@ namespace Bailun.DC.Models
...
@@ -99,5 +104,20 @@ namespace Bailun.DC.Models
/// </summary>
/// </summary>
public
DateTime
createtime
{
get
;
set
;
}
public
DateTime
createtime
{
get
;
set
;
}
/// <summary>
/// 是否清货,1:是,0:否
/// </summary>
public
int
?
is_clear
{
get
;
set
;
}
/// <summary>
/// 是否新品,1:是,0:否
/// </summary>
public
int
?
is_new
{
get
;
set
;
}
/// <summary>
/// 是否aims下单,1:是,0:否
/// </summary>
public
int
?
is_aimsorder
{
get
;
set
;
}
}
}
}
}
Bailun.DC.MonthSalePutin/Dockerfile
0 → 100644
View file @
94db69a2
FROM
microsoft/dotnet:2.1-runtime AS base
WORKDIR
/app
RUN
/bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
echo
'Asia/Shanghai'
>
/etc/timezone
FROM
microsoft/dotnet:2.1-sdk AS build
WORKDIR
/src
COPY
Bailun.DC.MonthSalePutin/Bailun.DC.MonthSalePutin.csproj Bailun.DC.MonthSalePutin/
COPY
Bailun.DC.Common/Bailun.DC.Common.csproj Bailun.DC.Common/
COPY
Bailun.DC.Models/Bailun.DC.Models.csproj Bailun.DC.Models/
RUN
dotnet restore Bailun.DC.MonthSalePutin/Bailun.DC.MonthSalePutin.csproj
COPY
. .
WORKDIR
/src/Bailun.DC.MonthSalePutin
RUN
dotnet build Bailun.DC.MonthSalePutin.csproj
-c
Release
-o
/app
FROM
build AS publish
RUN
dotnet publish Bailun.DC.MonthSalePutin.csproj
-c
Release
-o
/app
FROM
base AS final
WORKDIR
/app
COPY
--from=publish /app .
ENTRYPOINT
["dotnet", "Bailun.DC.MonthSalePutin.dll"]
Bailun.DC.MonthSalePutin/Program.cs
View file @
94db69a2
using
System
;
using
Microsoft.Extensions.DependencyInjection
;
using
Microsoft.Extensions.Hosting
;
using
System
;
using
System.Threading.Tasks
;
namespace
Bailun.DC.MonthSalePutin
namespace
Bailun.DC.MonthSalePutin
{
{
class
Program
class
Program
{
{
static
void
Main
(
string
[]
args
)
static
async
Task
Main
(
string
[]
args
)
{
{
//Console.WriteLine("Hello World!");
Console
.
WriteLine
(
"启动服务 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
Services
_service
=
new
Services
();
{
services
.
AddHostedService
<
Services
>();
});
_service
.
Init
(
DateTime
.
Parse
(
"2019-12-01"
)
);
await
builder
.
RunConsoleAsync
(
);
}
}
//static void Main(string[] args)
//{
// //Console.WriteLine("Hello World!");
// Services _service = new Services();
// //_service.Init(DateTime.Parse("2019-12-01"));
// //_service.UnReasonable("2019-12");
// //_service.Analyze("2019-12");
//}
}
}
}
}
Bailun.DC.MonthSalePutin/Services.cs
View file @
94db69a2
This diff is collapsed.
Click to expand it.
docker-compose.yml
View file @
94db69a2
...
@@ -90,3 +90,10 @@ services:
...
@@ -90,3 +90,10 @@ services:
context
:
.
context
:
.
dockerfile
:
Bailun.DC.DailyPlatformReceivable/Dockerfile
dockerfile
:
Bailun.DC.DailyPlatformReceivable/Dockerfile
bailun.dc.monthsaleputin
:
image
:
${DOCKER_REGISTRY}bailundcmonthsaleputin
build
:
context
:
.
dockerfile
:
Bailun.DC.MonthSalePutin/Dockerfile
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