/// <summary> /// OEM修改提交状态 /// </summary> public static void UpdateIntegralConsumption(Guid id, ChinaPay.B3B.Common.Enums.OEMCommodityState State) { using (var cmd = Factory.CreateCommand()) { var reposity = Factory.CreateIntegralReposity(cmd); reposity.UpdateIntegralConsumption(id, State); } }
/// <summary> /// OEM修改提交状态 /// </summary> /// <returns></returns> public void UpdateIntegralConsumption(Guid id, ChinaPay.B3B.Common.Enums.OEMCommodityState State) { string sql = @"UPDATE [dbo].[T_IntegralConsumption] SET OEMCommodityState=@OEMCommodityState WHERE ID = @ID"; AddParameter("OEMCommodityState", (byte)State); AddParameter("ID", id); ExecuteNonQuery(sql); }