修改
This commit is contained in:
parent
014bed8a83
commit
8ca8da9870
@ -182,9 +182,9 @@ namespace MDM.Controllers.Process
|
||||
//TODO 工序修改流程
|
||||
|
||||
[HttpPost("operation_update_flow")]
|
||||
public IActionResult OperationUpdateFlow([FromBody] ProcessOperationCollectParameter parm)
|
||||
public IActionResult OperationUpdateFlow([FromBody] ProcessOperationFlowDto2 model)
|
||||
{
|
||||
var response = _ProcessOperationService.OperationUpdateFlow(parm);
|
||||
var response = _ProcessOperationService.OperationUpdateFlow(model);
|
||||
return ToResponse(response);
|
||||
|
||||
}
|
||||
|
||||
@ -19,6 +19,7 @@ namespace MDM.Model.Process.Dto
|
||||
public string ParameterName { get; set; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 工艺参数表(如温度、压力、时间等,关联工艺路线与工序)输入输出对象
|
||||
/// </summary>
|
||||
@ -96,13 +97,13 @@ namespace MDM.Model.Process.Dto
|
||||
/// 是否为控制参数:1=是(如PID控制),0=否(仅采集)
|
||||
/// </summary>
|
||||
|
||||
public int IsControlled { get; set; }
|
||||
public int IsControlled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否为监控参数(是否采集/显示):1=是,0=否
|
||||
/// </summary>
|
||||
|
||||
public int IsMonitored { get; set; }
|
||||
public int IsMonitored { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 控制类型(如PID、ON/OFF、手动设定等,可选)
|
||||
@ -119,7 +120,7 @@ namespace MDM.Model.Process.Dto
|
||||
/// <summary>
|
||||
/// 是否必填/必采:1=是,0=否
|
||||
/// </summary>
|
||||
public int IsRequired { get; set; }
|
||||
public int IsRequired { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 参数排序(用于UI展示顺序)
|
||||
|
||||
@ -9,21 +9,36 @@ namespace MDM.Models.Process.Dto
|
||||
/// <summary>
|
||||
/// 工序管理流程Dto
|
||||
/// </summary>
|
||||
public class ProcessOperationFlowDto
|
||||
public class ProcessOperationFlowDto
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
public string FkRoutingCode { get; set; }
|
||||
|
||||
|
||||
public string FkOperationCode { get; set; }
|
||||
|
||||
public string FlowCode { get; set; }
|
||||
|
||||
|
||||
|
||||
public string FlowTypeCode { get; set; }
|
||||
|
||||
|
||||
public string FlowTypeName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ProcessOperationFlowDto2
|
||||
{
|
||||
|
||||
public int id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程code
|
||||
/// </summary>
|
||||
public string FlowCode { get; set; }
|
||||
|
||||
|
||||
public string FlowTypeCode { get; set; }
|
||||
public string FlowTypeName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ namespace MDM.Services.IProcessService
|
||||
|
||||
List<ProcessOperationFlow> GetOperationFlowList(string routing_code, string operation_code);
|
||||
int OperationAddDatacollection(ProcessOperationCollectParameterDto parm);
|
||||
int OperationUpdateFlow(ProcessOperationCollectParameter model);
|
||||
int OperationUpdateFlow(ProcessOperationFlowDto2 model);
|
||||
|
||||
|
||||
|
||||
|
||||
@ -253,11 +253,21 @@ namespace MDM.Services.Process
|
||||
return response;
|
||||
}
|
||||
|
||||
public int OperationUpdateFlow(ProcessOperationCollectParameter model)
|
||||
public int OperationUpdateFlow(ProcessOperationFlowDto2 model)
|
||||
{
|
||||
|
||||
model.UpdatedTime = DateTime.Now;
|
||||
var response = Context.Updateable<ProcessOperationCollectParameter>(model).ExecuteCommand();
|
||||
|
||||
var response = Context.Updateable<ProcessOperationFlow>()
|
||||
.SetColumns(it=>new ProcessOperationFlow
|
||||
{
|
||||
|
||||
FlowCode = model.FlowCode,
|
||||
FlowTypeCode=model.FlowTypeCode,
|
||||
FlowTypeName=model.FlowTypeName,
|
||||
UpdatedTime = DateTime.Now,
|
||||
|
||||
} )
|
||||
.Where(it => it.id == model.id)
|
||||
.ExecuteCommand();
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user