...
|
...
|
@@ -139,10 +139,12 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
*/
|
|
|
getListRecommend(actPrizeId, extra = {}) {
|
|
|
const actId = parseInt(extra.actId, 10) || 0;
|
|
|
const time = new Date().getTime() / 1000;
|
|
|
|
|
|
return mysqlCli.query(`select * from ${TABLE_ACT_PRIZE_PRODUCT}
|
|
|
where act_id = :actId and status > 0
|
|
|
where act_id = :actId and status = 1 and start_time < :time and end_time > :time
|
|
|
order by sort desc limit ${MAX_RECOMEND_NUM + 1}`, {
|
|
|
time,
|
|
|
actId,
|
|
|
actPrizeId
|
|
|
}, {
|
...
|
...
|
|