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
82ee6928
Commit
82ee6928
authored
Sep 11, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
逻辑仓库服务增加记录每日快照功能
parent
48c717b3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
293 additions
and
2 deletions
+293
-2
Bailun.DC.LogicWareHouse.csproj
Bailun.DC.LogicWareHouse/Bailun.DC.LogicWareHouse.csproj
+1
-0
dc_mid_logic_wh_statistic.cs
Bailun.DC.LogicWareHouse/Models/dc_mid_logic_wh_statistic.cs
+57
-0
dc_semi_stock_sales_shipping.cs
....DC.LogicWareHouse/Models/dc_semi_stock_sales_shipping.cs
+57
-0
mLogicWarehouse.cs
Bailun.DC.LogicWareHouse/Models/mLogicWarehouse.cs
+99
-0
mResponse.cs
Bailun.DC.LogicWareHouse/Models/mResponse.cs
+76
-0
Program.cs
Bailun.DC.LogicWareHouse/Program.cs
+2
-1
Services.cs
Bailun.DC.LogicWareHouse/Services.cs
+0
-0
HomeController.cs
Bailun.DC.Web/Controllers/HomeController.cs
+1
-1
No files found.
Bailun.DC.LogicWareHouse/Bailun.DC.LogicWareHouse.csproj
View file @
82ee6928
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<PackageReference Include="Dapper" Version="1.60.6" />
<PackageReference Include="Dapper" Version="1.60.6" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="2.2.0" />
<PackageReference Include="MySql.Data" Version="8.0.16" />
<PackageReference Include="MySql.Data" Version="8.0.16" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.1" />
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
...
...
Bailun.DC.LogicWareHouse/Models/dc_mid_logic_wh_statistic.cs
0 → 100644
View file @
82ee6928
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.LogicWareHouse.Models
{
/// <summary>
/// 逻辑仓库的历史数据
/// </summary>
public
class
dc_mid_logic_wh_statistic
{
public
int
id
{
get
;
set
;
}
public
string
warehouse_code
{
get
;
set
;
}
public
string
warehouse_name
{
get
;
set
;
}
public
int
days
{
get
;
set
;
}
public
string
hq_type
{
get
;
set
;
}
public
string
usable_stock
{
get
;
set
;
}
public
string
amount_stock
{
get
;
set
;
}
public
string
quantity_purchase
{
get
;
set
;
}
public
string
purchase_amount
{
get
;
set
;
}
public
string
quantity_transfer
{
get
;
set
;
}
public
string
amount_transit
{
get
;
set
;
}
public
string
oneday_total_sales
{
get
;
set
;
}
public
string
amount_onedaysale
{
get
;
set
;
}
public
string
sevenday_total_sales
{
get
;
set
;
}
public
string
fourteenday_total_sales
{
get
;
set
;
}
public
string
thirtyday_total_sales
{
get
;
set
;
}
public
string
quantity_tuneout_onway
{
get
;
set
;
}
public
string
quantity_tuneout_30days
{
get
;
set
;
}
public
string
quantity_tunein_30days
{
get
;
set
;
}
public
string
nostockcount
{
get
;
set
;
}
public
string
noshippingcount
{
get
;
set
;
}
public
DateTime
lastupdatetime
{
get
;
set
;
}
}
}
Bailun.DC.LogicWareHouse/Models/dc_semi_stock_sales_shipping.cs
0 → 100644
View file @
82ee6928
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.LogicWareHouse
{
public
class
dc_semi_stock_sales_shipping
{
public
int
id
{
get
;
set
;
}
public
int
material_id
{
get
;
set
;
}
public
int
material_data_center
{
get
;
set
;
}
public
string
sku
{
get
;
set
;
}
public
decimal
redundancy_stock
{
get
;
set
;
}
public
string
warehouse_name
{
get
;
set
;
}
public
string
sku_name
{
get
;
set
;
}
public
int
warehouse_id
{
get
;
set
;
}
public
decimal
buyer_price
{
get
;
set
;
}
public
decimal
stock
{
get
;
set
;
}
public
decimal
stock_amount
{
get
;
set
;
}
public
decimal
on_the_way_count
{
get
;
set
;
}
public
decimal
on_the_way_amount
{
get
;
set
;
}
public
decimal
need_quantity
{
get
;
set
;
}
public
decimal
out_of_stock
{
get
;
set
;
}
public
decimal
sales_1
{
get
;
set
;
}
public
decimal
sales_7
{
get
;
set
;
}
public
decimal
sales_14
{
get
;
set
;
}
public
decimal
sales_30
{
get
;
set
;
}
public
decimal
stock_amount_1
{
get
;
set
;
}
public
decimal
out_stock_30
{
get
;
set
;
}
public
decimal
put_stock_30
{
get
;
set
;
}
public
int
available_days
{
get
;
set
;
}
}
}
Bailun.DC.LogicWareHouse/Models/mLogicWarehouse.cs
0 → 100644
View file @
82ee6928
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.LogicWareHouse
{
public
class
mLogicWarehouse
{
/// <summary>
/// 仓库编码
/// </summary>
public
string
warehouse_code
{
get
;
set
;
}
/// <summary>
/// 仓库名称
/// </summary>
public
string
warehouse_name
{
get
;
set
;
}
/// <summary>
/// 可用库存
/// </summary>
public
int
usable_stock
{
get
;
set
;
}
/// <summary>
/// 可用库存金额
/// </summary>
public
decimal
amount_stock
{
get
;
set
;
}
/// <summary>
/// 采购在途数
/// </summary>
public
int
?
quantity_purchase
{
get
;
set
;
}
/// <summary>
/// 采购在途金额
/// </summary>
public
decimal
?
purchase_amount
{
get
;
set
;
}
/// <summary>
/// 调拨在途数
/// </summary>
public
int
?
quantity_transfer
{
get
;
set
;
}
/// <summary>
/// 调拨在途金额
/// </summary>
public
decimal
?
amount_transit
{
get
;
set
;
}
/// <summary>
/// 未发货数
/// </summary>
public
int
?
noshippingcount
{
get
;
set
;
}
/// <summary>
/// 缺货数
/// </summary>
public
int
?
nostockcount
{
get
;
set
;
}
/// <summary>
/// 昨日销量
/// </summary>
public
int
?
oneday_total_sales
{
get
;
set
;
}
/// <summary>
/// 昨日销售额
/// </summary>
public
decimal
?
amount_onedaysale
{
get
;
set
;
}
/// <summary>
/// 过去7天销量
/// </summary>
public
int
?
sevenday_total_sales
{
get
;
set
;
}
/// <summary>
/// 过去14天销量
/// </summary>
public
int
?
fourteenday_total_sales
{
get
;
set
;
}
/// <summary>
/// 过去30天销量
/// </summary>
public
int
?
thirtyday_total_sales
{
get
;
set
;
}
/// <summary>
/// 调出在途数
/// </summary>
public
int
?
quantity_tuneout_onway
{
get
;
set
;
}
/// <summary>
/// 30天内调出数量
/// </summary>
public
int
?
quantity_tuneout_30days
{
get
;
set
;
}
/// <summary>
/// 30天内调入数量
/// </summary>
public
int
?
quantity_tunein_30days
{
get
;
set
;
}
}
}
Bailun.DC.LogicWareHouse/Models/mResponse.cs
0 → 100644
View file @
82ee6928
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.LogicWareHouse
{
public
class
mResponse
{
public
bool
success
{
get
;
set
;
}
public
ResponseData
data
{
get
;
set
;}
public
string
message
{
get
;
set
;
}
}
public
class
ResponseData
{
public
int
CurrentPage
{
get
;
set
;
}
public
int
TotalPages
{
get
;
set
;
}
public
int
TotalItems
{
get
;
set
;
}
public
int
ItemsPerPage
{
get
;
set
;
}
public
List
<
ItemData
>
Items
{
get
;
set
;
}
}
public
class
ItemData
{
public
int
material_id
{
get
;
set
;
}
public
int
material_data_center
{
get
;
set
;
}
public
string
sku
{
get
;
set
;
}
public
decimal
redundancy_stock
{
get
;
set
;
}
public
string
warehouse_name
{
get
;
set
;
}
public
string
sku_name
{
get
;
set
;
}
public
int
warehouse_id
{
get
;
set
;
}
public
decimal
buyer_price
{
get
;
set
;
}
public
decimal
stock
{
get
;
set
;
}
public
decimal
stock_amount
{
get
;
set
;
}
public
decimal
on_the_way_count
{
get
;
set
;
}
public
decimal
on_the_way_amount
{
get
;
set
;
}
public
decimal
need_quantity
{
get
;
set
;
}
public
decimal
out_of_stock
{
get
;
set
;
}
public
decimal
sales_1
{
get
;
set
;
}
public
decimal
sales_7
{
get
;
set
;
}
public
decimal
sales_14
{
get
;
set
;
}
public
decimal
sales_30
{
get
;
set
;
}
public
decimal
stock_amount_1
{
get
;
set
;
}
public
decimal
out_stock_30
{
get
;
set
;
}
public
decimal
put_stock_30
{
get
;
set
;
}
public
int
available_days
{
get
;
set
;
}
}
}
Bailun.DC.LogicWareHouse/Program.cs
View file @
82ee6928
...
@@ -21,7 +21,8 @@ namespace Bailun.DC.LogicWareHouse
...
@@ -21,7 +21,8 @@ namespace Bailun.DC.LogicWareHouse
//static void Main(string[] args)
//static void Main(string[] args)
//{
//{
// new Services().Save();
// //new Services().Save();
// new Services().SaleWHDailySnaps();
//}
//}
}
}
}
}
Bailun.DC.LogicWareHouse/Services.cs
View file @
82ee6928
This diff is collapsed.
Click to expand it.
Bailun.DC.Web/Controllers/HomeController.cs
View file @
82ee6928
...
@@ -77,7 +77,7 @@ namespace Bailun.DC.Web.Controllers
...
@@ -77,7 +77,7 @@ namespace Bailun.DC.Web.Controllers
public
ActionResult
Main
()
public
ActionResult
Main
()
{
{
#if DEBUG
#if DEBUG
var
cookie
=
"Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjdhZDA5MjQ5ZDk0ZDgxN2VhNmI5ZThhMTc1MzlmNmY3IiwidHlwIjoiSldUIn0.eyJuYmYiOjE1OTk
0NjE2NjgsImV4cCI6MTU5OTQ5NzY2OCwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo1MDAxIiwiYXVkIjpbImh0dHA6Ly9sb2NhbGhvc3Q6NTAwMS9yZXNvdXJjZXMiLCJiYWlsdW5BcGkiXSwiY2xpZW50X2lkIjoiYmFpbHVuQ2xpZW50Iiwic3ViIjoi5YWz5oyv5bGx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.com/GetUserResource");
//var user = Common.HttpHelper.NetHelper.Request("http://sso.bailuntec.com/GetUserResource");
var
cookie
=
HttpContext
.
Request
.
Cookies
[
"BailunToken"
];
var
cookie
=
HttpContext
.
Request
.
Cookies
[
"BailunToken"
];
...
...
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