123456789101112131415161718192021222324252627 |
- <?php
- namespace app\admin\model;
- use think\Model;
- //流程表
- class Process extends Model
- {
- protected $table = 'wsm_process';
- protected $pk = 'id';
- protected $autoWriteTimestamp = false;
- public static $is_del_normal = 0;//是否删除,正常
- public static $is_deleted = 1;//是否删除,已删除
- public static $status_normal = 1;//状态,正常
- public static $status_disable = 0;//状态,禁用
- //数据类型转换
- public function getStatusAttr($val)
- {
- return (string)$val;
- }
- }
|