Exemple #1
0
        public IHttpActionResult GetItem(string orderno, [UserId] int uid, [UserProfile] UserProfile userProfile)
        {
            if (String.IsNullOrWhiteSpace(orderno))
            {
                return(BadRequest("orderno为空"));
            }

            var result = CheckRole4Store(userProfile, null);

            if (!result.Result)
            {
                return(BadRequest(result.Error));
            }

            var dto = _salesOrderService.GetItem(orderno);

            if (userProfile.StoreIds.Contains(dto.StoreId))
            {
                return(BadRequest("请先维护您的门店信息后,再查询"));
            }

            return(RetrunHttpActionResult(dto));
        }