Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
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
data-center-auto
Commits
c57175d6
Commit
c57175d6
authored
Sep 28, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
af7a4890
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
+4
-7
connectionHelper.cs
AutoTurnOver.DB/Base/connectionHelper.cs
+2
-2
report.cs
AutoTurnOver.DB/report.cs
+0
-4
Program.cs
ResetOutofstock/Program.cs
+1
-0
ResetOutofstockBackgrounService.cs
ResetOutofstock/ResetOutofstockBackgrounService.cs
+1
-1
No files found.
AutoTurnOver.DB/Base/connectionHelper.cs
View file @
c57175d6
...
@@ -85,12 +85,12 @@ namespace AutoTurnOver.DB
...
@@ -85,12 +85,12 @@ namespace AutoTurnOver.DB
public
int
Delete
<
T
>(
T
entityToDelete
,
IDbTransaction
transaction
=
null
,
int
?
commandTimeout
=
null
)
public
int
Delete
<
T
>(
T
entityToDelete
,
IDbTransaction
transaction
=
null
,
int
?
commandTimeout
=
null
)
{
{
return
_connection
.
Delete
(
entityToDelete
,
transaction
,
commandTimeout
);
return
_connection
.
Delete
<
T
>
(
entityToDelete
,
transaction
,
commandTimeout
);
}
}
public
int
Delete
<
T
>(
object
id
,
IDbTransaction
transaction
=
null
,
int
?
commandTimeout
=
null
)
public
int
Delete
<
T
>(
object
id
,
IDbTransaction
transaction
=
null
,
int
?
commandTimeout
=
null
)
{
{
return
_connection
.
Delete
(
id
,
transaction
,
commandTimeout
);
return
_connection
.
Delete
<
T
>
(
id
,
transaction
,
commandTimeout
);
}
}
public
int
?
Insert
<
TEntity
>(
TEntity
entityToInsert
,
IDbTransaction
transaction
=
null
,
int
?
commandTimeout
=
null
)
public
int
?
Insert
<
TEntity
>(
TEntity
entityToInsert
,
IDbTransaction
transaction
=
null
,
int
?
commandTimeout
=
null
)
{
{
...
...
AutoTurnOver.DB/report.cs
View file @
c57175d6
...
@@ -1965,9 +1965,6 @@ truncate table dc_base_lastweek_data_temp; ", new { btime = DateTime.Now.AddDays
...
@@ -1965,9 +1965,6 @@ truncate table dc_base_lastweek_data_temp; ", new { btime = DateTime.Now.AddDays
public
static
void
ResetCashFlowData
()
public
static
void
ResetCashFlowData
()
{
{
//现金流汇总报表,9点之前还在跑数据,不用刷新
if
(
DateTime
.
Now
.
Hour
>=
9
)
{
_connection
.
Execute
(
@" -- 刷新 现金流汇总表
_connection
.
Execute
(
@" -- 刷新 现金流汇总表
set session transaction isolation level read uncommitted;
set session transaction isolation level read uncommitted;
start transaction;
start transaction;
...
@@ -2070,7 +2067,6 @@ set t1.available_days = (t1.usable_stock / if(t2.daily_weighted_sales<=0,1,t2.d
...
@@ -2070,7 +2067,6 @@ set t1.available_days = (t1.usable_stock / if(t2.daily_weighted_sales<=0,1,t2.d
where t1.bailun_sku = t2.bailun_sku and t1.warehouse_code = t2.warehouse_code;
where t1.bailun_sku = t2.bailun_sku and t1.warehouse_code = t2.warehouse_code;
"
,
commandTimeout
:
0
);
"
,
commandTimeout
:
0
);
}
}
}
/// <summary>
/// <summary>
/// 刷新数据 (高频)
/// 刷新数据 (高频)
...
...
ResetOutofstock/Program.cs
View file @
c57175d6
...
@@ -16,6 +16,7 @@ namespace ResetOutofstock
...
@@ -16,6 +16,7 @@ namespace ResetOutofstock
try
try
{
{
var
now
=
DateTime
.
Now
;
var
now
=
DateTime
.
Now
;
//report.ResetCashFlowData();
//report.StockWeekBackUp();
//report.StockWeekBackUp();
//report.PurchaseWeekBackUp();
//report.PurchaseWeekBackUp();
//report_cash_flow_dao.CalculationTransferOrder(now.AddMonths(-3), DateTime.Parse(now.AddDays(-1).ToString("yyyy-MM-dd 23:59:59")));
//report_cash_flow_dao.CalculationTransferOrder(now.AddMonths(-3), DateTime.Parse(now.AddDays(-1).ToString("yyyy-MM-dd 23:59:59")));
...
...
ResetOutofstock/ResetOutofstockBackgrounService.cs
View file @
c57175d6
...
@@ -18,7 +18,7 @@ namespace ResetOutofstock
...
@@ -18,7 +18,7 @@ namespace ResetOutofstock
{
{
Console
.
WriteLine
(
"开始刷新调拨订单数据"
);
Console
.
WriteLine
(
"开始刷新调拨订单数据"
);
var
now
=
DateTime
.
Now
;
var
now
=
DateTime
.
Now
;
report_cash_flow_dao
.
CalculationTransferOrder
(
now
.
AddMonths
(-
3
),
DateTime
.
Parse
(
now
.
AddDays
(-
1
).
ToString
(
"yyyy-MM-dd 23:59:59"
)));
//
report_cash_flow_dao.CalculationTransferOrder(now.AddMonths(-3), DateTime.Parse(now.AddDays(-1).ToString("yyyy-MM-dd 23:59:59")));
//report.ResetCashFlowData();
//report.ResetCashFlowData();
Console
.
WriteLine
(
"结束调拨订单数据"
);
Console
.
WriteLine
(
"结束调拨订单数据"
);
});
});
...
...
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