|
|
@@ -2567,9 +2567,9 @@ public class KwcContractTradeService {
|
|
|
contractTradeOrderDto.getEntId(), contractTradeOrderDto.getEntType());
|
|
|
} else if (Objects.equals(LoginUserHolder.getEntTypes(), CooperateTypeEnum.PURCHASER.getCode())) {
|
|
|
// 采购商登录时,企业ID从商品表获取,忽略前端传入的企业ID
|
|
|
- if (Objects.isNull(contractTradeOrderDto.getGoodsId())) {
|
|
|
- throw new BusinessException("商品id不能为空!");
|
|
|
- }
|
|
|
+// if (Objects.isNull(contractTradeOrderDto.getGoodsId())) {
|
|
|
+// throw new BusinessException("商品id不能为空!");
|
|
|
+// }
|
|
|
KwpGoods kwpGoods = goodsInfoService.getGoodsById(contractTradeOrderDto.getGoodsId());
|
|
|
if (Objects.isNull(kwpGoods) || Objects.isNull(kwpGoods.getEntId())) {
|
|
|
throw new BusinessException("商品不存在或商品企业信息缺失!");
|