12345678910111213141516171819202122232425262728 |
- <?php
- namespace App\Model;
- use Illuminate\Database\Eloquent\Model;
- class RevenueCost extends Model
- {
- protected $guarded = [];
- protected $table = "revenue_cost"; //指定表
- const CREATED_AT = 'crt_time';
- const UPDATED_AT = 'upd_time';
- protected $dateFormat = 'U';
- const ORDER_ONE = 1;
- const ORDER_TWO = 2;
- const ORDER_THREE = 3;
- public static $order_type = [
- self::ORDER_ONE => '销货单',
- self::ORDER_TWO => '销售发票',
- self::ORDER_THREE => '回款单'
- ];
- const job = 'yf_revenue_cost';
- public static $field = ['order_type','price_1','price_1_total','price_2','price_2_total','price_3','price_3_total','price_4','price_4_total','payment_amount','profit','profit_rate','order_time'];
- }
|