This commit is contained in:
gcw_MV9p2JJN 2025-12-31 15:57:20 +08:00
parent 06dd0ce029
commit 7616ce3912
4 changed files with 9 additions and 9 deletions

View File

@ -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 工序绑定流程 废弃

View File

@ -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")]

View File

@ -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);

View File

@ -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;
}