Process.php 543 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace app\admin\model;
  3. use think\Model;
  4. //流程表
  5. class Process extends Model
  6. {
  7. protected $table = 'wsm_process';
  8. protected $pk = 'id';
  9. protected $autoWriteTimestamp = false;
  10. public static $is_del_normal = 0;//是否删除,正常
  11. public static $is_deleted = 1;//是否删除,已删除
  12. public static $status_normal = 1;//状态,正常
  13. public static $status_disable = 0;//状态,禁用
  14. //数据类型转换
  15. public function getStatusAttr($val)
  16. {
  17. return (string)$val;
  18. }
  19. }