/// <summary> /// 添加奖品 /// </summary> /// <param name="entity">奖品信息</param> /// <returns></returns> public static int InsertGifts(Gift entity) { DataCommand cmd = DataCommandManager.GetDataCommand("InsertGifts"); cmd.SetParameterValue<Gift>(entity); cmd.ExecuteNonQuery(); return Convert.ToInt32(cmd.GetParameterValue("@SysNo")); }
/// <summary> /// 更新奖品状态 /// </summary> /// <param name="entity">奖品信息</param> public static void UpdateGiftsStatus(Gift entity) { DataCommand cmd = DataCommandManager.GetDataCommand("UpdateGiftsStatus"); cmd.SetParameterValue<Gift>(entity); cmd.ExecuteNonQuery(); }