1
This commit is contained in:
parent
6dda9dc592
commit
646ee1e7ea
@ -172,13 +172,18 @@ namespace MDM.Controllers.Process
|
||||
}
|
||||
|
||||
//TODO 工序删除流程
|
||||
[HttpDelete("operation_delete_flow")]
|
||||
[HttpDelete("operation_delete_flow/{operation_flow_id}")]
|
||||
public IActionResult OperationDeleteFlow(int operation_flow_id)
|
||||
{
|
||||
var response = _ProcessOperationService.OperationDeleteFlow(operation_flow_id);
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
//TODO 新增工艺参数数采
|
||||
//[HttpPost("operation_add_datacollection")]
|
||||
//public IActionResult Operation
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -18,10 +18,13 @@ namespace MDM.Models.Process.Dto
|
||||
public string FkOperationCode { get; set; }
|
||||
|
||||
public string FlowCode { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public string FlowName { get; set; }
|
||||
|
||||
|
||||
public int FlowId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,6 +25,14 @@ namespace MDM.Model.Process
|
||||
[SugarColumn(ColumnName = "fk_operation_code")]
|
||||
public string FkOperationCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 所属流程code
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "fk_flow_code")]
|
||||
public string FkFlowCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 参数名称,如:温度、压力、时间
|
||||
/// </summary>
|
||||
|
||||
@ -15,8 +15,7 @@ namespace MDM.Models.Process
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
|
||||
public int id { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnName = "fk_routing_code")]
|
||||
public string FkRoutingCode { get; set; }
|
||||
|
||||
@ -38,6 +37,8 @@ namespace MDM.Models.Process
|
||||
public string FlowName { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnName = "flow_id") ]
|
||||
public int FlowId { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnName = "created_time")]
|
||||
|
||||
@ -248,6 +248,7 @@ namespace MDM.Services.Process
|
||||
public int OperationAddFlow(ProcessOperationFlowDto parm)
|
||||
{
|
||||
var model = parm.Adapt<ProcessOperationFlowDto, ProcessOperationFlow>();
|
||||
|
||||
model.CreatedTime = DateTime.Now;
|
||||
var response = Context.Insertable<ProcessOperationFlow>(model).ExecuteCommand();
|
||||
return response;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user