| 1234567891011121314151617181920212223242526272829303132 | 
							- <?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 = ['id','order_time','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','employee_id_1','employee_id_1_title'];
 
-     public static $field_xhd = ['id','order_type','order_number','order_time','employee_id_1','employee_id_1_title','employee_id_2_title','customer_code','customer_title','channel_finance','channel_details','product_code','product_title','product_size','unit','price_1','price_1_total','price_2','price_2_total','quantity','price_3','price_3_total','price_4','price_4_total','profit','profit_rate'];
 
-     public static $field_xsfp = ['id','order_type','order_number','order_time','employee_id_1','employee_id_1_title','employee_id_2_title','customer_code','customer_title','product_code','product_title','product_size','unit','price_1','price_1_total','price_2','price_2_total','quantity','price_4','price_4_total','profit','profit_rate'];
 
-     public static $field_hkd_main = ['order_id as id','order_type','order_number','order_time','employee_id_1','employee_id_1_title','employee_id_2_title','payment_amount','profit','order_id'];
 
-     public static $field_hkd_detail = ['order_type','order_number','order_time','employee_id_1','employee_id_1_title','employee_id_2_title','customer_code','customer_title','product_code','product_title','product_size','unit','price_1','price_1_total','price_2','price_2_total','quantity','price_3','price_3_total','price_4','price_4_total','profit','profit_rate','order_number_upstream','payment_amount'];
 
- }
 
 
  |