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