在字典管理中,手工删除了原来的三级机构,然后新建了两个机构:
一级学院:一级学院
二级学院:二级学院
然后在组织管理中新建机构,选择新创建的机构类型,报错:
机构类型长度不能超过 1 个字符
06-07 23:06:07.788 WARN [o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver] - Resolved [org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
Field error in object 'office' on field 'officeType': rejected value [一级学院]; codes [Length.office.officeType,Length.officeType,Length.java.lang.String,Length]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [office.officeType,officeType]; arguments []; default message [officeType],1,0]; default message [机构类型长度不能超过 1 个字符]] to ModelAndView: reference to view with name 'error/400'; model is {}
尝试将字典管理中的value修改为
一级学院:1
二级学院:2
过一会儿可以创建机构成功(需要过一会儿,刷新和重新登录都是不行的,怀疑在哪里有缓存?)
不过子机构显示为:
机构类型:未知
查看数据库中的机构类型是正确的
重新登录后,显示的机构类型正常