ActionProcess.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace app\admin\model;
  3. use think\Model;
  4. class ActionProcess extends Model
  5. {
  6. protected $table = 'wsm_action_process';
  7. protected $pk = 'id';
  8. protected $autoWriteTimestamp = false;
  9. protected $hidden = ['order_type', 'order_name', 'pid', 'roleid', 'uid', 'uname', 'weight'];
  10. public static $action_type_start = 1;//节点类型,1开始节点
  11. public static $action_type_process = 2;//节点类型,2过程节点
  12. public static $action_type_interrupt = 3;//节点类型,3中断节点
  13. public static $action_type_end = 4;//节点类型,4结束节点
  14. public static $operation_type_approval = 1;//操作类型:1审批节点
  15. public static $operation_type_system = 2;//操作类型:2系统节点
  16. public static $status_normal = 1;//状态,1启用
  17. public static $status_disable = 0;//状态,0禁用
  18. public static $is_del_normal = 0;//是否删除,0正常
  19. public static $is_deleted = 1;//是否删除,1删除
  20. public static $is_master_yes = 1;//主节点
  21. public static $is_master_no = 0;//主节点
  22. //数据类型转换
  23. public function getStatusAttr($val)
  24. {
  25. return (string)$val;
  26. }
  27. }