order(['id ASC'])->fetchAll(); } // 添加客户 public function addCustomer($data) { return $this->add($data); } // 更新客户 public function updateCustomer($id, $data) { return $this->where(['id = :id'], [':id' => $id])->update($data); } // 删除客户 public function deleteCustomer($id) { return $this->delete($id); } }