コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
ファイル: IntegralResposity.cs プロジェクト: 842549829/Pool
        /// <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);
        }