|
|
@@ -20,6 +20,7 @@ use app\common\lists\ListsSearchInterface;
|
|
|
use app\common\model\article\Article;
|
|
|
use app\common\model\notice\NoticeSetting;
|
|
|
use app\common\model\asset\AssetInfo;
|
|
|
+use app\common\model\asset\AssetLeaseInfo;
|
|
|
use app\common\service\FileService;
|
|
|
|
|
|
/**
|
|
|
@@ -205,6 +206,21 @@ class AssetLists extends BaseAdminDataLists implements ListsSearchInterface
|
|
|
$return_data['unused_rate'] = $unused_rate;
|
|
|
$return_data['asset_list'] = $assetList;
|
|
|
|
|
|
+ //费用
|
|
|
+ $leaseinfo = AssetLeaseInfo::field('count(id) value,is_pay')->group('is_pay')->select()->toArray();
|
|
|
+ foreach($leaseinfo as &$v){
|
|
|
+ switch ($v['is_pay']){
|
|
|
+ case 1:
|
|
|
+ $v['name'] = '已缴费';
|
|
|
+ break;
|
|
|
+ case 0:
|
|
|
+ $v['name'] = '未缴费';
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ unset($v['is_pay']);
|
|
|
+ }
|
|
|
+ $return_data['pay_info'] = $leaseinfo;
|
|
|
+
|
|
|
return $return_data;
|
|
|
}
|
|
|
}
|