username@email.com
9 小时以前 c50c286df3108ce4a48674f15f29954fb3e4cb7f
CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs
@@ -164,9 +164,28 @@
        /// <param name="pa"></param>
        /// <returns></returns>
        public IEnumerable<CoreDeliverOrder> SelectModelPage(Pagination pa, Guid FirmId, int? DriverId, string shipAddress,
            string BuyerName, string createTimeStart, string createTimeEnd)
            string BuyerName, string createTimeStart, string createTimeEnd, string OrderState)
        {
            string Condition = " and b.FirmId ='" + FirmId + "' and a.OrderState = 0 ";
            string Condition = " and b.FirmId ='" + FirmId + "' and b.DeliverState != 2 ";
            if (!string.IsNullOrEmpty(OrderState))
            {
                if (OrderState != "4")
                {
                    Condition += " and  a.OrderState = " + OrderState + " ";
                }
                else
                {
                    Condition += " and a.OrderState  in( 0,1 ) ";
                }
            }
            else
            {
                Condition += " and a.OrderState  in( 0,1,2 ) ";
            }
            if (DriverId.HasValue)
            {
               var oA_Staff  = staffBLL.GetModelByKeyid(DriverId);