|
@@ -7,15 +7,21 @@ use think\Model;
|
|
|
|
|
|
class Process extends Model
|
|
|
{
|
|
|
- protected $table='wsm_process';
|
|
|
- protected $pk='id';
|
|
|
- protected $autoWriteTimestamp=false;
|
|
|
+ protected $table = 'wsm_process';
|
|
|
+ protected $pk = 'id';
|
|
|
+ protected $autoWriteTimestamp = false;
|
|
|
|
|
|
- public static $is_del_normal=0;
|
|
|
- public static $is_deleted=1;
|
|
|
+ public static $is_del_normal = 0;
|
|
|
+ public static $is_deleted = 1;
|
|
|
|
|
|
- public static $status_normal=1;
|
|
|
- public static $status_disable=2;
|
|
|
+ public static $status_normal = 1;
|
|
|
+ public static $status_disable = 0;
|
|
|
+
|
|
|
+
|
|
|
+ public function getStatusAttr($val)
|
|
|
+ {
|
|
|
+ return (string)$val;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|