细节调整,long 转string

This commit is contained in:
yanghongwei 2025-06-22 18:11:25 +08:00
parent c8600c6bd7
commit 4762ea002b
2 changed files with 4 additions and 4 deletions

View File

@ -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>
/// 用户关键防区名称数组 /// 用户关键防区名称数组

View File

@ -212,7 +212,7 @@ namespace LY.App.Service
{ {
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