安灯区域工时删除功能
This commit is contained in:
parent
28a23e6493
commit
b44973f78c
@ -3,6 +3,7 @@ using ZR.Admin.WebApi.Extensions;
|
|||||||
using ZR.Admin.WebApi.Filters;
|
using ZR.Admin.WebApi.Filters;
|
||||||
using ZR.Model.MES.andon;
|
using ZR.Model.MES.andon;
|
||||||
using ZR.Model.MES.andon.Dto;
|
using ZR.Model.MES.andon.Dto;
|
||||||
|
using ZR.Service.mes.andon;
|
||||||
using ZR.Service.mes.andon.Iservice;
|
using ZR.Service.mes.andon.Iservice;
|
||||||
|
|
||||||
//创建时间:2025-12-10
|
//创建时间:2025-12-10
|
||||||
@ -94,9 +95,12 @@ namespace ZR.Admin.WebApi.Controllers.andon
|
|||||||
[Log(Title = "安灯区域工作时间表", BusinessType = BusinessType.DELETE)]
|
[Log(Title = "安灯区域工作时间表", BusinessType = BusinessType.DELETE)]
|
||||||
public IActionResult DeleteAndonWorkTime([FromRoute]string ids)
|
public IActionResult DeleteAndonWorkTime([FromRoute]string ids)
|
||||||
{
|
{
|
||||||
var idArr = Tools.SplitAndConvert<int>(ids);
|
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||||
|
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||||
|
|
||||||
return ToResponse(_AndonWorkTimeService.Delete(idArr));
|
var response = _AndonWorkTimeService.Delete(idsArr);
|
||||||
|
|
||||||
|
return ToResponse(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user