Commit 12db1c98 by xin.yang

fix bug

parent 82ace874
...@@ -981,7 +981,7 @@ namespace Siger.ApiWMS.Controllers ...@@ -981,7 +981,7 @@ namespace Siger.ApiWMS.Controllers
update_time = DateTime.Now, update_time = DateTime.Now,
projectid = ProjectId, projectid = ProjectId,
status = req.status == (int)RowState.Valid ? (int)RowState.Valid : (int)RowState.Invalid, status = req.status == (int)RowState.Valid ? (int)RowState.Valid : (int)RowState.Invalid,
locationid = req.storeID.ToInt() locationid = Location.id == locationTypeId ? req.storeID.ToInt() : 0
}; };
parentid = InsertLocation(tmp, waveHouse.name); parentid = InsertLocation(tmp, waveHouse.name);
if (parentid > 0) if (parentid > 0)
...@@ -1107,6 +1107,7 @@ namespace Siger.ApiWMS.Controllers ...@@ -1107,6 +1107,7 @@ namespace Siger.ApiWMS.Controllers
tmp.realname = Location.val; tmp.realname = Location.val;
if (tmp.parentid == 0) if (tmp.parentid == 0)
{ {
tmp.locationid = Location.id == locationTypeId ? req.storeID.ToInt() : 0;
tmp.name = $"{waveHouse.name} -> {tmp.realname}"; tmp.name = $"{waveHouse.name} -> {tmp.realname}";
} }
location.Update(tmp); location.Update(tmp);
......
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