소스 검색

Merge branch 'dev/v1.1.24_wh' of BaseService/jyMicroservices into feature/v1.1.24

王浩 2 년 전
부모
커밋
677c69a793
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      jyBXSubscribe/rpc/model/push.go

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

@@ -394,7 +394,7 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
 	var (
 		countSql, findSql string
 	)
-	querys = append(querys, " and   1=1 ")
+	querys = append(querys, " ")
 	if spqp.SelectInfoIds != nil && len(spqp.SelectInfoIds) > 0 {
 		countSql = fmt.Sprintf("select count(1) as count from %s a  where %s", aboutDbMsg[s.ModuleFlag].MysqlTable, fmt.Sprintf("a.id in ('%s')", strings.Join(spqp.SelectInfoIds, "','")))
 		logx.Info("countSql", countSql)
@@ -554,7 +554,7 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
 		}
 		if spqp.IsEnt {
 			var staffs []string
-			querys = append(querys, fmt.Sprintf("   a.entid='%s' ", spqp.EntId))
+			userStr += fmt.Sprintf(" and   a.entid='%s' ", spqp.EntId)
 			//判断是企业管理员还是部门管理员 部门管理员获取所有子部门
 			userEnt := EntInfo(common.IntAll(spqp.EntId), common.IntAll(spqp.EntUserId))
 			if !(userEnt.Role_admin_system || userEnt.Role_admin_department) {