Commit 5d0d79e1 by 穆龙飞

modify:清理遗留二级

parent 5a6ae72d
...@@ -81,6 +81,8 @@ public class ChangeTypeServiceImpl implements ChangeTypeService { ...@@ -81,6 +81,8 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
return changeTypes; return changeTypes;
} }
} }
//删除老的二级,增加新的二级
mapper.deleteByPrimaryKey(changeTypes.get(1).getId());
//发现没有直接新增并返回 //发现没有直接新增并返回
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());
...@@ -108,6 +110,8 @@ public class ChangeTypeServiceImpl implements ChangeTypeService { ...@@ -108,6 +110,8 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
changeTypes.get(1).setDeleteType(0); changeTypes.get(1).setDeleteType(0);
} }
} }
//删除老的二级,增加新的二级
mapper.deleteByPrimaryKey(changeTypes.get(1).getId());
//发现没有直接新增并返回 //发现没有直接新增并返回
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