|
@@ -18,6 +18,7 @@ namespace app\adminapi\logic;
|
|
|
use app\common\logic\BaseLogic;
|
|
use app\common\logic\BaseLogic;
|
|
|
use app\common\service\ConfigService;
|
|
use app\common\service\ConfigService;
|
|
|
use app\common\service\FileService;
|
|
use app\common\service\FileService;
|
|
|
|
|
+use app\common\model\asset\AssetInfo;
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -173,7 +174,11 @@ class WorkbenchLogic extends BaseLogic
|
|
|
for ($i = 0; $i < 15; $i++) {
|
|
for ($i = 0; $i < 15; $i++) {
|
|
|
$where_start = strtotime("- " . $i . "day");
|
|
$where_start = strtotime("- " . $i . "day");
|
|
|
$date[] = date('m/d', $where_start);
|
|
$date[] = date('m/d', $where_start);
|
|
|
- $num[$i] = rand(0, 100);
|
|
|
|
|
|
|
+ $search_date = date('Y-m-d', $where_start);
|
|
|
|
|
+ $where['lease_status'] = 3;
|
|
|
|
|
+ $where['lease_expiration_time'] =$search_date;
|
|
|
|
|
+ $asset_number = AssetInfo::where($where)->count();
|
|
|
|
|
+ $num[$i] = $asset_number;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return [
|
|
return [
|