diff --git a/ZR.Admin.WebApi/Controllers/MES/dev/DeviceTaskExecuteController.cs b/ZR.Admin.WebApi/Controllers/MES/dev/DeviceTaskExecuteController.cs index 0fdd212..18b97cd 100644 --- a/ZR.Admin.WebApi/Controllers/MES/dev/DeviceTaskExecuteController.cs +++ b/ZR.Admin.WebApi/Controllers/MES/dev/DeviceTaskExecuteController.cs @@ -278,6 +278,7 @@ namespace ZR.Admin.WebApi.Controllers } [HttpPost("update_form_result")] + [AllowAnonymous] public IActionResult UpdateFormResult([FromBody] DeviceTaskExecuteResult1Dto result) { if(result==null) diff --git a/ZR.Service/MES/dev/DeviceTaskExecuteService.cs b/ZR.Service/MES/dev/DeviceTaskExecuteService.cs index dffae31..40fbef0 100644 --- a/ZR.Service/MES/dev/DeviceTaskExecuteService.cs +++ b/ZR.Service/MES/dev/DeviceTaskExecuteService.cs @@ -416,6 +416,8 @@ namespace ZR.Service.MES.dev string PlanName = Context.Queryable().Where(it => it.Id == query.FkPlanId).First()?.Name; string DeviceName = Context.Queryable().Where(it => it.Id == query.FkDeviceId).First()?.DeviceName; string InspectName = Context.Queryable().Where(it => it.Id == query.FkInspectId).First()?.Name; + + foreach (DeviceFormConfig config in configlist) { @@ -436,11 +438,6 @@ namespace ZR.Service.MES.dev addResultList.Add(result1); //生成返回结果 - - - - - } Context.Insertable(addResultList).ExecuteCommand();