|
|
@ -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"); |
|
|
|