Commit 4804b038 by 杨树贤

erp数据完善

parent bc2a6315
Showing with 13 additions and 6 deletions
......@@ -6,18 +6,19 @@ namespace App\Http\Services;
//后台用户相关信息服务
use App\Model\LogModel;
use App\Model\RedisModel;
use App\Model\NationModel;
use Illuminate\Support\Arr;
use App\Model\UserInfoModel;
use App\Model\SupplierSyncModel;
use Illuminate\Support\Facades\DB;
use App\Model\SupplierAccountModel;
use App\Model\SupplierAttachmentsModel;
use App\Model\SupplierChannelModel;
use App\Model\SupplierContactModel;
use App\Model\SupplierReceiptModel;
use App\Model\SupplierSyncModel;
use App\Model\UserInfoModel;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use PhpAmqpLib\Connection\AMQPStreamConnection;
use PhpAmqpLib\Message\AMQPMessage;
use App\Model\SupplierAttachmentsModel;
use PhpAmqpLib\Connection\AMQPStreamConnection;
class SyncSupplierService
{
......@@ -83,6 +84,11 @@ class SyncSupplierService
if (!empty($supplier['currency'])) {
$message['currencyNumber'] = array_get(config('sync.SyncCurrencyType'), $supplier['currency']);
}
if (!empty($supplier['nation_id'])) {
$countryIsocode = NationModel::where('nation_id', $supplier['nation_id'])->value('international_code');
$message['country_isocode'] = $countryIsocode;
}
$supplierIds = SupplierChannelModel::where('supplier_name', $supplier['supplier_name'])
->where('is_type', 0)->where('group_code', '!=', '')
->pluck('supplier_id')->toArray();
......@@ -104,6 +110,7 @@ class SyncSupplierService
'recid' => $receipt['receipt_id'],
'intermediaryBank' => $receipt['intermediary_bank'],
'remark' => $receipt['remark'],
'country_isocode' => $receipt['nation']['international_code'],
];
}
}
......
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