获取表单结果2
This commit is contained in:
parent
eb584aa00d
commit
f4cea6e4db
@ -278,6 +278,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
}
|
||||
|
||||
[HttpPost("update_form_result")]
|
||||
[AllowAnonymous]
|
||||
public IActionResult UpdateFormResult([FromBody] DeviceTaskExecuteResult1Dto result)
|
||||
{
|
||||
if(result==null)
|
||||
|
||||
@ -416,6 +416,8 @@ namespace ZR.Service.MES.dev
|
||||
string PlanName = Context.Queryable<DeviceRouteInspectionPlan>().Where(it => it.Id == query.FkPlanId).First()?.Name;
|
||||
string DeviceName = Context.Queryable<DeviceAccount>().Where(it => it.Id == query.FkDeviceId).First()?.DeviceName;
|
||||
string InspectName = Context.Queryable<DeviceInspect>().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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user