Commit 94db69a2 by guanzhenshan

完善不合理报告

parent 1cd7b30f
...@@ -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-02"); var start = DateTime.Parse("2020-01-05");
_services.Init(start); _services.Init(start);
} }
......
...@@ -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; }
} }
} }
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"]
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");
//}
} }
} }
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment