|
|
|
@ -269,7 +269,7 @@ class SupplyDemandController extends BaseController
|
|
|
|
$interactionGrowthRate = $this->calculateGrowthRate($interactionCount, $prevInteractionCount);
|
|
|
|
$interactionGrowthRate = $this->calculateGrowthRate($interactionCount, $prevInteractionCount);
|
|
|
|
|
|
|
|
|
|
|
|
// 当期供需发布分页
|
|
|
|
// 当期供需发布分页
|
|
|
|
$list = SupplyDemand::with(['messages' => function ($query) {
|
|
|
|
$list = SupplyDemand::with(['user', 'messages' => function ($query) {
|
|
|
|
$query->with('user', 'toUser')->limit(2)->orderBy('created_at', 'desc');
|
|
|
|
$query->with('user', 'toUser')->limit(2)->orderBy('created_at', 'desc');
|
|
|
|
}])->where(function ($query) use ($type) {
|
|
|
|
}])->where(function ($query) use ($type) {
|
|
|
|
if ($type) {
|
|
|
|
if ($type) {
|
|
|
|
|