|
|
@ -118,11 +118,13 @@ class ImsCjdcOrderMain extends Model |
|
|
if ($marketId) { |
|
|
if ($marketId) { |
|
|
$count = self::where('state', $state) |
|
|
$count = self::where('state', $state) |
|
|
->where('type', 1) |
|
|
->where('type', 1) |
|
|
|
|
|
->where('created_at','>=',time()-(7*86400)) |
|
|
->where('market_id',$marketId) |
|
|
->where('market_id',$marketId) |
|
|
->count(); |
|
|
->count(); |
|
|
}else{ |
|
|
}else{ |
|
|
$count = self::where('state', $state) |
|
|
$count = self::where('state', $state) |
|
|
->where('type', 1) |
|
|
->where('type', 1) |
|
|
|
|
|
->where('created_at','>=',time()-(7*86400)) |
|
|
->count(); |
|
|
->count(); |
|
|
} |
|
|
} |
|
|
return $count; |
|
|
return $count; |
|
|
|