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