Ejemplo n.º 1
0
        public Dto.OrderOuputDto OrderAssign(Dto.UserAssignInputDto input)
        {
            var orderInfo = _orderRepository.QueryByOrderId(input.Id);

            orderInfo.ProsonId   = input.ProsonId;
            orderInfo.PersonName = input.PersonName;
            orderInfo.PhoneNo    = input.PhoneNo;
            orderInfo.Status     = 1;
            return(_orderRepository.OrderAssign(orderInfo).MapTo <Dto.OrderOuputDto>());
        }
Ejemplo n.º 2
0
        void IOrderCommentAppService.AddComment(OrderCommentInput comment)
        {
            _orderCommentRepository.AddComment(comment.MapTo <Entitys.OrderComment>());
            var item = _orderRepository.QueryByOrderId(comment.F_OrderId);

            if (null != item)
            {
                item.Status = 3;
                _orderRepository.OrderAssign(item);
            }
        }