InventoryOrder.php 518 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class InventoryOrder extends Model
  5. {
  6. protected $table = "inventory_order"; //指定表
  7. const CREATED_AT = 'crt_time';
  8. const UPDATED_AT = 'upd_time';
  9. protected $dateFormat = 'U';
  10. const STATE_ZERO = 0;//未盘点
  11. const STATE_ONE = 1;//盘点中
  12. const STATE_TWO = 2;//盘点结束
  13. const prefix = 'PD';
  14. public static $name = [
  15. 0 => '未盘点',
  16. 1 => '盘点中',
  17. 2 => '盘点结束'
  18. ];
  19. }