This commit is contained in:
2026-06-17 09:57:37 +08:00
parent 5279430ab7
commit 797519af99
2 changed files with 6 additions and 22 deletions
+6 -21
View File
@@ -362,7 +362,7 @@ namespace BLL
public static bool IsThisUnitLeaderOfficeOrManage(string userId)
{
bool result = false;
if (userId == Const.sysglyId || userId == Const.hfnbdId )
if (userId == Const.sysglyId || userId == Const.hfnbdId)
{
result = true;
}
@@ -394,7 +394,7 @@ namespace BLL
var getUser = db.Sys_User.FirstOrDefault(x => x.UserId == userId);
if (getUser != null)
{
if (userId == Const.sysglyId || userId == Const.hfnbdId )
if (userId == Const.sysglyId || userId == Const.hfnbdId)
{
isHave = true;
}
@@ -612,24 +612,6 @@ namespace BLL
/// <returns></returns>
public static decimal GetLikeRate(string oldStr, string newStr)
{
//decimal Kq = 2;
//decimal Kr = 1;
//decimal Ks = 1;
//char[] ss = oldStr.ToCharArray();
//char[] st = newStr.ToCharArray();
////获取交集数量
//int q = 0;
//foreach (var s in ss)
//{
// if (st.Contains(s))
// {
// q++;
// }
//}
////int q = ss.Intersect(st).Count();
//int s1 = ss.Length - q;
//int r = st.Length - q;
//return Kq * q / (Kq * q + Kr * r + Ks * s1);
if (!string.IsNullOrEmpty(oldStr) && !string.IsNullOrEmpty(newStr))
{
char[] ss = oldStr.ToCharArray();
@@ -673,10 +655,13 @@ namespace BLL
public static string GetThisUnitId()
{
string unitId = Const.UnitId_XJYJ;
return unitId;
}
/// <summary>
/// 本单位信息
/// </summary>
/// <returns></returns>
public static Model.Base_Unit GetIsThisUnit()
{
return (Funs.DB.Base_Unit.FirstOrDefault(e => e.UnitId == Const.UnitId_XJYJ)); //本单位
-1
View File
@@ -1 +0,0 @@