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
3738dd94
authored
May 10, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改打印
parent
9e9031bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
app/Console/Commands/SetSupplierFollowUp.php
app/Http/Services/DataService.php
public/data/~$supplier_level.xlsx
app/Console/Commands/SetSupplierFollowUp.php
View file @
3738dd94
...
@@ -31,9 +31,9 @@ class SetSupplierFollowUp extends Command
...
@@ -31,9 +31,9 @@ class SetSupplierFollowUp extends Command
public
function
handle
()
public
function
handle
()
{
{
$service
=
new
DataService
();
$service
=
new
DataService
();
$service
->
transferAttachmentToNewTable
();
//
$service->transferAttachmentToNewTable();
//
$service->importSupplierLevel();
$service
->
importSupplierLevel
();
//
$service->changeSupplierTypeByIsType();
$service
->
changeSupplierTypeByIsType
();
// $service->transferPayType();
// $service->transferPayType();
// $service->makeTempTagForSupplier();
// $service->makeTempTagForSupplier();
}
}
...
...
app/Http/Services/DataService.php
View file @
3738dd94
...
@@ -459,7 +459,10 @@ class DataService
...
@@ -459,7 +459,10 @@ class DataService
continue
;
continue
;
}
}
$newTags
=
$supplier
[
'system_tags'
]
?
rtrim
(
$supplier
[
'system_tags'
],
','
)
.
',临时供应商'
:
'临时供应商'
;
$newTags
=
$supplier
[
'system_tags'
]
?
rtrim
(
$supplier
[
'system_tags'
],
','
)
.
',临时供应商'
:
'临时供应商'
;
echo
"供应商编码 ${supplier['supplier_code']} 打上临时供应商标签,等级标记为E"
.
PHP_EOL
;
if
(
$supplier
[
'level'
]
!=
''
&&
$supplier
[
'level'
]
!=
'E'
)
{
echo
"供应商编码 ${supplier['supplier_code']} 已经有等级${supplier['level']},但是不为等级E"
.
PHP_EOL
;
}
// echo "供应商编码 ${supplier['supplier_code']} 打上临时供应商标签,等级标记为E" . PHP_EOL;
if
(
$change
)
{
if
(
$change
)
{
if
(
$tagService
->
saveTags
(
$supplierId
,
14
,
$newTags
,
$oldTags
))
{
if
(
$tagService
->
saveTags
(
$supplierId
,
14
,
$newTags
,
$oldTags
))
{
SupplierChannelModel
::
where
(
'supplier_id'
,
$supplierId
)
->
update
([
SupplierChannelModel
::
where
(
'supplier_id'
,
$supplierId
)
->
update
([
...
@@ -478,8 +481,8 @@ class DataService
...
@@ -478,8 +481,8 @@ class DataService
//将非正式供应商(is_type=1)的类别设置为待转正
//将非正式供应商(is_type=1)的类别设置为待转正
public
function
changeSupplierTypeByIsType
()
public
function
changeSupplierTypeByIsType
()
{
{
SupplierChannelModel
::
where
(
'
is_type'
,
1
)
->
update
([
SupplierChannelModel
::
where
(
'
supplier_id'
,
13038
)
->
update
([
'supplier_type'
=>
3
'supplier_type'
=>
1
]);
]);
}
}
...
@@ -668,7 +671,6 @@ class DataService
...
@@ -668,7 +671,6 @@ class DataService
}
}
}
}
public/data/~$supplier_level.xlsx
0 → 100644
View file @
3738dd94
No preview for this file type
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