Commit cbb4fbf8 by guojuxing

给默认delete_flag值

parent 78897566
...@@ -110,6 +110,9 @@ public class StoreGroupServiceImpl implements StoreGroupService{ ...@@ -110,6 +110,9 @@ public class StoreGroupServiceImpl implements StoreGroupService{
@Override @Override
public int insert(StoreGroupDTO storeGroupDTO) { public int insert(StoreGroupDTO storeGroupDTO) {
TabStoreGroup tabStoreGroup = EntityUtil.changeEntityNew(TabStoreGroup.class, storeGroupDTO); TabStoreGroup tabStoreGroup = EntityUtil.changeEntityNew(TabStoreGroup.class, storeGroupDTO);
if (tabStoreGroup.getDeleteFlag() == null) {
tabStoreGroup.setDeleteFlag(0);
}
tabStoreGroupMapper.insert(tabStoreGroup); tabStoreGroupMapper.insert(tabStoreGroup);
return tabStoreGroup.getStoreGroupId(); return tabStoreGroup.getStoreGroupId();
} }
......
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