Commit d00575fe by 杨树贤

账号禁用问题

parent 9bff5b8e
...@@ -340,7 +340,7 @@ class SyncSupplierService ...@@ -340,7 +340,7 @@ class SyncSupplierService
} }
SupplierAccountModel::where('supplier_id', $supplierId)->update([ SupplierAccountModel::where('supplier_id', $supplierId)->update([
'update_time' => time(), 'update_time' => time(),
'a_status' => $isEntity ? SupplierAccountModel::STATUS_DISABLE : $accountPreStatus, 'a_status' => $isEntity ? SupplierAccountModel::STATUS_DISABLE : SupplierAccountModel::STATUS_ENABLE,
]); ]);
} }
......
...@@ -12,6 +12,7 @@ class SupplierAccountModel extends Model ...@@ -12,6 +12,7 @@ class SupplierAccountModel extends Model
public $timestamps = false; public $timestamps = false;
const STATUS_DISABLE = 0; const STATUS_DISABLE = 0;
const STATUS_ENABLE = 1;
public function supplier() public function supplier()
{ {
......
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