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