Commit 68f54692 by 穆龙飞

modify:修改删除逻辑

parent 67963472
...@@ -129,7 +129,7 @@ public class ChangeTypeServiceImpl implements ChangeTypeService { ...@@ -129,7 +129,7 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
} }
//查询一级下班是否还存在其他二级 如果不存在就删除一级 如果存在一级就不做伪删 //查询一级下班是否还存在其他二级 如果不存在就删除一级 如果存在一级就不做伪删
List<ChangeType> changeTypeList = mapper.queryParent(changeTypes.get(0).getId()); List<ChangeType> changeTypeList = mapper.queryParent(changeTypes.get(0).getId());
if (changeTypeList.size() == 2){ if (changeTypeList.size() != 2){
changeTypes.remove(0); changeTypes.remove(0);
} }
for (ChangeType changeType : changeTypes){ for (ChangeType changeType : changeTypes){
......
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