MasterWorkerCaseOutLog.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | likeadmin快速开发前后端分离管理后台(PHP版)
  4. // +----------------------------------------------------------------------
  5. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  6. // | 开源版本可自由商用,可去除界面版权logo
  7. // | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
  8. // | github下载:https://github.com/likeshop-github/likeadmin
  9. // | 访问官网:https://www.likeadmin.cn
  10. // | likeadmin团队 版权所有 拥有最终解释权
  11. // +----------------------------------------------------------------------
  12. // | author: likeadminTeam
  13. // +----------------------------------------------------------------------
  14. namespace app\common\model\finance;
  15. use app\common\model\BaseModel;
  16. use app\common\model\master_worker\MasterWorker;
  17. use think\model\concern\SoftDelete;
  18. /**
  19. * MasterWorkerCaseOutLog模型
  20. * Class MasterWorkerCaseOutLog
  21. * @package app\common\model\finance
  22. */
  23. class MasterWorkerCaseOutLog extends BaseModel
  24. {
  25. use SoftDelete;
  26. protected $name = 'master_worker_case_out_log';
  27. protected $deleteTime = 'delete_time';
  28. public function masterWorker()
  29. {
  30. return $this->hasOne(MasterWorker::class,'id','worker_id');
  31. }
  32. public function getReviewStatusTextAttr($value,$data)
  33. {
  34. $status = [0=>'审批中',1=>'审批通过',2=>'审批驳回'];
  35. return $status[$data['review_status']];
  36. }
  37. }