Commit 7db0ab8d by xin.yang

fix bug

parent c970c015
...@@ -424,10 +424,10 @@ namespace Siger.ApiWMS.Controllers ...@@ -424,10 +424,10 @@ namespace Siger.ApiWMS.Controllers
var locatype = locationType.FirstOrDefault(q => q.id == item.typeid); var locatype = locationType.FirstOrDefault(q => q.id == item.typeid);
tmp.field.Add(new FiledName tmp.field.Add(new FiledName
{ {
id = item.id, locationid = item.id,
name = item.realname, val = item.realname,
typeid = item.typeid, id = item.typeid,
typename = locatype?.name ?? "" name = locatype?.name ?? ""
}); });
while (pid != 0) while (pid != 0)
{ {
...@@ -442,10 +442,10 @@ namespace Siger.ApiWMS.Controllers ...@@ -442,10 +442,10 @@ namespace Siger.ApiWMS.Controllers
locatype = locationType.FirstOrDefault(q => q.id == entity.typeid); locatype = locationType.FirstOrDefault(q => q.id == entity.typeid);
tmp.field.Add(new FiledName tmp.field.Add(new FiledName
{ {
id = entity.id, locationid = entity.id,
name = entity.realname, val = entity.realname,
typeid = entity.typeid, id = entity.typeid,
typename = locatype?.name ?? "" name = locatype?.name ?? ""
}); });
pid = entity.parentid; pid = entity.parentid;
......
...@@ -18,12 +18,21 @@ namespace Siger.Middlelayer.WmsRepository.Response ...@@ -18,12 +18,21 @@ namespace Siger.Middlelayer.WmsRepository.Response
public class FiledName public class FiledName
{ {
/// <summary>
/// 储位自增ID
/// </summary>
public int locationid { get; set; }
/// <summary>
/// 储位名称
/// </summary>
public string val { get; set; }
/// <summary>
/// 类别ID
/// </summary>
public int id { get; set; } public int id { get; set; }
/// <summary>
/// 类别名称
/// </summary>
public string name { get; set; } public string name { get; set; }
public int typeid { get; set; }
public string typename { get; set; }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment