Oa.php 504 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. *
  6. * Class Unit
  7. * @package App\Models
  8. */
  9. class Oa extends Model
  10. {
  11. protected $table = "oa"; //指定表
  12. const CREATED_AT = 'crt_time';
  13. const UPDATED_AT = 'upd_time';
  14. protected $dateFormat = 'U';
  15. const sub_type_one = 1; //正常创建的
  16. const sub_type_two = 2; //分社采购单 分社向总社采购的审批流程
  17. const sub_type_three = 3; //退货单 退分社采购单且是向总社采购的
  18. }