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
eb1555cd
authored
Mar 10, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
7deca896
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
app/Model/InquiryItemsModel.php
app/Model/InquiryItemsModel.php
View file @
eb1555cd
...
...
@@ -363,6 +363,12 @@ class InquiryItemsModel extends Model
"create_time"
=>
time
()
,
"update_time"
=>
time
()
,
];
#判断是否已经存在此品牌+型号
$check
=
$this
->
where
([
"inquiry_id"
=>
$inquiry_id
,
"goods_name"
=>
$b
[
"goods_name"
],
"brand_name"
=>
$b
[
"brand_name"
]])
->
count
();
if
(
$check
>
0
){
throw
new
Exception
(
"型号:"
.
$b
[
"goods_name"
]
.
" 品牌:"
.
$b
[
"brand_name"
]
.
"不得重复上传"
);
}
#插入明细
$inquiryItemsId
=
$this
->
insertGetId
(
$insertArr
);
...
...
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