Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d0ab3122
authored
Jul 19, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化导入校验
parent
9511467a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
app/Http/Services/SupplierExaminationService.php
app/Http/Services/SupplierExaminationService.php
View file @
d0ab3122
...
@@ -99,13 +99,14 @@ class SupplierExaminationService
...
@@ -99,13 +99,14 @@ class SupplierExaminationService
if
(
!
in_array
(
$channelUserName
,
$channelUserNames
))
{
if
(
!
in_array
(
$channelUserName
,
$channelUserNames
))
{
throw
new
\Exception
(
"存在无效的采购员(第${lineNo}行),请修改后再次提交"
);
throw
new
\Exception
(
"存在无效的采购员(第${lineNo}行),请修改后再次提交"
);
}
}
if
(
!
is_integer
(
$amount
))
{
if
(
!
is_numeric
(
$amount
))
{
throw
new
\Exception
(
"数量只能为纯数字(第${lineNo}行),请修改后再次提交"
);
throw
new
\Exception
(
"数量只能为纯数字(第${lineNo}行),请修改后再次提交"
);
}
}
if
(
!
is_
integer
(
$examineAmount
))
{
if
(
!
is_
numeric
(
$examineAmount
))
{
throw
new
\Exception
(
"检测数量只能为纯数字(第${lineNo}行),请修改后再次提交"
);
throw
new
\Exception
(
"检测数量只能为纯数字(第${lineNo}行),请修改后再次提交"
);
}
}
if
(
!
is_
integer
(
$unhealthyAmount
))
{
if
(
!
is_
numeric
(
$unhealthyAmount
))
{
throw
new
\Exception
(
"不良数量只能为纯数字(第${lineNo}行),请修改后再次提交"
);
throw
new
\Exception
(
"不良数量只能为纯数字(第${lineNo}行),请修改后再次提交"
);
}
}
if
(
!
in_array
(
$abnormalLevel
,[
1
,
2
,
3
]))
{
if
(
!
in_array
(
$abnormalLevel
,[
1
,
2
,
3
]))
{
...
...
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