1代码合并

This commit is contained in:
2025-02-05 17:57:14 +08:00
parent 4bbce72980
commit 5712066e0a
57 changed files with 334 additions and 3709 deletions
-26
View File
@@ -927,31 +927,5 @@ namespace BLL
return q;
}
}
public static string getUnitNamesUnitIdsForApi(object unitIds)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
string unitName = string.Empty;
if (unitIds != null)
{
string[] ids = unitIds.ToString().Split(',');
foreach (string id in ids)
{
var q = db.Base_Unit.FirstOrDefault(x => x.UnitId == id);
if (q != null)
{
unitName += q.UnitName + ",";
}
}
if (unitName != string.Empty)
{
unitName = unitName.Substring(0, unitName.Length - 1); ;
}
}
return unitName;
}
}
}
}