Browse Source

1

AddValidOverTime
shanji 2 years ago
parent
commit
4b98b0010a
  1. 2
      BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs

2
BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs

@ -549,8 +549,6 @@ namespace BBWY.Server.Business
*/ */
var loggerName = $"批量采购-{request.ShopName}"; var loggerName = $"批量采购-{request.ShopName}";
nLogManager.GetLogger(loggerName).Info(JsonConvert.SerializeObject(request)); nLogManager.GetLogger(loggerName).Info(JsonConvert.SerializeObject(request));
if (request.IntoStoreType == null)
request.IntoStoreType = Enums.IntoStoreType.;
if (request.CargoParamGroupList == null || request.CargoParamGroupList.Count() == 0 || if (request.CargoParamGroupList == null || request.CargoParamGroupList.Count() == 0 ||
request.CargoParamGroupList.Any(g => g.CargoParamList == null || g.CargoParamList.Count() == 0 || string.IsNullOrEmpty(g.PurchaserId))) request.CargoParamGroupList.Any(g => g.CargoParamList == null || g.CargoParamList.Count() == 0 || string.IsNullOrEmpty(g.PurchaserId)))
throw new BusinessException("缺少商品参数"); throw new BusinessException("缺少商品参数");

Loading…
Cancel
Save