Commit 9b6f642d authored by wzp's avatar wzp

修改bug

parent 2c5b75e9
......@@ -119,7 +119,9 @@ public class TOrganController extends BaseController {
if (!byId.getParentId().equals(tOrgan.getParentId())) {
tOrgan.setCode(getOrganCode(tOrgan.getParentId()));
}
if (byId.getLevel() != tOrgan.getCode().length() / 3 && byId.getChildren().size() > 0) {
}
if (StringUtils.isNotBlank(tOrgan.getCode())) {
if (byId.getChildren().size() > 0) {
HashMap<String, Object> map = new HashMap<>();
map.put("resultCode", "500");
map.put("message", "机构存在下级机构,不能修改机构级别!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment