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
f54bf2ea
authored
Mar 02, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
c05824db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
app/Http/Services/LogService.php
app/Http/Services/LogService.php
View file @
f54bf2ea
...
@@ -30,7 +30,7 @@ class LogService
...
@@ -30,7 +30,7 @@ class LogService
}
}
//批量添加日志
//批量添加日志
public
function
BatchAddLogs
(
$supplierIds
,
$type
,
$action
,
$content
,
$remark
=
''
)
public
function
BatchAddLogs
(
$supplierIds
,
$type
,
$action
,
$content
,
$remark
=
''
)
{
{
$adminId
=
request
()
->
user
->
userId
;
$adminId
=
request
()
->
user
->
userId
;
$adminName
=
request
()
->
user
->
name
;
$adminName
=
request
()
->
user
->
name
;
...
@@ -51,7 +51,7 @@ class LogService
...
@@ -51,7 +51,7 @@ class LogService
return
$model
->
insert
(
$data
);
return
$model
->
insert
(
$data
);
}
}
public
function
BatchAddIgnoreAuditLogs
(
$supplierIds
,
$type
,
$action
,
$content
,
$remark
=
''
)
public
function
BatchAddIgnoreAuditLogs
(
$supplierIds
,
$type
,
$action
,
$content
,
$remark
=
''
)
{
{
$adminId
=
request
()
->
user
->
userId
;
$adminId
=
request
()
->
user
->
userId
;
$adminName
=
request
()
->
user
->
name
;
$adminName
=
request
()
->
user
->
name
;
...
@@ -76,8 +76,8 @@ class LogService
...
@@ -76,8 +76,8 @@ class LogService
//添加忽略审核的日志
//添加忽略审核的日志
public
function
AddIgnoreAuditCheckLog
(
$supplierId
,
$type
,
$action
,
$content
,
$remark
=
''
)
public
function
AddIgnoreAuditCheckLog
(
$supplierId
,
$type
,
$action
,
$content
,
$remark
=
''
)
{
{
$adminId
=
request
()
->
user
->
userId
;
$adminId
=
isset
(
request
()
->
user
->
userId
)
?
request
()
->
user
->
userId
:
1000
;
$adminName
=
request
()
->
user
->
name
;
$adminName
=
isset
(
request
()
->
user
->
name
)
?
request
()
->
user
->
name
:
'admin'
;
$data
=
[
$data
=
[
'supplier_id'
=>
$supplierId
,
'supplier_id'
=>
$supplierId
,
'type'
=>
$type
,
'type'
=>
$type
,
...
@@ -181,8 +181,8 @@ class LogService
...
@@ -181,8 +181,8 @@ class LogService
if
(
$key
==
'extra_fee'
)
{
if
(
$key
==
'extra_fee'
)
{
$oldFee
=
json_decode
(
$oldSupplier
[
'extra_fee'
],
true
);
$oldFee
=
json_decode
(
$oldSupplier
[
'extra_fee'
],
true
);
$newFee
=
json_decode
(
$newSupplier
[
'extra_fee'
],
true
);
$newFee
=
json_decode
(
$newSupplier
[
'extra_fee'
],
true
);
if
(
empty
(
$oldFee
[
'cn'
])
||
empty
(
$oldFee
[
'hk'
])
||
empty
(
$newFee
[
'cn'
])
||
empty
(
$newFee
[
'hk'
]))
{
if
(
empty
(
$oldFee
[
'cn'
])
||
empty
(
$oldFee
[
'hk'
])
||
empty
(
$newFee
[
'cn'
])
||
empty
(
$newFee
[
'hk'
]))
{
// $content = '采购附加费修改';
// $content = '采购附加费修改';
$content
=
''
;
$content
=
''
;
}
else
{
}
else
{
$content
=
"采购附加费由 [商品总价不满"
.
$oldFee
[
'cn'
][
'max'
]
.
"元,收取"
.
$oldFee
[
'cn'
][
'price'
]
.
"元;商品总价不满"
.
$content
=
"采购附加费由 [商品总价不满"
.
$oldFee
[
'cn'
][
'max'
]
.
"元,收取"
.
$oldFee
[
'cn'
][
'price'
]
.
"元;商品总价不满"
.
...
@@ -254,6 +254,4 @@ class LogService
...
@@ -254,6 +254,4 @@ class LogService
return
$desc
;
return
$desc
;
}
}
}
}
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