...
|
...
|
@@ -113,7 +113,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
return mysqlCli.query(`select u.*, p.name, p.price, p.status, p.cover_img from
|
|
|
${TABLE_ACT_PRIZE_PRODUCT_USER} u left join
|
|
|
${TABLE_ACT_PRIZE_PRODUCT} p on u.act_prize_id = p.id
|
|
|
where u.act_id = :actId and u.uid = :uid and p.status ${extra.type ? '=' : '<'} 2
|
|
|
where u.act_id = :actId and u.uid = :uid and p.status ${+extra.type ? '=' : '<'} 2
|
|
|
order by u.create_time desc limit ${limit}`, {
|
|
|
uid,
|
|
|
actId
|
...
|
...
|
|