Browse Source

重复验证

AddValidOverTime
shanji 2 years ago
parent
commit
25716ebd7a
  1. 7
      BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs

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

@ -570,6 +570,13 @@ namespace BBWY.Server.Business
}
}
{
var groups = request.CargoParamGroupList.GroupBy(g => g.PurchaserId);
if (groups.Any(g => g.Count() > 1))
throw new BusinessException("CargoParamGroupList存在重复的商家");
}
var shop = freeSqlMultiDBManager.MDSfsql.Select<Shops>().Where(s => s.ShopId == request.ShopId.ToString()).ToOne();
if (shop == null)
throw new BusinessException("无效的店铺Id");

Loading…
Cancel
Save