Browse Source

feat:部门管理员权益判断修改

duxin 2 năm trước cách đây
mục cha
commit
23f6535626
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      jyBXSubscribe/rpc/model/push.go

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

@@ -532,7 +532,7 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
 			}
 
 			// 无查询分配人员、是否已读
-			if spqp.IsRead == "" && len(spqp.Staffs) == 0 {
+			if spqp.IsRead == "" && len(staffs) == 0 {
 				//查询数量(需要去重)
 				//if len(querys) > 1 {
 				countSql = fmt.Sprintf("select count(1) from %s a STRAIGHT_JOIN %s b ON  a.infoid = b.infoid  %s where  %s %s", aboutDbMsg[s.ModuleFlag].MysqlTable, Baseinfo, leftJoinStr, strings.Join(querys, " and "), userStr)