Commit a21f672b by 杨树贤

plus

parent 8a0022b4
......@@ -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();
......
<?php
namespace App\Model\Purchase;
use Illuminate\Database\Eloquent\Model;
class PurchaseContract extends Model
{
protected $connection='purchase';
protected $table='purchase_contract';
public $timestamps = false;
}
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