统计表中字段数据总值:
$startInfo = $objOrderInfo->field("COUNT(*) number,SUM(order_amount) account")->where("ctime >=‘$startPeriod[startTime]‘ AND ctime <=‘$startPeriod[endTime]‘ AND extension_code =‘integral‘")->find();
2024-01-21 08:18:10
统计表中字段数据总值:
$startInfo = $objOrderInfo->field("COUNT(*) number,SUM(order_amount) account")->where("ctime >=‘$startPeriod[startTime]‘ AND ctime <=‘$startPeriod[endTime]‘ AND extension_code =‘integral‘")->find();