💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
#### 求和 ~~~ $sumAmount = Be::getTable('oms_order') ->where('create_time', '>', '2017-12-01') ->sum('amount'); ~~~ 等效SQL: ~~~ SELECT SUM(amount) FROM oms_order WHERE create_time > '2017-12-01' ~~~ #### 表达式求和 ~~~ $sumAmount = Be::getTable('oms_order') ->where('create_time', '>', '2017-12-01') ->sum('amount * currency_rate'); ~~~ 等效SQL: ~~~ SELECT SUM(amount * currency_rate) FROM oms_order WHERE create_time > '2017-12-01' ~~~