Commit 5c3d465d by 穆龙飞

modify:清理遗留二级

parent a1a7063a
......@@ -84,6 +84,7 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
//删除老的二级,增加新的二级
deleteChangeType(changeTypes.get(1));
//发现没有直接新增并返回
changeTypes.get(1).setDeleteType(0);
changeTypes.get(1).setId(null);
changeTypes.get(1).setParentId(changeTypes.get(0).getId());
changeTypes.get(1).setCreateTime(System.currentTimeMillis());
......@@ -113,6 +114,7 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
//删除老的二级,增加新的二级
deleteChangeType(changeTypes.get(1));
//发现没有直接新增并返回
changeTypes.get(1).setDeleteType(0);
changeTypes.get(1).setId(null);
changeTypes.set(0,changeParentType);
changeTypes.get(1).setParentId(changeParentType.getId());
......
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