Files
fdesk/app/crmAdmin/logic/CustomerLogic.php
T
2025-08-06 15:56:57 +08:00

26 lines
495 B
PHP

<?php
namespace app\crmAdmin\logic;
use app\crm\model\Customer;
class CustomerLogic
{
public function status(int $id,int $status)
{
$customer = Customer::withTrashed()->find($id);
$customer->status = $status;
$res = $customer->save();
return $res;
}
public function forceDelete(int $id)
{
$customer = Customer::withTrashed()->find($id);
//强制删除
$res = $customer->forceDelete();
return $res;
}
}