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
94db0b06
Commit
94db0b06
authored
Jul 18, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
95c29a05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
ConfigServices.cs
AutoTurnOver.Services/ConfigServices.cs
+14
-12
ConfigController.cs
AutoTurnOver/Controllers/ConfigController.cs
+2
-2
No files found.
AutoTurnOver.Services/ConfigServices.cs
View file @
94db0b06
...
@@ -780,6 +780,19 @@ namespace AutoTurnOver.Services
...
@@ -780,6 +780,19 @@ namespace AutoTurnOver.Services
{
{
throw
new
Exception
(
$" 第
{
item
.
index
}
阶段的 三个时间段范围比例相加不等 1 "
);
throw
new
Exception
(
$" 第
{
item
.
index
}
阶段的 三个时间段范围比例相加不等 1 "
);
}
}
if
(
item
.
one_n2
+
item
.
one_n4
+
item
.
one_n6
!=
1
)
{
throw
new
Exception
(
$" 第
{
item
.
index
}
阶段的 第 1 个时间段范围 的 3个加权值相加不等与1 "
);
}
if
(
item
.
two_n2
+
item
.
two_n4
+
item
.
two_n6
!=
1
)
{
throw
new
Exception
(
$" 第
{
item
.
index
}
阶段的 第 2 个时间段范围 的 3个加权值相加不等与1 "
);
}
if
(
item
.
three_n2
+
item
.
three_n4
+
item
.
three_n6
!=
1
)
{
throw
new
Exception
(
$" 第
{
item
.
index
}
阶段的 第 3 个时间段范围 的 3个加权值相加不等与1 "
);
}
}
}
else
else
{
{
...
@@ -788,18 +801,7 @@ namespace AutoTurnOver.Services
...
@@ -788,18 +801,7 @@ namespace AutoTurnOver.Services
throw
new
Exception
(
$"第1阶段的
{(
m
.
screen_type
==
1
?
"入库时长"
:
"销量范围"
)}
必填"
);
throw
new
Exception
(
$"第1阶段的
{(
m
.
screen_type
==
1
?
"入库时长"
:
"销量范围"
)}
必填"
);
}
}
}
}
if
(
item
.
one_n2
+
item
.
one_n4
+
item
.
one_n6
!=
1
)
{
throw
new
Exception
(
$" 第
{
item
.
index
}
阶段的 底 1 个时间段范围 的 3个加权值相加不等与1 "
);
}
if
(
item
.
two_n2
+
item
.
two_n4
+
item
.
two_n6
!=
1
)
{
throw
new
Exception
(
$" 第
{
item
.
index
}
阶段的 底 2 个时间段范围 的 3个加权值相加不等与1 "
);
}
if
(
item
.
three_n2
+
item
.
three_n4
+
item
.
three_n6
!=
1
)
{
throw
new
Exception
(
$" 第
{
item
.
index
}
阶段的 底 3 个时间段范围 的 3个加权值相加不等与1 "
);
}
}
}
DB
.
db_config
.
SaveSalesForecastConfig
(
m
,
username
);
DB
.
db_config
.
SaveSalesForecastConfig
(
m
,
username
);
}
}
...
...
AutoTurnOver/Controllers/ConfigController.cs
View file @
94db0b06
...
@@ -754,8 +754,8 @@ namespace AutoTurnOver.Controllers
...
@@ -754,8 +754,8 @@ namespace AutoTurnOver.Controllers
return
new
JsonResult
(
new
return
new
JsonResult
(
new
{
{
rows
=
list
,
rows
=
list
.
Items
,
total
=
total
,
total
=
list
.
TotalItems
});
});
}
}
...
...
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