settter
parent
0d64a57f45
commit
0a851eab84
|
@ -50,7 +50,7 @@ class Coupon extends Base
|
|||
|
||||
try {
|
||||
$whereMap = [];
|
||||
$sortOrder = ['received_time' => 'desc'];
|
||||
$sortOrder = ['id' => 'desc'];
|
||||
$fields = [
|
||||
'id',
|
||||
'is_verificated as isVerificated',
|
||||
|
|
|
@ -177,7 +177,10 @@ class Comment extends Base
|
|||
$page = $this->request->param('page/d', 1);
|
||||
$size = $this->request->param('size/d', 30);
|
||||
|
||||
$whereMap = [["comment.is_delete", "=", CommentModel::COMMON_OFF]];
|
||||
$whereMap = [
|
||||
["comment.is_delete", "=", CommentModel::COMMON_OFF],
|
||||
["comment.state", "in", [CommentModel::state_default,CommentModel::state_success]],
|
||||
];
|
||||
$orders = ['comment.id' => 'desc'];
|
||||
if (!empty($keyword)) {
|
||||
$whereMap[] = ['account.nick_name|comment.comment', 'like', "%$keyword%"];
|
||||
|
|
Loading…
Reference in New Issue