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
53f770f0
Commit
53f770f0
authored
Oct 02, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试只读实例
parent
da26a92d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
32 deletions
+35
-32
GlobalConfig.cs
Bailun.DC.Common/GlobalConfig.cs
+4
-1
Program.cs
Bailun.DC.LogicWareHouse/Program.cs
+28
-28
OrdersServices.cs
Bailun.DC.Services/OrdersServices.cs
+2
-2
Index.cshtml
Bailun.DC.Web/Pages/Index.cshtml
+1
-1
No files found.
Bailun.DC.Common/GlobalConfig.cs
View file @
53f770f0
...
@@ -10,12 +10,15 @@ namespace Bailun.DC.Common
...
@@ -10,12 +10,15 @@ namespace Bailun.DC.Common
{
{
#if DEBUG
#if DEBUG
public
static
string
ConnectionString
=
"server=gz-cdb-kp7s5i79.sql.tencentcdb.com;port=61691;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
;
public
static
string
ConnectionString
=
"server=gz-cdb-kp7s5i79.sql.tencentcdb.com;port=61691;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
;
/// <summary>
public
static
string
ConnectionString_read
=
"server=gz-cdbrg-qdyec2j3.sql.tencentcdb.com;port=59667;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
;
/// <summary>
/// sku分类url
/// sku分类url
/// </summary>
/// </summary>
public
static
string
SkumsCategory
=
"http://api.sku.bailuntec.com/api/BailunCateData/GetAllCategoryList"
;
public
static
string
SkumsCategory
=
"http://api.sku.bailuntec.com/api/BailunCateData/GetAllCategoryList"
;
#else
#else
public
static
string
ConnectionString
=
"server=10.0.8.15;port=3306;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
;
public
static
string
ConnectionString
=
"server=10.0.8.15;port=3306;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
;
public
static
string
ConnectionString_read
=
"server=10.0.8.21;port=3306;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
;
/// <summary>
/// <summary>
/// sku分类url
/// sku分类url
/// </summary>
/// </summary>
...
...
Bailun.DC.LogicWareHouse/Program.cs
View file @
53f770f0
...
@@ -7,45 +7,45 @@ namespace Bailun.DC.LogicWareHouse
...
@@ -7,45 +7,45 @@ namespace Bailun.DC.LogicWareHouse
{
{
class
Program
class
Program
{
{
static
async
Task
Main
(
string
[]
args
)
//
static async Task Main(string[] args)
{
//
{
Console
.
WriteLine
(
"进入 逻辑仓库"
);
//
Console.WriteLine("进入 逻辑仓库");
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
)
//
{
{
//
var _service = new Services();
var
_service
=
new
Services
();
// //
_service.Save();
_service
.
Save
();
//
//半成品库存
//半成品库存
//
_service.SemiStock();
//
_service.SemiStock();
//
//半成品销量
//半成品销量
//
_service.UpdateSemiSale();
//
_service.UpdateSemiSale();
//
//更新半成品销量和现金流
//更新半成品销量和现金流
//
_service.UpdateLogicWareHouseSemiSale();
//
_service.UpdateLogicWareHouseSemiSale();
//
// 更新缺货数和待发货数据
// 更新缺货数和待发货数据
//
_service.UpdateOutStockAndNoShipping();
//
_service.UpdateOutStockAndNoShipping();
//
//更新30天现金流
//更新30天现金流
//
_service.UpdateCash30Days();
//
_service.UpdateCash30Days();
//
//更新逻辑仓的可用天数
//更新逻辑仓的可用天数
//
_service.UpdateAvailableDays();
//
_service.UpdateAvailableDays();
//
//保存每日数据快照
//保存每日数据快照
//
_service.SaleWHDailySnaps();
//
_service.SaleWHDailySnaps();
//
}
}
}
}
}
}
Bailun.DC.Services/OrdersServices.cs
View file @
53f770f0
...
@@ -829,7 +829,7 @@ namespace Bailun.DC.Services
...
@@ -829,7 +829,7 @@ namespace Bailun.DC.Services
}
}
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
_read
))
{
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
{
{
...
@@ -983,7 +983,7 @@ namespace Bailun.DC.Services
...
@@ -983,7 +983,7 @@ namespace Bailun.DC.Services
}
}
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
_read
))
{
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
{
{
...
...
Bailun.DC.Web/Pages/Index.cshtml
View file @
53f770f0
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<script
src=
"css/hplus/js/jquery.min.js?v=2.1.4"
></script>
<script
src=
"css/hplus/js/jquery.min.js?v=2.1.4"
></script>
<script
src=
"~/js/jquery.cookie.js"
type=
"text/javascript"
></script>
<script
src=
"~/js/jquery.cookie.js"
type=
"text/javascript"
></script>
<script
src=
"~/js/common.js?20200916000
2
"
type=
"text/javascript"
></script>
<script
src=
"~/js/common.js?20200916000
7
"
type=
"text/javascript"
></script>
</head>
</head>
<body
class=
"fixed-sidebar full-height-layout gray-bg"
style=
"overflow:hidden"
>
<body
class=
"fixed-sidebar full-height-layout gray-bg"
style=
"overflow:hidden"
>
...
...
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