安灯区域工时删除功能

This commit is contained in:
quowingwang 2026-03-04 08:45:29 +08:00
parent 28a23e6493
commit b44973f78c

View File

@ -3,6 +3,7 @@ using ZR.Admin.WebApi.Extensions;
using ZR.Admin.WebApi.Filters;
using ZR.Model.MES.andon;
using ZR.Model.MES.andon.Dto;
using ZR.Service.mes.andon;
using ZR.Service.mes.andon.Iservice;
//创建时间2025-12-10
@ -94,9 +95,12 @@ namespace ZR.Admin.WebApi.Controllers.andon
[Log(Title = "安灯区域工作时间表", BusinessType = BusinessType.DELETE)]
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);
}
}