...
|
...
|
@@ -311,7 +311,7 @@ class ArticleModel extends global.yoho.BaseModel { |
|
|
*/
|
|
|
getArticleIp(actId, articleId, ip) {
|
|
|
let sqlStr = `SELECT COUNT(*) as vote_count
|
|
|
FROM ACT_ARTICLE_GOOD WHERE act_id = :actId
|
|
|
FROM ${TABLE_ACT_ARTICLE_GOOD} WHERE act_id = :actId
|
|
|
AND ip = :ip
|
|
|
AND article_id = :articleId
|
|
|
AND to_days(create_time) = to_days(now())`;
|
...
|
...
|
@@ -331,7 +331,7 @@ class ArticleModel extends global.yoho.BaseModel { |
|
|
*/
|
|
|
getIpCount(actId, ip) {
|
|
|
let sqlStr = `SELECT count(*) AS vote_count
|
|
|
FROM ACT_ARTICLE_GOOD WHERE act_id = :actId
|
|
|
FROM ${TABLE_ACT_ARTICLE_GOOD} WHERE act_id = :actId
|
|
|
AND ip = :ip
|
|
|
AND to_days(create_time) = to_days(now())`;
|
|
|
|
...
|
...
|
|