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
d59e1058
Commit
d59e1058
authored
Nov 19, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
43d040b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
30 deletions
+44
-30
ApiController.cs
AutoTurnOver/Controllers/ApiController.cs
+14
-0
ResetOutofstockBackgrounService.cs
ResetOutofstock/ResetOutofstockBackgrounService.cs
+30
-30
No files found.
AutoTurnOver/Controllers/ApiController.cs
View file @
d59e1058
...
...
@@ -115,6 +115,18 @@ namespace AutoTurnOver.Controllers
}
[
HttpGet
(
"RealtimeListSumFooter"
)]
public
JsonResult
RealtimeListSumFooter
(
int
?
monitor_status
,
int
?
searchType
,
string
key_words
,
string
warehousecode
,
string
buyer_name
,
string
supplier_name
,
int
offset
,
int
limit
,
string
order
,
string
sort
,
string
warehousetype
,
int
?
warehousearea
,
int
?
has_tort
=
null
,
string
categoryIds
=
null
,
DateTime
?
start_date
=
null
,
DateTime
?
end_date
=
null
,
DateTime
?
f_start_date
=
null
,
DateTime
?
f_end_date
=
null
,
int
?
product_type
=
null
)
{
var
services
=
new
DailyServices
();
var
total
=
0
;
var
list
=
services
.
RealtimeList
(
monitor_status
,
searchType
,
key_words
,
warehousecode
,
supplier_name
,
offset
,
limit
,
ref
total
,
warehousetype
,
warehousearea
,
true
,
has_tort
:
has_tort
,
categoryIds
:
categoryIds
,
buyer_name
:
buyer_name
,
start_date
:
start_date
,
end_date
:
end_date
,
f_start_date
:
f_start_date
,
f_end_date
:
f_end_date
,
product_type
:
product_type
);
return
new
JsonResult
(
list
==
null
||
list
.
Count
<=
0
?
new
dc_base_stock_dto
()
:
list
[
0
]);
}
public
class
GetSkus_dto
{
public
string
skus
{
get
;
set
;
}
...
...
@@ -173,5 +185,6 @@ namespace AutoTurnOver.Controllers
return
new
RequestResultDto
{
success
=
true
};
}
}
}
\ No newline at end of file
ResetOutofstock/ResetOutofstockBackgrounService.cs
View file @
d59e1058
...
...
@@ -15,36 +15,36 @@ namespace ResetOutofstock
protected
override
Task
ExecuteAsync
(
CancellationToken
stoppingToken
)
{
Task
.
Factory
.
StartNew
(()
=>
{
Console
.
WriteLine
(
$"开始 刷新财务付现数据 ,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
dc_report_finance_dao
.
CalculationCashPayment
(
DateTime
.
Now
.
AddYears
(-
1
));
Console
.
WriteLine
(
$"结束 刷新财务付现数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
});
Task
.
Factory
.
StartNew
(()
=>
{
Console
.
WriteLine
(
$"开始 刷新出库退税数据 ,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
dc_report_finance_dao
.
CalculationTax
(
DateTime
.
Now
.
AddYears
(-
1
));
Console
.
WriteLine
(
$"结束 刷新出库退税数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
});
Task
.
Factory
.
StartNew
(()
=>
{
Console
.
WriteLine
(
$"开始 刷新订单财报数据 ,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
dc_report_finance_dao
.
CalculationOrder
(
DateTime
.
Now
.
AddYears
(-
1
));
Console
.
WriteLine
(
$"结束 刷新订单财报数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
});
Task
.
Factory
.
StartNew
(()
=>
{
Console
.
WriteLine
(
$"开始 订单-平台财报数据 ,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
dc_report_finance_dao
.
CalculationOrderPlatfrom
(
DateTime
.
Now
.
AddYears
(-
1
));
Console
.
WriteLine
(
$"结束 订单-平台财报数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
});
Task
.
Factory
.
StartNew
(()
=>
{
Console
.
WriteLine
(
$"开始 订单-财报退款数据 ,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
dc_report_finance_dao
.
CalculationRefund
(
DateTime
.
Now
.
AddYears
(-
1
));
Console
.
WriteLine
(
$"结束 订单-财报退款数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
});
//
Task.Factory.StartNew(() =>
//
{
//
Console.WriteLine($"开始 刷新财务付现数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//
dc_report_finance_dao.CalculationCashPayment(DateTime.Now.AddYears(-1));
//
Console.WriteLine($"结束 刷新财务付现数据,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//
});
//
Task.Factory.StartNew(() =>
//
{
//
Console.WriteLine($"开始 刷新出库退税数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//
dc_report_finance_dao.CalculationTax(DateTime.Now.AddYears(-1));
//
Console.WriteLine($"结束 刷新出库退税数据,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//
});
//
Task.Factory.StartNew(() =>
//
{
//
Console.WriteLine($"开始 刷新订单财报数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//
dc_report_finance_dao.CalculationOrder(DateTime.Now.AddYears(-1));
//
Console.WriteLine($"结束 刷新订单财报数据,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//
});
//
Task.Factory.StartNew(() =>
//
{
//
Console.WriteLine($"开始 订单-平台财报数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//
dc_report_finance_dao.CalculationOrderPlatfrom(DateTime.Now.AddYears(-1));
//
Console.WriteLine($"结束 订单-平台财报数据,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//
});
//
Task.Factory.StartNew(() =>
//
{
//
Console.WriteLine($"开始 订单-财报退款数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//
dc_report_finance_dao.CalculationRefund(DateTime.Now.AddYears(-1));
//
Console.WriteLine($"结束 订单-财报退款数据,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//
});
Task
.
Factory
.
StartNew
(()
=>
...
...
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