Commit 30b9eb1e by 杨树贤

fix

parent 9939d159
Showing with 1 additions and 1 deletions
...@@ -96,7 +96,7 @@ class SyncSupplierService ...@@ -96,7 +96,7 @@ class SyncSupplierService
$message['signatures'] = ''; $message['signatures'] = '';
//去判断是否有云芯协议 //去判断是否有云芯协议
$signatures = SupplierAttachmentsModel::where('supplier_id', $supplier['supplier_id']) $signatures = SupplierAttachmentsModel::where('supplier_id', $supplier['supplier_id'])
->where('field_name', 'yunxin_agreement')->orderBy('id', 'desc')->first(); ->where('field_name', 'yunxin_agreement')->orderBy('attachment_id', 'desc')->first();
if (!empty($signatures)) { if (!empty($signatures)) {
$signatures = $signatures->toArray(); $signatures = $signatures->toArray();
$message['isSignatures'] = 1; $message['isSignatures'] = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment