NOTE 当通过struct 进行查询的时候,GORM 将会查询这些字段的非零值, 意味着你的字段包含 0 ... Select("date(created_at) as date, sum(amount) as total").
確定! 回上一頁