增加验证判断

This commit is contained in:
jing's 2023-12-03 21:41:26 +08:00
parent 0ad7855ec2
commit 16b4638316
2 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ public class OptionalEbomApi extends BaseApi {
return ResultVO.error("rootRowId不能为空");
}
if(dto.getPartType() == OptionalBomConstant.PartTypeEnum.PART_TYPE_CHECBOX.getValue() &&( dto.getParentRowId()==null || dto.getParentRowId()==0)){
if(dto.getPartType() == OptionalBomConstant.PartTypeEnum.PART_TYPE_RADIO.getValue() &&( dto.getParentRowId()==null || dto.getParentRowId()==0)){
return ResultVO.error("标配件parentRowId不能为空");
}

View File

@ -197,7 +197,7 @@ public class OptionalExcelService {
//检查是否满足条件 除了 物料号不能为空
String hintMsg=isValiData(optionalEbomInportExcelDTO.getOptionInfo());
if(StrUtil.isEmpty(hintMsg)){
if(!StrUtil.isEmpty(hintMsg)){
throw new NflgBusinessException(STATE.Error,hintMsg);
}