Commit 3e63a66a by 杨树贤

同步到金蝶

parent 7d589ed8
Showing with 1 additions and 1 deletions
......@@ -665,7 +665,7 @@ class DataService
public function reSyncSupplierToErp()
{
$suppliers = SupplierChannelModel::where('is_type', 0)->get()->toArray();
$suppliers = SupplierChannelModel::select(['supplier_id','supplier_name'])->where('is_type', 0)->get()->toArray();
foreach ($suppliers as $supplier) {
if (!empty($supplier['supplier_name'])) {
echo "同步供应商到金蝶 : " . $supplier['supplier_name'] . PHP_EOL;
......
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