35 lines
650 B
PHP
35 lines
650 B
PHP
|
<?php
|
||
|
|
||
|
namespace app\common\model;
|
||
|
|
||
|
|
||
|
use app\common\model\BaseModel;
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
* PurchaseFunds模型
|
||
|
* Class PurchaseFunds
|
||
|
* @package app\common\model
|
||
|
*/
|
||
|
class PurchaseFunds extends BaseModel
|
||
|
{
|
||
|
|
||
|
protected $name = 'purchase_funds';
|
||
|
|
||
|
const StatusWait = 0; //待审核
|
||
|
const StatusApproved = 1; //审核通过
|
||
|
const StatusRejected = 2; //审核拒绝
|
||
|
|
||
|
public function getStatusName()
|
||
|
{
|
||
|
if ($this->status == self::StatusWait) {
|
||
|
return '待审核';
|
||
|
} else if ($this->status == self::StatusApproved) {
|
||
|
return '通过';
|
||
|
} else {
|
||
|
return '拒绝';
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|