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
eae936ac
authored
May 27, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复bug
parent
26322940
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
app/Http/Services/SupplierContractService.php
app/Http/Services/SupplierContractService.php
View file @
eae936ac
...
...
@@ -7,11 +7,12 @@ use Barryvdh\DomPDF\PDF;
use
App\Model\SupplierLogModel
;
use
App\Http\Services\LogService
;
use
App\Model\SupplierExtendModel
;
use
App\Model\SupplierChannelModel
;
use
App\Model\SupplierReceiptModel
;
use
App\Model\SupplierContractModel
;
use
TijsVerkoyen\CssToInlineStyles\Exception
;
use
App\Http\Transformers\SupplierContractTransformer
;
use
App\Http\Controllers\Filter\SupplierContractFilter
;
use
App\Model\SupplierChannelModel
;
use
App\Model\SupplierReceiptModel
;
class
SupplierContractService
{
...
...
@@ -109,11 +110,13 @@ class SupplierContractService
}
SupplierContractModel
::
where
(
'id'
,
$data
[
'id'
])
->
update
(
$udpateData
);
}
else
{
SupplierContractModel
::
insert
([
SupplierContractModel
::
where
(
'id'
,
$insertId
)
->
update
([
'contract_file'
=>
$fileData
[
'data'
][
'oss_file_url'
],
'contract_no'
=>
$this
->
generateContractNo
(
$insertId
)
]);
}
}
else
{
throw
new
Exception
(
$fileData
[
'msg'
]);
}
}
\DB
::
connection
(
'web'
)
->
commit
();
...
...
@@ -121,7 +124,7 @@ class SupplierContractService
}
catch
(
\Exception
$e
)
{
\DB
::
connection
(
'web'
)
->
rollBack
();
\Log
::
error
(
json_encode
(
$e
->
getMessage
())
.
' '
.
$e
->
getLine
());
return
false
;
return
$e
->
getMessage
()
;
}
}
...
...
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