wanggang
1 year ago
25 changed files with 6204 additions and 443 deletions
Binary file not shown.
@ -1,6 +0,0 @@ |
|||
[meta] |
|||
dir = "./data/meta" |
|||
|
|||
[data] |
|||
dir = "./data/data" |
|||
wal-dir = "./data/wal" |
@ -1,11 +0,0 @@ |
|||
@echo off |
|||
|
|||
tasklist|find /i "influxd.exe" |
|||
|
|||
if %errorlevel% == 0 ( |
|||
¡¡¡¡exit |
|||
) |
|||
|
|||
%1 start mshta vbscript:createobject("wscript.shell").run("""%~0"" ::",0)(window.close)&&exit |
|||
|
|||
start /b ./influxd.exe -config ./influxdb.conf |
@ -1,3 +0,0 @@ |
|||
@ECHO OFF |
|||
|
|||
taskkill /im influxd.exe /f /t |
@ -0,0 +1,22 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Entities; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
|||
|
|||
public class VmiMessage : Entity<Guid>, IHasConcurrencyStamp |
|||
{ |
|||
public VmiMessage() |
|||
{ |
|||
ConcurrencyStamp = Guid.NewGuid().ToString("N"); |
|||
} |
|||
|
|||
public VmiMessage(Guid id) : base(id) |
|||
{ |
|||
ConcurrencyStamp = Guid.NewGuid().ToString("N"); |
|||
} |
|||
public long Number { get; set; } |
|||
public string Message { get; set; } |
|||
public bool isConsumed { get; set; } |
|||
public DateTime CreatedTime { get; set; } = DateTime.Now; |
|||
public string ConcurrencyStamp { get; set; } |
|||
} |
@ -1,25 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
|||
|
|||
namespace Win.Sfs.SettleAccount.EntityFrameworkCore; |
|||
|
|||
public class VmiSqliteContext : DbContext |
|||
{ |
|||
private readonly string _connectionString; |
|||
|
|||
public VmiSqliteContext(string connectionString) |
|||
{ |
|||
this._connectionString = connectionString; |
|||
} |
|||
|
|||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) |
|||
{ |
|||
optionsBuilder.UseSqlite(this._connectionString); |
|||
} |
|||
|
|||
protected override void OnModelCreating(ModelBuilder modelBuilder) |
|||
{ |
|||
modelBuilder.Entity<VmiBalance>().HasKey(o => o.Id); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,236 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class vmi12 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropIndex( |
|||
name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DeleteData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("daf33f05-698e-49cf-b688-9288f5e94be5")); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CustomerPartCode", |
|||
table: "Set_VmiLog"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "BackupTime", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "SubBillType", |
|||
table: "Set_VmiLog", |
|||
newName: "DeliverSubBillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "PartCode2", |
|||
table: "Set_VmiLog", |
|||
newName: "SettlementPartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "PartCode", |
|||
table: "Set_VmiLog", |
|||
newName: "RealPartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "GroupId", |
|||
table: "Set_VmiLog", |
|||
newName: "CustPartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "DeliverTime", |
|||
table: "Set_VmiLog", |
|||
newName: "AssembleData"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "BillType", |
|||
table: "Set_VmiLog", |
|||
newName: "DeliverBillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "SubBillType", |
|||
table: "Set_VmiBalance", |
|||
newName: "DeliverSubBillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "PartCode", |
|||
table: "Set_VmiBalance", |
|||
newName: "RealPartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "DeliverTime", |
|||
table: "Set_VmiBalance", |
|||
newName: "AssembleData"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CustomerPartCode", |
|||
table: "Set_VmiBalance", |
|||
newName: "SettlementVinCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "BillType", |
|||
table: "Set_VmiBalance", |
|||
newName: "DeliverBillType"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "CustPartCode", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "IsReplenished", |
|||
table: "Set_VmiBalance", |
|||
type: "bit", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SettlementPartCode", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Set_VmiMessage", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Number = table.Column<long>(type: "bigint", nullable: false) |
|||
.Annotation("SqlServer:Identity", "1, 1"), |
|||
Message = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
isConsumed = table.Column<bool>(type: "bit", nullable: false), |
|||
CreatedTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Set_VmiMessage", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, |
|||
values: new object[] { new Guid("1fad01d0-8122-42d3-bb8f-5fff76230eea"), null, null, null, "302d775f40154c279dbf7bbd37489b46", null, null, 1, null, "ErpToLoc", null, null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Set_VmiBalance_DeliverBillType_CodeType_RealPartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode" }, |
|||
unique: true, |
|||
filter: "[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "Set_VmiMessage"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_Set_VmiBalance_DeliverBillType_CodeType_RealPartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DeleteData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("1fad01d0-8122-42d3-bb8f-5fff76230eea")); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CustPartCode", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "IsReplenished", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SettlementPartCode", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "SettlementPartCode", |
|||
table: "Set_VmiLog", |
|||
newName: "PartCode2"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "RealPartCode", |
|||
table: "Set_VmiLog", |
|||
newName: "PartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "DeliverSubBillType", |
|||
table: "Set_VmiLog", |
|||
newName: "SubBillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "DeliverBillType", |
|||
table: "Set_VmiLog", |
|||
newName: "BillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CustPartCode", |
|||
table: "Set_VmiLog", |
|||
newName: "GroupId"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "AssembleData", |
|||
table: "Set_VmiLog", |
|||
newName: "DeliverTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "SettlementVinCode", |
|||
table: "Set_VmiBalance", |
|||
newName: "CustomerPartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "RealPartCode", |
|||
table: "Set_VmiBalance", |
|||
newName: "PartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "DeliverSubBillType", |
|||
table: "Set_VmiBalance", |
|||
newName: "SubBillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "DeliverBillType", |
|||
table: "Set_VmiBalance", |
|||
newName: "BillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "AssembleData", |
|||
table: "Set_VmiBalance", |
|||
newName: "DeliverTime"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "CustomerPartCode", |
|||
table: "Set_VmiLog", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "BackupTime", |
|||
table: "Set_VmiBalance", |
|||
type: "datetime2", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, |
|||
values: new object[] { new Guid("daf33f05-698e-49cf-b688-9288f5e94be5"), null, null, 1, null, "2232ce1052044e5db3c50a381547b2bc", null, null, null, "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, null, null, "VinCode", null }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode" }, |
|||
unique: true, |
|||
filter: "[BillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue