细节调整,long 转string
This commit is contained in:
parent
c8600c6bd7
commit
4762ea002b
|
|
@ -45,7 +45,7 @@ namespace LY.App.Model
|
|||
/// 用户关键防区数组
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "position_id", ColumnDescription = "阵地ids", IsJson = true)]
|
||||
public List<long> positionId { get; set; }
|
||||
public List<string> positionId { get; set; }
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
/// <summary>
|
||||
/// 用户关键防区名称数组
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@ namespace LY.App.Service
|
|||
{
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue