细节调整,long 转string
This commit is contained in:
		
							parent
							
								
									c8600c6bd7
								
							
						
					
					
						commit
						4762ea002b
					
				| 
						 | 
					@ -45,7 +45,7 @@ namespace LY.App.Model
 | 
				
			||||||
        /// 用户关键防区数组
 | 
					        /// 用户关键防区数组
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        [SugarColumn(ColumnName = "position_id", ColumnDescription = "阵地ids", IsJson = true)]
 | 
					        [SugarColumn(ColumnName = "position_id", ColumnDescription = "阵地ids", IsJson = true)]
 | 
				
			||||||
        public List<long> positionId { get; set; }
 | 
					        public List<string> positionId { get; set; }
 | 
				
			||||||
        [SugarColumn(IsIgnore = true)]
 | 
					        [SugarColumn(IsIgnore = true)]
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// 用户关键防区名称数组
 | 
					        /// 用户关键防区名称数组
 | 
				
			||||||
| 
						 | 
					@ -68,7 +68,7 @@ namespace LY.App.Model
 | 
				
			||||||
        public bool IsAdmin { get; set; }
 | 
					        public bool IsAdmin { get; set; }
 | 
				
			||||||
        public List<long> positionId { get; set; }
 | 
					        public List<long> positionId { get; set; }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    public class UpdateUser:AddUser
 | 
					    public class UpdateUser : AddUser
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        public long Id { get; set; }
 | 
					        public long Id { get; set; }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -210,9 +210,9 @@ namespace LY.App.Service
 | 
				
			||||||
                .ToPageListAsync(pageNum, pageSize, total);
 | 
					                .ToPageListAsync(pageNum, pageSize, total);
 | 
				
			||||||
            query.ForEach(s =>
 | 
					            query.ForEach(s =>
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                if (s.positionId is not null &&  s.positionId.Any())
 | 
					                if (s.positionId is not null && s.positionId.Any())
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    s.positionName= _db.Queryable<PositionInfo>().Where(p =>s.positionId.Contains(p.Id)).Select(p => p.Name).ToList();
 | 
					                    s.positionName = _db.Queryable<PositionInfo>().Where(p => s.positionId.Contains(p.Id.ToString())).Select(p => p.Name).ToList();
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
            return new
 | 
					            return new
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue