|
@@ -147,6 +147,13 @@ class CouponDetailController extends Curd
|
|
|
return $items;
|
|
|
}
|
|
|
|
|
|
+ public function statistics(Request $request)
|
|
|
+ {
|
|
|
+ $total = CouponDetail::count('coupon_detail_id');
|
|
|
+ $usedTotal = CouponDetail::where('coupon_detail_status','USED')->count('coupon_detail_id');
|
|
|
+ $unUsedTotal = CouponDetail::whereIn('coupon_detail_status',['ACTIVED'])->count('coupon_detail_id');
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @Desc 修改状态
|
|
|
* @Author Gorden
|