我正在尝试创建一个Eloquent查询,该查询获取每个不同月份的总销售额,如果缺少Month,则用零值填充。 并尝试了这种方法,它可以正常工作,我想要一个动态查询 '$ jan = Order_data :: whereyear('sales_date',date('Y'))-> whereMonth('sales_date',1)-> get(['gross_total_amount'])-> toArray(); $ jandata = array_column($ jan,'gross_total_amount'); $ jantotal = array_sum($ jandata);
#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
@import Firebase;
#include "FBSDKCoreKit/FBSDKCoreKit.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// [START configure]
[FIRApp configure];
// [GeneratedPluginRegistrant registerWithRegistry:self];
// [END configure]
// Set a white background so that patterns are showcased.
self.window.backgroundColor = [UIColor whiteColor];
return YES;
}
@end