Authored by 陈峰

Merge branch 'feature/activity-image-upload' into 'master'

修改表名大小写



See merge request !14
... ... @@ -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())`;
... ...