合并最新

This commit is contained in:
2022-12-20 09:32:32 +08:00
parent 844e9f1488
commit 1abdaa9476
654 changed files with 73563 additions and 9746 deletions
+13
View File
@@ -45,6 +45,19 @@ namespace BLL
return (unit != null);
}
public static Model.Base_Unit getUnitByCollCropCodeUnitName(string CollCropCode, string unitName)
{
var getUnit = Funs.DB.Base_Unit.FirstOrDefault(e => e.CollCropCode == CollCropCode);
if (getUnit != null)
{
return getUnit;
}
else
{
return Funs.DB.Base_Unit.FirstOrDefault(e => e.UnitName == unitName);
}
}
#region
/// <summary>
/// 添加单位信息