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
ee6bc26a
Commit
ee6bc26a
authored
Sep 18, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决逻辑仓库动销率无法查看趋势图的问题
parent
0e6a11ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
WareHouseServices.cs
Bailun.DC.Services/WareHouseServices.cs
+6
-2
WarehouseController.cs
...n.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
+8
-1
No files found.
Bailun.DC.Services/WareHouseServices.cs
View file @
ee6bc26a
...
...
@@ -1150,11 +1150,15 @@ namespace Bailun.DC.Services
public
List
<
string
>
GetMidLogicWarehouseStatisticCount
(
string
columnname
,
DateTime
start
,
DateTime
end
)
{
var
sql
=
"select CONCAT(name,',',DATE_FORMAT(day,'%Y-%m-%d')) as name from ("
;
sql
+=
"select sum("
+
columnname
+
") as name,day from dc_daily_logic_wh_statistic where "
;
if
(
columnname
.
Trim
()==
"pin_rate_stock"
)
{
sql
=
"select sum(thirtyday_total_sales)/sum(usable_stock) as name,day from dc_daily_logic_wh_statistic where "
;
sql
+=
"select sum(thirtyday_total_sales)*100/sum(usable_stock) as name,day from dc_daily_logic_wh_statistic where "
;
}
else
{
sql
+=
"select sum("
+
columnname
+
") as name,day from dc_daily_logic_wh_statistic where "
;
}
sql
+=
$" day>='
{
start
.
ToString
(
"yyyy-MM-dd"
)}
' and day<='
{
end
.
ToString
(
"yyyy-MM-dd"
)}
' group by day"
;
...
...
Bailun.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
View file @
ee6bc26a
...
...
@@ -1684,7 +1684,14 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
var
arr
=
item
.
Split
(
','
);
if
(
arr
.
Length
>
1
)
{
listval
.
Add
(
arr
[
0
]);
if
(
key
.
Trim
()
==
"pin_rate_stock"
)
{
listval
.
Add
(
decimal
.
Parse
(
arr
[
0
]).
ToString
(
"N2"
));
}
else
{
listval
.
Add
(
arr
[
0
]);
}
listdate
.
Add
(
DateTime
.
Parse
(
arr
[
1
]).
ToString
(
"yyyy-MM-dd"
));
}
}
...
...
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