| 1234567891011121314151617181920212223242526272829303132333435363738 | 
							- <?php
 
- namespace App\Model;
 
- use Illuminate\Database\Eloquent\Model;
 
- /**
 
-  * 工序属性
 
-  * Class Unit
 
-  * @package App\Models
 
-  */
 
- class Process extends Model
 
- {
 
-     protected $table = "process"; //指定表
 
-     const CREATED_AT = 'crt_time';
 
-     const UPDATED_AT = 'upd_time';
 
-     protected $dateFormat = 'U';
 
-     public function scopeWhereUnDel($query,$name='')
 
-     {
 
-         if(empty($name)) return $query->where('del_time', '=', 0);
 
-         else return $query->where($name, '=', 0);
 
-     }
 
-     const type_zero = 0;
 
-     const type_one = 1;
 
-     const type_two = 2;
 
-     const type_three = 3;
 
-     public static $type = [
 
-         self::type_zero => "无",
 
-         self::type_one => "全检",
 
-         self::type_two => "抽检",
 
-         self::type_three => "过程检验",
 
-     ];
 
- }
 
 
  |