| 12345678910111213141516171819202122232425262728 | <?phpnamespace App\Model;class InvoiceOrder extends UseScopeBaseModel{    protected $table = "invoice_order"; //指定表    const CREATED_AT = 'crt_time';    const UPDATED_AT = 'upd_time';    protected $dateFormat = 'U';    const STATE_ZERO = 0;//未确认    const STATE_ONE = 1;//待确认    const STATE_TWO = 2;//已确认    const prefix = 'FH';    public static $name = [        0 => '未确认',        1 => '待确认',        2 => '已确认',    ];    const range_function = 'invoiceRange';    const is_check_function = 'invoiceCheck';    public static $wait_check = [        self::STATE_ZERO,        self::STATE_ONE    ];}
 |