/// <summary> /// 判断该User是否已经关注了TargetUser /// </summary> /// <param name="UserSysNo"></param> /// <param name="TagetSysNo"></param> /// <returns></returns> public bool IsFans(int UserSysNo, int TagetSysNo) { bool ret = false; using (SQLData data = new SQLData()) { StringBuilder builder = new StringBuilder(); builder.Append("select SysNo from BLG_Attention where CustomerSysNo=").Append(UserSysNo).Append(" and TargetSysNo=").Append(TagetSysNo).Append(" and DR=").Append((int)AppEnum.State.normal); try { if (data.CmdtoHasRow(builder.ToString())) { ret = true; } } catch (Exception exception) { //throw exception; } } return(ret); }