|
@@ -815,8 +815,10 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
|
|
|
if spqp.FileExists != "" {
|
|
|
if spqp.FileExists == "1" {
|
|
|
querys = append(querys, fmt.Sprintf("a.attachment_count is not null"))
|
|
|
+ querys = append(querys, fmt.Sprintf("a.attachment_count > 0"))
|
|
|
} else if spqp.FileExists == "-1" {
|
|
|
- querys = append(querys, fmt.Sprintf("a.attachment_count is null"))
|
|
|
+ //querys = append(querys, fmt.Sprintf("a.attachment_count is null"))
|
|
|
+ querys = append(querys, fmt.Sprintf("(a.attachment_count is null OR a.attachment_count = 0)"))
|
|
|
}
|
|
|
}
|
|
|
// 是否已读
|