Commit 7db0ab8d by xin.yang

fix bug

parent c970c015
......@@ -424,10 +424,10 @@ namespace Siger.ApiWMS.Controllers
var locatype = locationType.FirstOrDefault(q => q.id == item.typeid);
tmp.field.Add(new FiledName
{
id = item.id,
name = item.realname,
typeid = item.typeid,
typename = locatype?.name ?? ""
locationid = item.id,
val = item.realname,
id = item.typeid,
name = locatype?.name ?? ""
});
while (pid != 0)
{
......@@ -442,10 +442,10 @@ namespace Siger.ApiWMS.Controllers
locatype = locationType.FirstOrDefault(q => q.id == entity.typeid);
tmp.field.Add(new FiledName
{
id = entity.id,
name = entity.realname,
typeid = entity.typeid,
typename = locatype?.name ?? ""
locationid = entity.id,
val = entity.realname,
id = entity.typeid,
name = locatype?.name ?? ""
});
pid = entity.parentid;
......
......@@ -18,12 +18,21 @@ namespace Siger.Middlelayer.WmsRepository.Response
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; }
/// <summary>
/// 类别名称
/// </summary>
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