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
7deca896
authored
Mar 10, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
ad97e92c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
app/Model/InquiryItemsModel.php
app/Model/InquiryItemsModel.php
View file @
7deca896
...
...
@@ -348,7 +348,7 @@ class InquiryItemsModel extends Model
foreach
(
$goodsData
[
1
]
as
$k
=>&
$b
){
$insertArr
=
[
"inquiry_id"
=>
$
b
[
"inquiry_id"
]
,
"inquiry_id"
=>
$
inquiry_id
,
"goods_name"
=>@
$b
[
"goods_name"
]
?
$b
[
"goods_name"
]
:
""
,
"brand_id"
=>@
$b
[
"brand_id"
]
?
$b
[
"brand_id"
]
:
0
,
"brand_name"
=>@
$b
[
"brand_name"
]
?
$b
[
"brand_name"
]
:
""
,
...
...
@@ -381,7 +381,7 @@ class InquiryItemsModel extends Model
#插入销售报价表
(
new
InquiryItemsReportModel
())
->
insert
([
"inquiry_id"
=>
$
b
[
"inquiry_id"
]
,
"inquiry_id"
=>
$
inquiry_id
,
"inquiry_items_id"
=>
$inquiryItemsId
,
]);
}
...
...
@@ -430,6 +430,8 @@ class InquiryItemsModel extends Model
];
#转换字段
$goodsInfo
=
[];
foreach
(
$excel
as
$k
=>
$v
)
{
if
(
$k
==
0
)
continue
;
//排除第一行表头
$temp
=
[];
...
...
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