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
56f68c84
authored
Aug 26, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复展示
parent
d4b9ec8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
4 deletions
app/Http/Services/SupplierContractService.php
app/Http/Transformers/SupplierTransformer.php
app/Http/Services/SupplierContractService.php
View file @
56f68c84
...
...
@@ -251,14 +251,12 @@ class SupplierContractService
// 2、类型为人工上传,有合同附件,且上传人是:云芯系统供应商
$query
->
where
(
'contract_type'
,
1
)
->
where
(
'create_name'
,
'云芯系统供应商'
)
->
where
(
'
contract_file_url
'
,
'!='
,
''
);
->
where
(
'
oss_file_id
'
,
'!='
,
''
);
})
->
pluck
(
'purchase_id'
);
$existSupplierIds
=
PurchaseOrderModel
::
query
()
->
whereIn
(
'purchase_id'
,
$purchaseIds
)
->
distinct
()
->
pluck
(
'supplier_id'
)
->
toArray
();
$result
=
[];
foreach
(
$supplierIds
as
$supplierId
)
{
$result
[
$supplierId
]
=
in_array
(
$supplierId
,
$existSupplierIds
)
?
1
:
-
1
;
...
...
app/Http/Transformers/SupplierTransformer.php
View file @
56f68c84
...
...
@@ -51,7 +51,6 @@ class SupplierTransformer
},
$value
);
}
$hasOrderContractMap
=
SupplierContractService
::
hasOrderContractMap
(
$supplierIds
);
foreach
(
$list
as
&
$supplier
)
{
$supplier
[
'has_order_contract'
]
=
array_get
(
$hasOrderContractMap
,
$supplier
[
'supplier_id'
],
-
1
);
$supplier
[
'viewed'
]
=
array_get
(
$viewData
,
$supplier
[
'supplier_id'
],
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