CRMEB/backend/app/model/user/OfflineReceiptStatus.php
2026-09-23 15:15:02 +08:00

33 lines
606 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
declare(strict_types=1);
namespace app\model\user;
use crmeb\basic\BaseModel;
use crmeb\traits\ModelTrait;
/**
* 线下收银状态变更模型
* 对应表 eb_offline_receipt_status,记录收款单的状态变更历史
*/
class OfflineReceiptStatus extends BaseModel
{
use ModelTrait;
protected $pk = 'id';
protected $name = 'offline_receipt_status';
protected $insert = ['add_time'];
protected function setAddTimeAttr()
{
return time();
}
public function searchOrderIdAttr($query, $value)
{
$query->where('order_id', $value);
}
}