- TmpGetJxBadComments support only fetch fix order comment
This commit is contained in:
@@ -22,8 +22,9 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
GET_BAD_COMMENTS_TYPE = 0 //获取差评的标志
|
||||
GET_ALL_COMMENTS_TYPE = 1 //获取所有评论的标志
|
||||
GET_BAD_COMMENTS_TYPE = 0 //获取差评的标志
|
||||
GET_ALL_COMMENTS_TYPE = 1 //获取所有评论的标志
|
||||
GET_FIXED_COMMENTS_TYPE = 2 //获取已解决评论的标志
|
||||
)
|
||||
|
||||
type StoreExt struct {
|
||||
@@ -634,9 +635,13 @@ func TmpGetJxBadCommentsByStoreId(ctx *jxcontext.Context, storeIDs []int, offset
|
||||
sql += " AND t1.jxstoreid IN (" + dao.GenQuestionMarks(len(storeIDs)) + ")"
|
||||
sqlParams = append(sqlParams, storeIDs)
|
||||
}
|
||||
if commentType == GET_BAD_COMMENTS_TYPE {
|
||||
if commentType != GET_ALL_COMMENTS_TYPE {
|
||||
sql += " AND t1.status = ?"
|
||||
sqlParams = append(sqlParams, commentType)
|
||||
if commentType == GET_BAD_COMMENTS_TYPE {
|
||||
sqlParams = append(sqlParams, 0)
|
||||
} else {
|
||||
sqlParams = append(sqlParams, 1)
|
||||
}
|
||||
}
|
||||
if !utils.IsTimeZero(fromTime) {
|
||||
sql += " AND t1.createtime >= ?"
|
||||
|
||||
Reference in New Issue
Block a user