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
27e2d142
authored
May 10, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
数据转换
parent
f91ddabc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
app/Console/Commands/SetSupplierFollowUp.php
app/Http/Services/DataService.php
app/Console/Commands/SetSupplierFollowUp.php
View file @
27e2d142
...
...
@@ -35,7 +35,7 @@ class SetSupplierFollowUp extends Command
// $service->importSupplierLevel();
// $service->changeSupplierTypeByIsType();
// $service->transferPayType();
//
$service->makeTempTagForSupplier();
$service
->
makeSupplierSystemTagAbnormal
();
$service
->
makeTempTagForSupplier
();
//
$service->makeSupplierSystemTagAbnormal();
}
}
app/Http/Services/DataService.php
View file @
27e2d142
...
...
@@ -456,10 +456,10 @@ class DataService
$supplierId
)
->
value
(
'quality_assurance_agreement'
);
//供应商性质为现货商,且没有上传品质协议,系统标签需要贴【临时供应商标签】,等级标记为E
if
(
!
$hasQualityAssuranceAgreement
&&
$supplier
[
'supplier_group'
]
==
2
)
{
if
(
$supplier
[
'level'
]
!=
''
&&
$supplier
[
'level'
]
!=
'E'
)
{
echo
"供应商编码 ${supplier['supplier_code']} 已经有等级${supplier['level']},但是不为等级E,跳过"
.
PHP_EOL
;
continue
;
}
//
if ($supplier['level'] != '' && $supplier['level'] != 'E') {
//
echo "供应商编码 ${supplier['supplier_code']} 已经有等级${supplier['level']},但是不为等级E,跳过" . PHP_EOL;
//
continue;
//
}
echo
"供应商编码 ${supplier['supplier_code']} 转换为临时供应商"
.
PHP_EOL
;
if
(
$change
)
{
SupplierChannelModel
::
where
(
'supplier_id'
,
$supplierId
)
->
update
([
...
...
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