|
|
@@ -455,11 +455,15 @@ public class GoodsDescServiceImpl extends ServiceImpl<GoodsDescMapper, GoodsDesc
|
|
|
BeanUtils.copyProperties(e,goodsDesc);
|
|
|
|
|
|
R<CorpsDesc> corpByName = corpsDescClient.getCorpByName(e.getCorpName(), AuthUtil.getTenantId());
|
|
|
- if(corpByName.isSuccess())
|
|
|
+ if(corpByName.isSuccess()&&corpByName.getData()!=null)
|
|
|
{
|
|
|
goodsDesc.setCorpName(e.getCorpName());
|
|
|
goodsDesc.setCorpId(corpByName.getData().getId());
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ throw new SecurityException("请输入正确的供应商");
|
|
|
+ }
|
|
|
//获取供应商
|
|
|
goodsDesc.setTypeno(e.getTypeNo());
|
|
|
goodsDesc.setCntrVolumn(e.getCntrVolumn());
|