Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
php_frq_api
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
00274d41
authored
Mar 30, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
57bca0a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
app/Model/InquiryItemsModel.php
app/Model/InquiryItemsModel.php
View file @
00274d41
...
...
@@ -192,8 +192,9 @@ class InquiryItemsModel extends Model
if
(
count
(
$b
)
==
0
||
$b
==
""
){
return
[
1001
,
"插入数据不得为空"
];
}
if
(
empty
(
$b
[
"goods_name"
]))
return
[
1003
,
"请选择型号名称"
];
if
(
empty
(
$b
[
"inquiry_id"
]))
return
[
1003
,
"询价单ID不得为空"
];
if
(
empty
(
$b
[
"brand_s"
]))
return
[
1003
,
"请选择品牌名称
名称
"
];
if
(
empty
(
$b
[
"brand_s"
]))
return
[
1003
,
"请选择品牌名称"
];
if
(
empty
(
$b
[
"inquiry_number"
]))
return
[
1003
,
"请输入询价数量"
];
if
(
empty
(
$b
[
"batch"
]))
return
[
1003
,
"请输入批次要求"
];
if
(
empty
(
$b
[
"delivery_time"
]))
return
[
1003
,
"请选择交货日期"
];
...
...
@@ -278,6 +279,13 @@ class InquiryItemsModel extends Model
if
(
!
$inquiry_items_id
){
return
[
1001
,
"修改明细ID不得为空"
];
}
if
(
empty
(
$b
[
"goods_name"
]))
return
[
1003
,
"请选择型号名称"
];
if
(
empty
(
$b
[
"brand_s"
]))
return
[
1003
,
"请选择品牌名称"
];
if
(
empty
(
$b
[
"inquiry_number"
]))
return
[
1003
,
"请输入询价数量"
];
if
(
empty
(
$b
[
"batch"
]))
return
[
1003
,
"请输入批次要求"
];
if
(
empty
(
$b
[
"delivery_time"
]))
return
[
1003
,
"请选择交货日期"
];
try
{
$con
=
DB
::
connection
(
'rfq'
);
$con
->
beginTransaction
();
...
...
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