|
@@ -904,7 +904,7 @@ func WxNoMsgTmplUsableNum(mgo *MongodbSim, wxNodeNum, dayNum, count, retain int6
|
|
now = now.AddDate(0, 0, -1)
|
|
now = now.AddDate(0, 0, -1)
|
|
ymds = append(ymds, FormatDate(&now, Date_Short_Layout))
|
|
ymds = append(ymds, FormatDate(&now, Date_Short_Layout))
|
|
}
|
|
}
|
|
- list, ok := mgo.Find("wxtmplsend_tj", map[string]interface{}{"type": map[string]interface{}{"$in": []string{"all", "nomsg"}}, "ymd": map[string]interface{}{"$in": ymds}}, `{"ymd":-1}`, `{"count":1,"node":1,"ymd":1,"type":1}`, false, -1, -1)
|
|
|
|
|
|
+ list, ok := mgo.Find("wxtmplsend_tj", map[string]interface{}{"type": map[string]interface{}{"$in": []string{"all", "free_nomsg"}}, "ymd": map[string]interface{}{"$in": ymds}}, `{"ymd":-1}`, `{"count":1,"node":1,"ymd":1,"type":1}`, false, -1, -1)
|
|
if !ok || list == nil || len(*list) == 0 {
|
|
if !ok || list == nil || len(*list) == 0 {
|
|
logger.Error("wxtmplsend_tj没有找到记录", ymds)
|
|
logger.Error("wxtmplsend_tj没有找到记录", ymds)
|
|
return 0
|
|
return 0
|