/// <summary> /// 增加一条数据 /// </summary> /// <param name="model"></param> /// <param name="isXiaoFei">是否为消费积分</param> /// <returns></returns> public int Add(WeiXinPF.Model.wx_ucard_users_consumeinfo model, bool isXiaoFei) { return(dal.Add(model, isXiaoFei)); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(WeiXinPF.Model.wx_ucard_users_consumeinfo model) { return(dal.Update(model)); }
/// <summary> /// 更新一条记录,并且将用户的总积分随之变动 /// </summary> /// <param name="model"></param> /// <param name="oldMoney">活动原来的钱(需要减去)</param> /// <param name="oldScore">活动原来的积分(需要减去)</param> /// <returns></returns> public bool UpdateInfoAndUserTT(WeiXinPF.Model.wx_ucard_users_consumeinfo model, decimal oldMoney, int oldScore) { return(dal.UpdateInfoAndUserTT(model, oldMoney, oldScore)); }