/// <summary> /// 更新卖家预警评价配置 /// </summary> /// <param name="obj"></param> /// <returns></returns> public bool UpdatePreReminderRateConfig(ReminderRateConfig obj) { try { SqlParameter[] param = new SqlParameter[] { new SqlParameter("@sellerNick", obj.SellerNick), new SqlParameter("@preReminderPhone", obj.PreReminderPhone), new SqlParameter("@preReminderMsgContent", obj.PreReminderMsgContent) }; DataBase db = new DataBase(); db.RunProc("proc_UpdatePreReminderRateConfig", param); return(true); } catch (Exception ex) { ExceptionReporter.WriteLog(ex, ExceptionPostion.TBApply_Data); return(false); } }
/// <summary> /// 添加卖家报警策略配置 /// </summary> /// <param name="obj"></param> /// <returns></returns> public bool AddRateReminderWithSeller(ReminderRateConfig obj) { try { SqlParameter[] param = new SqlParameter[] { new SqlParameter("@sellerNick", obj.SellerNick), new SqlParameter("@reminderPhone", obj.ReminderPhone), new SqlParameter("@reminderMsgContent", obj.ReminderMsgContent), new SqlParameter("@isSendMsgToBuyer", obj.IsSendMsgToBuyer), new SqlParameter("@buyerMsgContent", obj.BuyerMsgContent) }; DataBase db = new DataBase(); db.RunProc("proc_ReminderRateConfig", param); return(true); } catch (Exception ex) { ExceptionReporter.WriteLog(ex, ExceptionPostion.TBApply_Data); return(false); } }