fix:修复当没有需要展示的三方单号需要显示”--”,三方单号为null时被过滤
This commit is contained in:
parent
bb96f96695
commit
3b37d73df8
@ -449,7 +449,7 @@ public class OrderRepository : BasicRepository<OrderEntity>, IOrderRepository, I
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="orderPlatformNumberEntities"></param>
|
/// <param name="orderPlatformNumberEntities"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
private static string BuildThirdPartyOrderNumber(List<OrderPlatformNumberEntity> orderPlatformNumberEntities)
|
public string BuildThirdPartyOrderNumber(List<OrderPlatformNumberEntity> orderPlatformNumberEntities)
|
||||||
{
|
{
|
||||||
if (orderPlatformNumberEntities.Count == 0) return GlobalConst.EmptyString;
|
if (orderPlatformNumberEntities.Count == 0) return GlobalConst.EmptyString;
|
||||||
const string separator = "、";
|
const string separator = "、";
|
||||||
@ -457,6 +457,7 @@ public class OrderRepository : BasicRepository<OrderEntity>, IOrderRepository, I
|
|||||||
.Where(x => !string.IsNullOrWhiteSpace(x.OrderNumber))
|
.Where(x => !string.IsNullOrWhiteSpace(x.OrderNumber))
|
||||||
.Select(x => $"{x.OrderNumber}({x.Platform})")
|
.Select(x => $"{x.OrderNumber}({x.Platform})")
|
||||||
.ToList();
|
.ToList();
|
||||||
|
if (thirdPartyOrderNumbers.Count == 0) return GlobalConst.EmptyString;
|
||||||
return string.Join(separator, thirdPartyOrderNumbers);
|
return string.Join(separator, thirdPartyOrderNumbers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user