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
890df309
authored
Mar 16, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'ysx-供应商等级导入-20220316'
parents
023e673f
4e13289f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
app/Http/Services/DataService.php
app/Http/Services/DataService.php
View file @
890df309
...
...
@@ -315,9 +315,9 @@ class DataService
$number
++
;
echo
'供应商不存在 : '
.
$supplierName
.
PHP_EOL
;
//然后修改excel
//
$sheet->cell('D' . ($key + 1), function ($cell) {
//
$cell->setValue('供应商不存在');
//
});
$sheet
->
cell
(
'D'
.
(
$key
+
1
),
function
(
$cell
)
{
$cell
->
setValue
(
'供应商不存在'
);
});
}
else
{
$supplierLevelMap
=
$supplierLevelMap
->
toArray
();
$supplierId
=
$supplierLevelMap
[
'supplier_id'
];
...
...
@@ -328,9 +328,9 @@ class DataService
$supplierChannelModel
->
where
(
'supplier_name'
,
$supplierName
)
->
update
([
'level'
=>
$level
,
]);
// $sheet->cell('E
' . ($key + 1), function ($cell) {
//
$cell->setValue('修改成功');
//
});
$sheet
->
cell
(
'D
'
.
(
$key
+
1
),
function
(
$cell
)
{
$cell
->
setValue
(
'修改成功'
);
});
$originLevel
=
$supplierLevelMap
[
'level'
];
$originLevel
=
$originLevel
?:
'无'
;
$content
=
"admin将供应商等级
$originLevel
修改为
$level
"
;
...
...
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