public void SetSessionWorker() { IndexUrl = AppConfig.Domain + "/Wei/WorkerIndex.aspx"; var wkr = OrgService.GetService().GetWorkerByWei(UserOpenId); WorkerInfo = wkr; UserNo = wkr.WkrCode; UserName = wkr.WkrName; UserType = "Worker"; var rprTypeMap = RepairService.GetService().GetRprWkrTypeMapList(wkr.WkrCode).Select(s => s.RprType).ToList(); var bulidMap = RepairService.GetService().GetRprWkrBuildMapList(wkr.WkrCode).Select(s => s.BId).ToList(); UserDataLimit = (rprTypeMap.Count == 0 ? "NULL" : string.Join(",", rprTypeMap)) + "&" + (bulidMap.Count == 0 ? "NULL" : string.Join(",", bulidMap)); }