/// <summary> /// 更新用户点评信息,返回1成功,其它失败 /// </summary> /// <param name="info"></param> /// <returns></returns> public int UpdateDianPing(EyouSoft.Model.YlStructure.MWzDianPingInfo info) { if (info == null || string.IsNullOrEmpty(info.DianPingId)) { return(0); } //info.IsShenHe = false; int dalRetCode = dal.UpdateDianPing(info); return(dalRetCode); }
/// <summary> /// 写入用户点评信息,返回1成功,其它失败 /// </summary> /// <param name="info">实体</param> /// <returns></returns> public int InsertDianPing(EyouSoft.Model.YlStructure.MWzDianPingInfo info) { if (info == null || string.IsNullOrEmpty(info.CompanyId) || string.IsNullOrEmpty(info.OperatorId)) { return(0); } info.DianPingId = Guid.NewGuid().ToString(); info.IssueTime = DateTime.Now; //info.IsShenHe = false; int dalRetCode = dal.InsertDianPing(info); return(dalRetCode); }