fixed 修改细节
This commit is contained in:
parent
e35eb71e46
commit
ece0023cdc
@ -133,6 +133,15 @@ namespace ARW.Model.Dto.Business.OrderManage.Orders
|
|||||||
public int? OrderStatus { get; set; }
|
public int? OrderStatus { get; set; }
|
||||||
|
|
||||||
public string ids { get; set; }
|
public string ids { get; set; }
|
||||||
|
|
||||||
|
public DateTime BeginTime { get; set; }
|
||||||
|
|
||||||
|
public DateTime EndTime { get; set; }
|
||||||
|
|
||||||
|
public string CustomerNickNme { get; set; }
|
||||||
|
|
||||||
|
public string CustomerPhome { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -84,6 +84,11 @@ namespace ARW.Model.Vo.Api.Carts
|
|||||||
[JsonConverter(typeof(ValueToStringConverter))]
|
[JsonConverter(typeof(ValueToStringConverter))]
|
||||||
public long StoreId { get; set; }
|
public long StoreId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 店铺名称
|
||||||
|
/// </summary>
|
||||||
|
public string StoreName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 商品Id
|
/// 商品Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -51,6 +51,11 @@ namespace ARW.Model.Vo.Api.Custom.CustomerAddresses
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsDefault { get; set; }
|
public bool IsDefault { get; set; }
|
||||||
|
|
||||||
|
public string ProvinceName { get; set; }
|
||||||
|
public string CityName { get; set; }
|
||||||
|
public string DistrictName { get; set; }
|
||||||
|
public string DetaiaddresslAddress { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -219,6 +219,12 @@ namespace ARW.Model.Vo.Api.GoodsManager.Goodss
|
|||||||
public string Desc { get; set; }
|
public string Desc { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 卖点
|
||||||
|
/// </summary>
|
||||||
|
public string GoodsSellingPoint { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 商品规格列表
|
/// 商品规格列表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -29,6 +29,7 @@ using Senparc.Weixin.MP.AdvancedAPIs.MerChant;
|
|||||||
using Infrastructure;
|
using Infrastructure;
|
||||||
using ARW.Model.Models.Business.Marketing.CouponManage.CustomerCoupons;
|
using ARW.Model.Models.Business.Marketing.CouponManage.CustomerCoupons;
|
||||||
using ARW.Model.Models.Business.Marketing.CouponManage.Coupons;
|
using ARW.Model.Models.Business.Marketing.CouponManage.Coupons;
|
||||||
|
using Senparc.Weixin.WxOpen.AdvancedAPIs.WxApp.WxAppJson;
|
||||||
|
|
||||||
namespace ARW.Service.Api.BusinessService.Carts
|
namespace ARW.Service.Api.BusinessService.Carts
|
||||||
{
|
{
|
||||||
@ -242,6 +243,8 @@ namespace ARW.Service.Api.BusinessService.Carts
|
|||||||
goodsPromotion.CartId = _item.CartId;
|
goodsPromotion.CartId = _item.CartId;
|
||||||
goodsPromotion.IsSelected = _item.IsSelected;
|
goodsPromotion.IsSelected = _item.IsSelected;
|
||||||
goodsPromotion.StoreId = goods.ShopGuid;
|
goodsPromotion.StoreId = goods.ShopGuid;
|
||||||
|
var shop = await _ShopRepository.GetFirstAsync(s => s.ShopGuid == goods.ShopGuid);
|
||||||
|
goodsPromotion.StoreName = shop.ShopName;
|
||||||
goodsPromotion.SpuId = goods.GoodsGuid;
|
goodsPromotion.SpuId = goods.GoodsGuid;
|
||||||
goodsPromotion.SkuId = _item.GoodsSkuId;
|
goodsPromotion.SkuId = _item.GoodsSkuId;
|
||||||
goodsPromotion.Thumb = goods.GoodsPicture.Split(',').First();
|
goodsPromotion.Thumb = goods.GoodsPicture.Split(',').First();
|
||||||
@ -254,29 +257,34 @@ namespace ARW.Service.Api.BusinessService.Carts
|
|||||||
if (_item.GoodsSkuId != 0)
|
if (_item.GoodsSkuId != 0)
|
||||||
{
|
{
|
||||||
var sku = await _GoodsSkuRepository.GetFirstAsync(s => s.GoodsSkuId == _item.GoodsSkuId);
|
var sku = await _GoodsSkuRepository.GetFirstAsync(s => s.GoodsSkuId == _item.GoodsSkuId);
|
||||||
if (sku == null) throw new CustomException("所选规格不存在,请重新挑选");
|
if (sku != null)
|
||||||
goodsPromotion.Price = sku.GoodsSkuPrice;
|
|
||||||
goodsPromotion.OriginPrice = sku.GoodsSkuLinePrice;
|
|
||||||
|
|
||||||
// 查找当前规格的详细信息
|
|
||||||
var specInfoList = new List<SpecInfo>();
|
|
||||||
|
|
||||||
if (sku.SpecValueId != 0)
|
|
||||||
{
|
{
|
||||||
var specInfo = await GetSpecInfo(sku.SpecValueId);
|
goodsPromotion.Price = sku.GoodsSkuPrice;
|
||||||
specInfoList.Add(specInfo);
|
goodsPromotion.OriginPrice = sku.GoodsSkuLinePrice;
|
||||||
if (sku.SpecSecondValueId != 0)
|
if (!string.IsNullOrEmpty(sku.GoodsSkuImg))
|
||||||
|
goodsPromotion.Thumb = sku.GoodsSkuImg;
|
||||||
|
|
||||||
|
// 查找当前规格的详细信息
|
||||||
|
var specInfoList = new List<SpecInfo>();
|
||||||
|
|
||||||
|
if (sku.SpecValueId != 0)
|
||||||
{
|
{
|
||||||
var specInfo2 = await GetSpecInfo(sku.SpecSecondValueId);
|
var specInfo = await GetSpecInfo(sku.SpecValueId);
|
||||||
specInfoList.Add(specInfo2);
|
specInfoList.Add(specInfo);
|
||||||
}
|
if (sku.SpecSecondValueId != 0)
|
||||||
if (sku.SpecThirdValueId != 0)
|
{
|
||||||
{
|
var specInfo2 = await GetSpecInfo(sku.SpecSecondValueId);
|
||||||
var specInfo3 = await GetSpecInfo(sku.SpecThirdValueId);
|
specInfoList.Add(specInfo2);
|
||||||
specInfoList.Add(specInfo3);
|
}
|
||||||
|
if (sku.SpecThirdValueId != 0)
|
||||||
|
{
|
||||||
|
var specInfo3 = await GetSpecInfo(sku.SpecThirdValueId);
|
||||||
|
specInfoList.Add(specInfo3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
goodsPromotion.SpecInfo = specInfoList;
|
||||||
}
|
}
|
||||||
goodsPromotion.SpecInfo = specInfoList;
|
//throw new CustomException("所选规格不存在,请重新挑选");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -66,7 +66,11 @@ namespace ARW.Service.Api.BusinessService.Custom.CustomerAddresses
|
|||||||
CustomerAddressGuid = s.CustomerAddressGuid,
|
CustomerAddressGuid = s.CustomerAddressGuid,
|
||||||
Name = s.CustomerAddressName,
|
Name = s.CustomerAddressName,
|
||||||
PhoneNumber = s.CustomerAddressPhone,
|
PhoneNumber = s.CustomerAddressPhone,
|
||||||
|
ProvinceName = c.RegionName,
|
||||||
|
CityName = d.RegionName,
|
||||||
|
DistrictName = f.RegionName,
|
||||||
Address = c.RegionName + d.RegionName + f.RegionName + s.CustomerAddressDetailed,
|
Address = c.RegionName + d.RegionName + f.RegionName + s.CustomerAddressDetailed,
|
||||||
|
DetaiaddresslAddress = s.CustomerAddressDetailed,
|
||||||
IsDefault = s.CustomerAddressGuid == g.CustomerDefaultAddressGuid
|
IsDefault = s.CustomerAddressGuid == g.CustomerDefaultAddressGuid
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -203,6 +203,7 @@ namespace ARW.Service.Api.BusinessService.GoodsManager.Goodss
|
|||||||
SoldNum = s.GoodsSalesInitial + s.GoodsSalesActual,
|
SoldNum = s.GoodsSalesInitial + s.GoodsSalesActual,
|
||||||
Desc = s.GoodsDetails,
|
Desc = s.GoodsDetails,
|
||||||
IsPutOnSale = s.GoodsShelfStatus,
|
IsPutOnSale = s.GoodsShelfStatus,
|
||||||
|
GoodsSellingPoint = s.GoodsSellingPoint
|
||||||
}).Take(1);
|
}).Take(1);
|
||||||
|
|
||||||
|
|
||||||
|
@ -77,10 +77,14 @@ namespace ARW.Service.Business.BusinessService.OrderManage.Orders
|
|||||||
predicate = predicate.AndIF(parm.DeliveryStatus != null, s => s.DeliveryStatus == parm.DeliveryStatus);
|
predicate = predicate.AndIF(parm.DeliveryStatus != null, s => s.DeliveryStatus == parm.DeliveryStatus);
|
||||||
predicate = predicate.AndIF(parm.ReceiptStatus != null, s => s.ReceiptStatus == parm.ReceiptStatus);
|
predicate = predicate.AndIF(parm.ReceiptStatus != null, s => s.ReceiptStatus == parm.ReceiptStatus);
|
||||||
predicate = predicate.AndIF(parm.OrderStatus != null, s => s.OrderStatus == parm.OrderStatus);
|
predicate = predicate.AndIF(parm.OrderStatus != null, s => s.OrderStatus == parm.OrderStatus);
|
||||||
|
predicate = predicate.AndIF(parm.BeginTime != DateTime.MinValue, s => s.Create_time >= parm.BeginTime);
|
||||||
|
predicate = predicate.AndIF(parm.EndTime != DateTime.MinValue, s => s.Create_time <= parm.EndTime);
|
||||||
var query = _OrderRepository
|
var query = _OrderRepository
|
||||||
.Queryable()
|
.Queryable()
|
||||||
.LeftJoin<Customer>((s, c) => s.CustomerGuid == c.CustomerGuid)
|
.LeftJoin<Customer>((s, c) => s.CustomerGuid == c.CustomerGuid)
|
||||||
.Where(predicate.ToExpression())
|
.Where(predicate.ToExpression())
|
||||||
|
.WhereIF(!string.IsNullOrEmpty(parm.CustomerNickNme), (s, c) => c.CustomerNickname.Contains(parm.CustomerNickNme) )
|
||||||
|
.WhereIF(!string.IsNullOrEmpty(parm.CustomerPhome), (s, c) => c.CustomerMobilePhoneNumber.Contains(parm.CustomerPhome))
|
||||||
.OrderBy(s => s.Create_time, OrderByType.Desc)
|
.OrderBy(s => s.Create_time, OrderByType.Desc)
|
||||||
.Select((s, c) => new OrderVo
|
.Select((s, c) => new OrderVo
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user