feat:字典规则调整允许值为空

yun-zuoyi
汪云昊 5 years ago
parent 300b1fd97f
commit 2a7f0294b8

@ -69,8 +69,6 @@ public class SysDictionaryController extends CoreBaseController{
// 父级必须设置字典代码
if(sysDictionary.getParentIdVal() == CommonEnumUtil.PARENT.DEFAULT.getValue()){
ValidatorBean.checkNotNull(sysDictionary.getDictionaryCode(),"字典代码不能为空");
} else {
ValidatorBean.checkNotNull(sysDictionary.getDictionaryValue(),"字典参数值不能为空");
}
//新增初始化
@ -110,8 +108,6 @@ public class SysDictionaryController extends CoreBaseController{
// 父级必须设置字典代码
if(sysDictionary.getParentIdVal() == CommonEnumUtil.PARENT.DEFAULT.getValue()){
ValidatorBean.checkNotNull(sysDictionary.getDictionaryCode(),"字典代码不能为空");
} else {
ValidatorBean.checkNotNull(sysDictionary.getDictionaryValue(),"字典参数值不能为空");
}
if(sysDictionary.getParentIdVal() == sysDictionary.getId()){

Loading…
Cancel
Save