Exemplo 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;
            }
        }
Exemplo n.º 2
0
 public bool UpdateOrderPay(OrderPayModel orderPayModel)
 {
     return orderDataAccess.UpdateOrderPay(orderPayModel);
 }
Exemplo 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;
            }
        }
Exemplo n.º 4
0
 public bool InsertOrderPay(OrderPayModel orderPayModel)
 {
     return orderDataAccess.InsertOrderPay(orderPayModel);
 }