dggjimai/application/common/model/ConsignmentOrderGoods.php

30 lines
527 B
PHP
Executable File

<?php
/**
* 订单商品表模型
*/
namespace app\common\model;
use think\model\concern\SoftDelete;
class ConsignmentOrderGoods extends Model
{
use SoftDelete;
public $softDelete = true;
protected $name = 'consignment_order_goods';
protected $autoWriteTimestamp = true;
//可搜索字段
protected $searchField = [];
//商品订单状态
public function getRefundStatusTextAttr($value, $data)
{
return self::JMORDER_GOODS_TEXT[$data['refund_status']];
}
}