Commit a1a7063a by 穆龙飞

modify:清理遗留二级

parent debe3b98
...@@ -82,7 +82,7 @@ public class ChangeTypeServiceImpl implements ChangeTypeService { ...@@ -82,7 +82,7 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
} }
} }
//删除老的二级,增加新的二级 //删除老的二级,增加新的二级
mapper.deleteByPrimaryKey(changeTypes.get(1).getId()); deleteChangeType(changeTypes.get(1));
//发现没有直接新增并返回 //发现没有直接新增并返回
changeTypes.get(1).setId(null); changeTypes.get(1).setId(null);
changeTypes.get(1).setParentId(changeTypes.get(0).getId()); changeTypes.get(1).setParentId(changeTypes.get(0).getId());
...@@ -111,7 +111,7 @@ public class ChangeTypeServiceImpl implements ChangeTypeService { ...@@ -111,7 +111,7 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
} }
} }
//删除老的二级,增加新的二级 //删除老的二级,增加新的二级
mapper.deleteByPrimaryKey(changeTypes.get(1).getId()); deleteChangeType(changeTypes.get(1));
//发现没有直接新增并返回 //发现没有直接新增并返回
changeTypes.get(1).setId(null); changeTypes.get(1).setId(null);
changeTypes.set(0,changeParentType); changeTypes.set(0,changeParentType);
......
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