This commit is contained in:
weiz 2024-01-29 15:46:53 +08:00
parent ddfb430b64
commit 1781c361ec

@ -17,6 +17,7 @@ namespace app\adminapi\lists\bid;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\lists\ListsSortInterface;
use app\common\model\bid\BidBiddingDecision;
use app\common\lists\ListsSearchInterface;
use app\common\model\custom\Custom;
@ -28,7 +29,7 @@ use app\common\model\project\Project;
* Class BidBiddingDecisionLists
* @package app\adminapi\listsbid
*/
class BidBiddingDecisionLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
class BidBiddingDecisionLists extends BaseAdminDataLists implements ListsSearchInterface, ListsExcelInterface, ListsSortInterface
{
@ -149,5 +150,28 @@ class BidBiddingDecisionLists extends BaseAdminDataLists implements ListsSearchI
'project_assurance' => '项目把握度',
];
}
/**
* @notes 设置支持排序字段
* @return string[]
* @author 段誉
* @date 2021/12/29 10:07
* @remark 格式: ['前端传过来的字段名' => '数据库中的字段名'];
*/
public function setSortFields(): array
{
return ['create_time' => 'create_time', 'id' => 'id'];
}
/**
* @notes 设置默认排序
* @return string[]
* @author 段誉
* @date 2021/12/29 10:06
*/
public function setDefaultOrder(): array
{
return ['id' => 'desc'];
}
}