Ejemplo n.º 1
0
        internal static object SetOrderInfo(Base.APIRequest request)
        {
            var    para = request.GetParameters <SetOrderInfoReqPara>();
            string msg;

            if (!para.IsValid(out msg))
            {
                throw new APIException(msg)
                      {
                          ErrorCode = 350
                      };
            }
            if (string.IsNullOrEmpty(para.storeId))
            {
                UnitService unitServer = new UnitService(request.GetUserInfo());
                para.storeId = unitServer.GetUnitByUnitTypeForWX("OnlineShopping", null).Id; //获取在线商城的门店标识
            }
            #region BLL用到common的参数,所以要赋一下值
            para.customerId = request.common.customerId;
            para.userId     = request.common.userId;
            para.openId     = request.common.openId;
            #endregion
            var bll     = new T_InoutBLL(request.GetUserInfo());
            var orderID = bll.SetOrderInfo(para);
            return(new { orderId = orderID });
        }
Ejemplo n.º 2
0
        internal static object GetPanicbuyingItemDetail(Base.APIRequest request)
        {
            var    para = request.GetParameters <GetPanicbuyingItemDetailReqPara>();
            string msg;

            if (!para.IsValid(out msg))
            {
                throw new Exception("参数不完整:" + msg);
            }
            var bll = new vwItemPEventDetailBLL(request.GetUserInfo());

            return(bll.GetDetailByParameters(para, request.common.userId));
        }