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
d72a0783
authored
Jun 10, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复数据报错
parent
058b9209
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
app/Http/Transformers/SupplierTransformer.php
app/Http/Transformers/SupplierTransformer.php
View file @
d72a0783
...
...
@@ -122,7 +122,9 @@ class SupplierTransformer
$supplier
[
'supplier_group_name'
]
=
array_get
(
config
(
'fixed.SupplierGroup'
),
$supplier
[
'supplier_group'
]);
$supplier
[
'pay_type_name'
]
=
array_get
(
config
(
'fixed.SupplierPayType'
),
$supplier
[
'pay_type'
]);
$supplier
[
'trading_method_name'
]
=
array_get
(
config
(
'fixed.TradingMethod'
),
$supplier
[
'trading_method'
]);
$supplier
[
'settlement_type_name'
]
=
array_get
(
config
(
'field.SettlementType'
),
$supplier
[
'settlement_type'
]);
if
(
isset
(
$supplier
[
'settlement_type'
]))
{
$supplier
[
'settlement_type_name'
]
=
array_get
(
config
(
'field.SettlementType'
),
$supplier
[
'settlement_type'
]);
}
$supplier
[
'main_brand_names'
]
=
$this
->
getMainBrandNames
(
$supplier
[
'main_brands'
]);
$supplier
[
'update_time'
]
=
$supplier
[
'update_time'
]
?
date
(
'Y-m-d H:i:s'
,
$supplier
[
'update_time'
])
:
''
;
$supplier
[
'create_time'
]
=
$supplier
[
'create_time'
]
?
date
(
'Y-m-d H:i:s'
,
$supplier
[
'create_time'
])
:
''
;
...
...
@@ -139,7 +141,9 @@ class SupplierTransformer
$supplier
[
'extra_fee'
]
=
$ExtendModel
->
getExtendExtra
(
$supplier
[
'supplier_code'
],
$supplier
[
'supplier_id'
]);
//获取供应商地址信息
$supplier
=
$this
->
getSupplierAddress
(
$supplier
);
$supplier
[
'supplier_type_name'
]
=
array_get
(
config
(
'field.SupplierType'
),
$supplier
[
'supplier_type'
]);
if
(
isset
(
$supplier
[
'supplier_type'
]))
{
$supplier
[
'supplier_type_name'
]
=
array_get
(
config
(
'field.SupplierType'
),
$supplier
[
'supplier_type'
]);
}
//获取最近修改信息
$logModel
=
new
LogModel
();
$log
=
$logModel
->
where
(
'supplier_id'
,
$supplier
[
'supplier_id'
])
...
...
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