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
a21f672b
authored
Aug 11, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
plus
parent
8a0022b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
app/Http/Services/SyncSupplierService.php
app/Model/Purchase/PurchaseContract.php
app/Http/Services/SyncSupplierService.php
View file @
a21f672b
...
...
@@ -84,6 +84,18 @@ class SyncSupplierService
if
(
!
empty
(
$supplier
[
'currency'
]))
{
$message
[
'currencyNumber'
]
=
array_get
(
config
(
'sync.SyncCurrencyType'
),
$supplier
[
'currency'
]);
}
$message
[
'isSignatures'
]
=
0
;
$message
[
'signatures'
]
=
''
;
//去判断是否有云芯协议
$signatures
=
SupplierAttachmentsModel
::
where
(
'supplier_id'
,
$supplier
[
'supplier_id'
])
->
where
(
'field_name'
,
'cloud_core_agreement'
)
->
orderBy
(
'id'
,
'desc'
)
->
first
();
if
(
!
empty
(
$signatures
))
{
$signatures
=
$signatures
->
toArray
();
$message
[
'isSignatures'
]
=
1
;
$message
[
'signatures'
]
=
$signatures
[
'file_url'
];
}
$supplierIds
=
SupplierChannelModel
::
where
(
'supplier_name'
,
$supplier
[
'supplier_name'
])
->
where
(
'is_type'
,
0
)
->
where
(
'group_code'
,
'!='
,
''
)
->
pluck
(
'supplier_id'
)
->
toArray
();
...
...
app/Model/Purchase/PurchaseContract.php
0 → 100644
View file @
a21f672b
<?php
namespace
App\Model\Purchase
;
use
Illuminate\Database\Eloquent\Model
;
class
PurchaseContract
extends
Model
{
protected
$connection
=
'purchase'
;
protected
$table
=
'purchase_contract'
;
public
$timestamps
=
false
;
}
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