diff --git a/SGGL/BLL/Common/CommonService.cs b/SGGL/BLL/Common/CommonService.cs index 55762fb7..69274ecb 100644 --- a/SGGL/BLL/Common/CommonService.cs +++ b/SGGL/BLL/Common/CommonService.cs @@ -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 /// 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; } + /// + /// 本单位信息 + /// + /// public static Model.Base_Unit GetIsThisUnit() { return (Funs.DB.Base_Unit.FirstOrDefault(e => e.UnitId == Const.UnitId_XJYJ)); //本单位 diff --git a/SGGL/WebAPI/ErrLog.txt b/SGGL/WebAPI/ErrLog.txt deleted file mode 100644 index 5f282702..00000000 --- a/SGGL/WebAPI/ErrLog.txt +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file