|
|
|
@ -37,10 +37,10 @@ class PaymentTemplate extends PaymentTemplateModel |
|
|
|
|
$where = [ |
|
|
|
|
['is_delete', '=', 0], |
|
|
|
|
]; |
|
|
|
|
if (isset($merchantId) && $merchantId) { |
|
|
|
|
$where[] = ['merchant_id', '=', $merchantId]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// if (isset($merchantId) && $merchantId) { |
|
|
|
|
// $where[] = ['merchant_id', '=', $merchantId]; |
|
|
|
|
// } |
|
|
|
|
$where[] = ['merchant_id', '=', $merchantId]; |
|
|
|
|
return $this->where($where)->where('is_delete', '=', 0) |
|
|
|
|
->order(['sort' => 'asc', $this->getPk()]) |
|
|
|
|
->paginate(15); |
|
|
|
|