|
@@ -365,9 +365,17 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
|
|
|
} else {
|
|
|
if spqp.IsEnt {
|
|
|
if spqp.BuySubject == 1 {
|
|
|
- userStr = fmt.Sprintf(" a.entid='%s' and (a.source =2 or a.source =3) and (a.product =1 or a.product =2) ", spqp.EntId)
|
|
|
+ if spqp.UserType == SubVipFlag {
|
|
|
+ userStr = fmt.Sprintf(" a.entid='%s' and (a.source > 1) and (a.product=1) ", spqp.EntId)
|
|
|
+
|
|
|
+ } else if spqp.UserType == MemberFlag {
|
|
|
+ userStr = fmt.Sprintf(" a.entid='%s' and (a.source>1) and (a.product=2) ", spqp.EntId)
|
|
|
+
|
|
|
+ } else {
|
|
|
+ userStr = fmt.Sprintf(" a.entid='%s' and (a.source>1) and (a.product<1) ", spqp.EntId)
|
|
|
+ }
|
|
|
} else {
|
|
|
- userStr = fmt.Sprintf(" a.entid='%s' and a.product !=1 and a.product !=2 ", spqp.EntId)
|
|
|
+ userStr = fmt.Sprintf(" a.entid='%s' and a.product < 1", spqp.EntId)
|
|
|
}
|
|
|
} else {
|
|
|
userStr = fmt.Sprintf(" a.userid='%s'", common.If(s.ModuleFlag == EntnicheFlag, spqp.EntUserId, common.InterfaceToStr(spqp.NewUserId)))
|