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
bdc3ba69
authored
Jun 15, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
没有内容变化打日志
parent
2dd5ccf5
Hide 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 @
bdc3ba69
...
...
@@ -268,13 +268,14 @@ class SupplierService
$logContent
=
'确认新增供应商'
;
}
//过滤掉没有修改的操作,
不需要记录日志
//过滤掉没有修改的操作,
但是需要记录一条更新记录(用于判断是否可以审核)
if
(
!
empty
(
$oldSupplier
)
&&
!
empty
(
$newSupplier
))
{
$oldSupplier
=
$oldSupplier
->
toArray
();
$newSupplier
=
$newSupplier
->
toArray
();
unset
(
$oldSupplier
[
'update_time'
]);
unset
(
$newSupplier
[
'update_time'
]);
if
(
$oldSupplier
==
$newSupplier
)
{
$logService
->
AddLog
(
$this
->
newSupplierId
,
LogModel
::
UPDATE_OPERATE
,
'修改供应商基本资料'
,
'没有内容变化'
);
return
$supplierId
;
}
}
...
...
@@ -435,7 +436,7 @@ class SupplierService
'update_time'
=>
time
(),
'channel_uid'
=>
$preChannelUid
,
]);
}
else
{
}
else
{
$result
=
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'channel_uid'
=>
$preChannelUid
,
]);
...
...
@@ -540,6 +541,8 @@ class SupplierService
if
(
!
$result
)
{
return
$result
;
}
//新增一条申请审核的日志
// (new LogService())->AddLog($data['supplier_id'], LogModel::UPDATE_OPERATE, '申请审核', '申请审核供应商');
}
return
true
;
}
...
...
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