diff --git a/app/Models/ImsCjdcOrderMain.php b/app/Models/ImsCjdcOrderMain.php index 891ba54..54d8fcd 100644 --- a/app/Models/ImsCjdcOrderMain.php +++ b/app/Models/ImsCjdcOrderMain.php @@ -118,11 +118,13 @@ class ImsCjdcOrderMain extends Model if ($marketId) { $count = self::where('state', $state) ->where('type', 1) + ->where('created_at','>=',time()-(7*86400)) ->where('market_id',$marketId) ->count(); }else{ $count = self::where('state', $state) ->where('type', 1) + ->where('created_at','>=',time()-(7*86400)) ->count(); } return $count;