/// <summary> /// 用户获取优惠券 /// </summary> /// <param name="d"></param> /// <returns></returns> public int AddDidAndUser(DisCountAndUser d) { d.StartTime = DateTime.Now; d.EndTime = d.StartTime.AddDays(3); string sql = $"insert into DisCountAndUser values({d.UserIdOut},{d.DisCountId},'{d.StartTime}','{d.EndTime}')"; return(DapperHelper.Cud(sql)); }
public int AddDidAndUser([FromForm] DisCountAndUser d) { return(BLLDisCount.AddDidAndUser(d)); }
/// <summary> /// 用户获取优惠券 /// </summary> /// <param name="d"></param> /// <returns></returns> public int AddDidAndUser(DisCountAndUser d) { return(dal.AddDidAndUser(d)); }