Esempio n. 1
0
        public bool UpdateOrderPay(OrderPayModel orderPayModel)
        {
            using (var cmd = DataCommandManager.GetDataCommand("UpdateOrderPay"))
            {
                cmd.SetParameterValue("@OrderId", orderPayModel.OrdeId);

                //cmd.SetParameterValue("@PayId", orderPayModel.PayId);
                cmd.SetParameterValue("@Status", orderPayModel.Status);

                return cmd.ExecuteNonQuery() > 0;
            }
        }
Esempio n. 2
0
 public bool UpdateOrderPay(OrderPayModel orderPayModel)
 {
     return orderDataAccess.UpdateOrderPay(orderPayModel);
 }
Esempio n. 3
0
        public bool InsertOrderPay(OrderPayModel orderPayModel)
        {
            using (var cmd = DataCommandManager.GetDataCommand("InsertOrderPay"))
            {
                cmd.SetParameterValue("@PayId", orderPayModel.PayId);
                cmd.SetParameterValue("@OrderId", orderPayModel.OrdeId);
                cmd.SetParameterValue("@UserId", orderPayModel.UserId);
                cmd.SetParameterValue("@Status", orderPayModel.Status);
                cmd.SetParameterValue("@CreateTime", orderPayModel.CreateTime);

                return cmd.ExecuteNonQuery()>0;
            }
        }
Esempio n. 4
0
 public bool InsertOrderPay(OrderPayModel orderPayModel)
 {
     return orderDataAccess.InsertOrderPay(orderPayModel);
 }