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
1c0c1b62
Commit
1c0c1b62
authored
Mar 19, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库龄生成服务增加更新仓库类型和产品分类的功能
parent
e379d7c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
Services.cs
Bailun.DC.DailyStockAge/Services.cs
+20
-0
No files found.
Bailun.DC.DailyStockAge/Services.cs
View file @
1c0c1b62
...
...
@@ -50,6 +50,8 @@ namespace Bailun.DC.DailyStockAge
cn_update
.
Execute
(
"TRUNCATE dc_mid_stock_age;"
);
#
region
成品
//获取当前的库存记录
var
liststock
=
new
List
<
mSkuStock
>();
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString_read
))
...
...
@@ -73,6 +75,24 @@ namespace Bailun.DC.DailyStockAge
Console
.
WriteLine
(
"服务结束 "
+
" >>"
+
DateTime
.
Now
);
}
//更新成品库龄数据的仓库类型字段
var
sql
=
@"update dc_mid_stock_age t1
join dc_base_warehouse t2 on t1.warehouse_code=t2.warehouse_code
set t1.warehouse_type = t2.hq_type,t1.warehouse_name=t2.warehouse_name
where t1.warehouse_type='';"
;
cn_update
.
Execute
(
sql
,
null
,
null
,
2
*
60
);
//更新成品库龄数据的sku产品类型字段
sql
=
@"update dc_mid_stock_age t1
join dc_base_sku t2 on t1.bailun_sku=t2.bailun_sku
join dc_base_sku_finance_category t3 on t3.bailuncategoryid=t2.bailun_category_id
set t1.sku_category=t3.financecategoryname
where t1.warehouse_type!='半成品仓'"
;
cn_update
.
Execute
(
sql
,
null
,
null
,
2
*
60
);
#
endregion
cn_update
.
Close
();
cn_update
.
Dispose
();
...
...
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