Răsfoiți Sursa

部门要看到企业分发的数据

WH01243 2 ani în urmă
părinte
comite
22993f0271
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      jyBXSubscribe/rpc/model/push.go

+ 1 - 1
jyBXSubscribe/rpc/model/push.go

@@ -594,7 +594,7 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
 				//查询分配人员或是否已读
 				//查询分配人员或是否已读
 				staffQuery := " 1=1 "
 				staffQuery := " 1=1 "
 				if len(staffs) > 0 {
 				if len(staffs) > 0 {
-					staffQuery += fmt.Sprintf(" and  a.userid in ('%s')  ", strings.Join(staffs, "','"))
+					staffQuery += fmt.Sprintf(" and  a.userid in (0,'%s')  ", strings.Join(staffs, "','"))
 				}
 				}
 				if spqp.IsRead != "" {
 				if spqp.IsRead != "" {
 					if spqp.IsRead == "0" {
 					if spqp.IsRead == "0" {