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
7f2699d3
authored
a year ago
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
主营品牌数据顺序问题
parent
dabed4af
master
…
hcy-2024.6.4-供应商列表问题
ysx-spu的redis拆库-20230705
ysx-一体化广播规则-20231120
ysx-一体化需求-20231206
ysx-专项组需求0711-20230711
ysx-京东采购员需求-20250328
ysx-低价保障-20240827
ysx-供应商入驻字段-20230914
ysx-供应商费用规则配置-20250326
ysx-供应商跟进-20231225
ysx-供应商逻辑优化-20241209
ysx-供应商需求-20230619
ysx-供应商需求-20241010
ysx-供应商需求0108-20240108
ysx-供应商需求0614-20230614
ysx-供应商需求0717-20230717
ysx-修改驳回供应商名称-20240129
ysx-华云改造-20240304
ysx-图片地址批量转换-20240829
ysx-备忘录-20230824
ysx-实体名单-20231026
ysx-寄售合同回传需求-20250218
ysx-寄售相关需求-20241226
ysx-履约程度需求-20250317
ysx-新增签约公司-20250214
ysx-期货有效期-20230725
ysx-测试分支
ysx-芯链子母账号-20230802
ysx-财务信息金蝶同步-20240319
ysx-采购员交接-20240417
ysx-银行信息字段修改-20240719
ysx-银行账号优化-20240617
测试pdf打印
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
app/Http/Services/StandardBrandService.php
app/Http/Services/StandardBrandService.php
View file @
7f2699d3
...
@@ -72,10 +72,20 @@ class StandardBrandService
...
@@ -72,10 +72,20 @@ class StandardBrandService
'standard_brand_id as brand_id'
,
'standard_brand_id as brand_id'
,
])
->
get
();
])
->
get
();
$brands
=
!
empty
(
$brands
)
?
$brands
->
toArray
()
:
[];
$brands
=
!
empty
(
$brands
)
?
$brands
->
toArray
()
:
[];
return
array_map
(
function
(
$brand
)
{
$brands
=
array_map
(
function
(
$brand
)
{
$brand
[
'show_name'
]
=
$brand
[
'brand_name'
];
$brand
[
'show_name'
]
=
$brand
[
'brand_name'
];
$brand
[
'mapping_brand_names'
]
=
'-'
;
$brand
[
'mapping_brand_names'
]
=
'-'
;
return
$brand
;
return
$brand
;
},
$brands
);
},
$brands
);
//还要遵循原始排序
$result
=
[];
foreach
(
$brandIds
as
$brandId
)
{
foreach
(
$brands
as
$brand
)
{
if
(
$brandId
==
$brand
[
'brand_id'
])
{
$result
[]
=
$brand
;
}
}
}
return
$result
?:
[];
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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