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
d1f44cc9
Commit
d1f44cc9
authored
Dec 24, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整同步财务分类服务
parent
b0810d4a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
15 deletions
+48
-15
dc_logistics_supplier_config.cs
...upplierTransaction/Models/dc_logistics_supplier_config.cs
+32
-0
Services.cs
Bailun.DC.DailyLogisticSupplierTransaction/Services.cs
+0
-0
Program.cs
Bailun.DC.SyncSkuFinanceCategory/Program.cs
+14
-14
Services.cs
Bailun.DC.SyncSkuFinanceCategory/Services.cs
+2
-1
No files found.
Bailun.DC.DailyLogisticSupplierTransaction/Models/dc_logistics_supplier_config.cs
0 → 100644
View file @
d1f44cc9
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.DailyLogisticSupplierTransaction.Models
{
/// <summary>
/// 物流供应商往来供应商配置
/// </summary>
public
class
dc_logistics_supplier_config
{
public
int
id
{
get
;
set
;
}
public
string
suppliername
{
get
;
set
;
}
public
string
parentsuppliername
{
get
;
set
;
}
/// <summary>
/// 类型,1:需合并的,2:需删除不统计的
/// </summary>
public
int
type
{
get
;
set
;
}
public
DateTime
lastupdatetime
{
get
;
set
;
}
public
int
lastupdateuserid
{
get
;
set
;
}
public
string
lastupdateusername
{
get
;
set
;
}
public
int
delstatus
{
get
;
set
;
}
}
}
Bailun.DC.DailyLogisticSupplierTransaction/Services.cs
View file @
d1f44cc9
This diff is collapsed.
Click to expand it.
Bailun.DC.SyncSkuFinanceCategory/Program.cs
View file @
d1f44cc9
...
@@ -11,23 +11,23 @@ namespace Bailun.DC.SyncSkuFinanceCategory
...
@@ -11,23 +11,23 @@ namespace Bailun.DC.SyncSkuFinanceCategory
/// 同步sku财务分类
/// 同步sku财务分类
/// </summary>
/// </summary>
/// <param name="args"></param>
/// <param name="args"></param>
//
static async Task Main(string[] args)
static
async
Task
Main
(
string
[]
args
)
//
{
{
//
Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
Console
.
WriteLine
(
"启动服务 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
//
var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
//
{
{
//
services.AddHostedService<Services>();
services
.
AddHostedService
<
Services
>();
//
});
});
//
await builder.RunConsoleAsync();
await
builder
.
RunConsoleAsync
();
//
}
}
static
void
Main
(
string
[]
args
)
//
static void Main(string[] args)
{
//
{
//Console.WriteLine("Hello World!");
//
//Console.WriteLine("Hello World!");
new
Services
().
Init
();
//
new Services().Init();
}
//
}
}
}
}
}
Bailun.DC.SyncSkuFinanceCategory/Services.cs
View file @
d1f44cc9
...
@@ -49,6 +49,7 @@ namespace Bailun.DC.SyncSkuFinanceCategory
...
@@ -49,6 +49,7 @@ namespace Bailun.DC.SyncSkuFinanceCategory
public
void
Init
()
public
void
Init
()
{
{
var
page
=
0
;
var
page
=
0
;
var
pagesize
=
1000
;
var
pagesize
=
1000
;
var
count
=
0
;
var
count
=
0
;
...
@@ -82,7 +83,7 @@ namespace Bailun.DC.SyncSkuFinanceCategory
...
@@ -82,7 +83,7 @@ namespace Bailun.DC.SyncSkuFinanceCategory
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
{
{
cn
.
Execute
(
"delete from dc_base_sku_finance_category where bailuncategoryid="
+
item
.
bailunCategoryId
+
" and financecategoryid="
+
item
.
platCateoryId
);
cn
.
Execute
(
"delete from dc_base_sku_finance_category where bailuncategoryid="
+
item
.
bailunCategoryId
);
var
m
=
new
Models
.
dc_base_sku_finance_category
{
var
m
=
new
Models
.
dc_base_sku_finance_category
{
bailuncategoryid
=
item
.
bailunCategoryId
,
bailuncategoryid
=
item
.
bailunCategoryId
,
...
...
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