物料管理:agv
This commit is contained in:
@@ -49,7 +49,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
public IActionResult GetMmAgvLocation(int Id)
|
||||
{
|
||||
var response = _MmAgvLocationService.GetInfo(Id);
|
||||
|
||||
|
||||
var info = response.Adapt<MmAgvLocation>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
@@ -102,8 +102,33 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 区域信息
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("listAreaOptions")]
|
||||
public IActionResult ListAreaOptions()
|
||||
{
|
||||
var response = _MmAgvLocationService.ListAreaOptions();
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
[HttpGet("update_status")]
|
||||
public IActionResult Updatestatus(int index, int status)
|
||||
{
|
||||
if (status == 0)
|
||||
{
|
||||
status = 1;
|
||||
}else if (status == 1)
|
||||
{
|
||||
status = 0;
|
||||
}
|
||||
|
||||
var response = _MmAgvLocationService.Updatestatus(index, status);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user