增加验证判断
This commit is contained in:
parent
0ad7855ec2
commit
16b4638316
|
|
@ -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不能为空");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue