//首页统计数据
private function getCardData(){
$card_data = [ //头部统计数据
[
'title_icon'=>"el-icon-chat-line-square",
'card_title'=> "售后",
'card_cycle'=> "日",
'card_cycle_back_color'=> "#409EFF",
'bottom_title'=> "总量",
'vist_num'=> rand(0,100000),
'vist_all_num'=> rand(0,100000),
'vist_all_icon'=> "el-icon-trophy",
],
];
return $card_data;
}
SELECT COUNT(shouhou_id) FROM cd_shouhou
tp6要统计售后的订单数?在这个基础上应该怎么写,才可以实现?