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
28a77aa4
authored
Sep 02, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
转正操作补上创建时间
parent
f4ff2838
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
app/Http/Services/SupplierService.php
app/Http/Services/SupplierService.php
View file @
28a77aa4
...
@@ -701,12 +701,17 @@ class SupplierService
...
@@ -701,12 +701,17 @@ class SupplierService
public
function
changeSupplierIsType
(
$supplierId
,
$isType
)
public
function
changeSupplierIsType
(
$supplierId
,
$isType
)
{
{
$model
=
new
SupplierChannelModel
();
$model
=
new
SupplierChannelModel
();
$
result
=
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
(
[
$
data
=
[
'supplier_type'
=>
1
,
'supplier_type'
=>
1
,
'update_time'
=>
time
(),
'update_time'
=>
time
(),
'is_type'
=>
$isType
,
'is_type'
=>
$isType
,
'status'
=>
SupplierChannelModel
::
STATUS_PENDING
,
'status'
=>
SupplierChannelModel
::
STATUS_PENDING
,
]);
];
$createTime
=
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
value
(
'create_time'
);
if
(
!
$createTime
)
{
$data
[
'create_time'
]
=
time
();
}
$result
=
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
(
$data
);
if
(
$result
)
{
if
(
$result
)
{
$logService
=
new
LogService
();
$logService
=
new
LogService
();
$content
=
'转正供应商'
;
$content
=
'转正供应商'
;
...
...
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