105040 增加带前缀查询
This commit is contained in:
parent
b3c12526f7
commit
92c920b559
|
@ -13,10 +13,10 @@ namespace Sinvo.EplanHpD.Plugin.WPFUI.Utils
|
|||
/// <summary>
|
||||
/// 线材端子对照表
|
||||
/// </summary>
|
||||
public static IEnumerable<ExcelModel> GetWireTerminalMappingTable(string wireModel)
|
||||
public static IEnumerable<ExcelModel> GetWireTerminalMappingTable(string wireModel, string prefix = "")
|
||||
{
|
||||
CheckAndGetCache();
|
||||
return _terminalMappingCache.Where(item => item.WireModelSpecification == wireModel);
|
||||
return _terminalMappingCache.Where(item => item.WireModelSpecification == wireModel && (item.Prefix == prefix || prefix == ""));
|
||||
}
|
||||
|
||||
private static void CheckAndGetCache()
|
||||
|
|
Loading…
Reference in New Issue