diff --git a/xm-core/src/main/java/com/xm/core/ctrl/XmTaskController.java b/xm-core/src/main/java/com/xm/core/ctrl/XmTaskController.java index f8ca258a..89f7eaf3 100644 --- a/xm-core/src/main/java/com/xm/core/ctrl/XmTaskController.java +++ b/xm-core/src/main/java/com/xm/core/ctrl/XmTaskController.java @@ -844,13 +844,8 @@ public class XmTaskController { if(task.getChildrenCnt()>0){ task.setNtype("1"); }else{ - if(task.getLvl()>1){ + if(!StringUtils.hasText(task.getNtype())){ task.setNtype("0"); - }else{ - if(!StringUtils.hasText(task.getNtype())){ - task.setNtype("1"); - } - } } }