1
This commit is contained in:
parent
06dd0ce029
commit
7616ce3912
@ -148,9 +148,9 @@ namespace MDM.Controllers.Process
|
||||
//TODO 获取并筛选流程
|
||||
|
||||
[HttpGet("get_flow")]
|
||||
public IActionResult GetFlow(string flow_code)
|
||||
public IActionResult GetFlow(string flow_type_code)
|
||||
{
|
||||
var response = _ProcessOperationService.GetFlow(flow_code);
|
||||
var response = _ProcessOperationService.GetFlow(flow_type_code);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
//TODO 工序绑定流程 废弃
|
||||
|
||||
@ -17,12 +17,12 @@ namespace MDM.Models.Process
|
||||
public int id { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnName = "flow_code")]
|
||||
public string FlowCode { get; set; }
|
||||
[SugarColumn(ColumnName = "flow_type_code")]
|
||||
public string FlowTypeCode { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnName = "flow_name")]
|
||||
public string FlowName { get; set; }
|
||||
[SugarColumn(ColumnName = "flow_type_name")]
|
||||
public string FlowTypeName { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnName = "created_time")]
|
||||
|
||||
@ -29,7 +29,7 @@ namespace MDM.Services.IProcessService
|
||||
|
||||
List<ProcessOprerationTransitionDict> QueryProcessOprerationTransitionDict(ProcessOprerationTransitionDictQueryDto parm);
|
||||
|
||||
List<ProcessFlowList> GetFlow(string flow_code);
|
||||
List<ProcessFlowList> GetFlow(string flow_type_code);
|
||||
|
||||
int BindFlow(ProcessOperationBindFlowDto parm);
|
||||
|
||||
|
||||
@ -202,10 +202,10 @@ namespace MDM.Services.Process
|
||||
return response;
|
||||
}
|
||||
|
||||
public List<ProcessFlowList> GetFlow(string flow_code)
|
||||
public List<ProcessFlowList> GetFlow(string flow_type_code)
|
||||
{
|
||||
var response = Context.Queryable<ProcessFlowList>()
|
||||
.WhereIF(!string.IsNullOrEmpty(flow_code), m => m.FlowCode.Contains(flow_code))
|
||||
.WhereIF(!string.IsNullOrEmpty(flow_type_code), m => m.FlowTypeCode.Contains(flow_type_code))
|
||||
.ToList();
|
||||
return response;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user