diff --git a/DOAN.Admin.WebApi/Controllers/MES/andon/AndonInteractionController.cs b/DOAN.Admin.WebApi/Controllers/MES/andon/AndonInteractionController.cs index 1886103..2af86ca 100644 --- a/DOAN.Admin.WebApi/Controllers/MES/andon/AndonInteractionController.cs +++ b/DOAN.Admin.WebApi/Controllers/MES/andon/AndonInteractionController.cs @@ -35,7 +35,7 @@ namespace DOAN.WebApi.Controllers.MES.andon } AndonFaultRecord record = query.Adapt(); - record.ToCreate(); + record.ToCreate(HttpContext); var response = _andonInteractionService.CallHandle(record); return SUCCESS(response); } @@ -64,7 +64,7 @@ namespace DOAN.WebApi.Controllers.MES.andon } AndonFaultRecord record = response.Adapt(); - record.ToUpdate(); + record.ToUpdate(HttpContext); var res = _andonInteractionService.SignIn(record); return SUCCESS(res); diff --git a/DOAN.Service/MES/dev/DeviceAccountService.cs b/DOAN.Service/MES/dev/DeviceAccountService.cs index fb60e61..ab7db55 100644 --- a/DOAN.Service/MES/dev/DeviceAccountService.cs +++ b/DOAN.Service/MES/dev/DeviceAccountService.cs @@ -326,8 +326,8 @@ namespace DOAN.Service.MES.dev .OrderBy(it => it.Id) .Select(it => new SelectTreeDto { - Id = it.Id.ToString(), - ParentId = it.ParentId.ToString(), + Id =(it.Id * 10000).ToString(), + ParentId = (it.ParentId*10000).ToString(), Label = it.Name, Value = it.Name }) @@ -338,8 +338,8 @@ namespace DOAN.Service.MES.dev .Select(it => new SelectTreeDto { // Id = it.Id.ToString() + it.FkDeviceType.ToString(),//解决合并后id重复 - Id = (it.Id*10000).ToString() ,//解决合并后id重复 - ParentId = it.FkDeviceType.ToString(), + Id = it.Id.ToString(),//解决合并后id重复 + ParentId = (it.FkDeviceType*10000).ToString(), Label = it.DeviceCode + "||" +it.DeviceName , Value = it.Id.ToString() }).ToList();