3
2
Pārlūkot izejas kodu

負責人bug去掉

huahaiyan 6 gadi atpakaļ
vecāks
revīzija
5f4d8809a6
1 mainītis faili ar 11 papildinājumiem un 10 dzēšanām
  1. 11 10
      src/dashoo.cn/backend/api/controllers/lims/limsbalance.go

+ 11 - 10
src/dashoo.cn/backend/api/controllers/lims/limsbalance.go

@@ -185,17 +185,18 @@ func (this *LimsBalanceController) GetUserList() {
 		}
 		userIds = strings.Trim(userIds, ",")
 		where = where + " and Id in (" + userIds + ")"
-	}else {
-		svcuser := limsdataentry.GetLimsDataEntryService(utils.DBE)
-		var userrolelist []userRole.Base_RoleList
-		userrolelist = svcuser.GetUserByRole("10000180", this.User.AccCode)
-		var userIds string
-		for _, tmpUser := range userrolelist {
-			userIds += strconv.FormatInt(tmpUser.Id,10) + ","
-		}
-		userIds = strings.Trim(userIds, ",")
-		where = where + " and Id in (" + userIds + ")"
 	}
+	//else {
+	//	svcuser := limsdataentry.GetLimsDataEntryService(utils.DBE)
+	//	var userrolelist []userRole.Base_RoleList
+	//	userrolelist = svcuser.GetUserByRole("10000180", this.User.AccCode)
+	//	var userIds string
+	//	for _, tmpUser := range userrolelist {
+	//		userIds += strconv.FormatInt(tmpUser.Id,10) + ","
+	//	}
+	//	userIds = strings.Trim(userIds, ",")
+	//	where = where + " and Id in (" + userIds + ")"
+	//}
 	total := svc.GetPagingEntitiesWithOrder(page.CurrentPage, page.Size, "Id", false, &users, where)
 	var datainfo DataInfo
 	datainfo.Items = users