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
01281b32
authored
Mar 11, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复
parent
b2c338f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
app/Http/Services/SupplierService.php
app/Http/Services/SupplierService.php
View file @
01281b32
...
...
@@ -90,7 +90,6 @@ class SupplierService
$skuAuditRulerService
=
new
SupplierSkuAuditRulerService
();
$channel
[
'sku_audit_ruler'
]
=
$skuAuditRulerService
->
getSkuAuditRulerForDB
(
$channel
[
'sku_audit_ruler'
]);
$channel
[
'pay_type'
]
=
SupplierPayTypeService
::
getSupplierPayTypeForChannelDB
(
$payTypeData
);
//新增供应商操作
if
(
empty
(
$channel
[
'supplier_id'
]))
{
...
...
@@ -156,6 +155,9 @@ class SupplierService
}
$channel
[
'update_time'
]
=
time
();
$channel
[
'pay_type'
]
=
SupplierPayTypeService
::
getSupplierPayTypeForChannelDB
(
$payTypeData
);
//这里有个逻辑,就是如果供应商类型是临时,那么要打上临时供应商的标签,如果不是,那么就要去掉这个标签
if
(
$channel
[
'supplier_type'
]
==
SupplierChannelModel
::
SUPPLIER_TYPE_TEMPORARY
)
{
$channel
[
'system_tags'
]
=
explode
(
','
,
$channel
[
'system_tags'
]);
...
...
@@ -193,9 +195,10 @@ class SupplierService
$oldSystemTags
);
$tagService
->
saveTags
(
$supplierId
,
SupplierTagService
::
TAG_TYPE_CUSTOMER
,
$channel
[
'customer_tags'
],
$oldCustomerTags
);
}
//保存付款方式列表
SupplierPayTypeService
::
saveSupplierPayTypeList
(
$supplierId
,
$payTypeData
);
}
//保存附件
$attachmentService
=
new
SupplierAttachmentService
();
$attachmentService
->
saveAttachment
(
$supplierId
,
$attachment
);
...
...
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