Commit a15a183b authored by shiyu's avatar shiyu

新增商品初始状态

parent f2d78d32
...@@ -183,7 +183,7 @@ public class ItemDaoImpl implements ItemDao { ...@@ -183,7 +183,7 @@ public class ItemDaoImpl implements ItemDao {
@Override @Override
public int insert(Item item) { public int insert(Item item) {
return itemMapper.insert(item); return itemMapper.insertSelective(item);
} }
@Override @Override
...@@ -311,7 +311,7 @@ public class ItemDaoImpl implements ItemDao { ...@@ -311,7 +311,7 @@ public class ItemDaoImpl implements ItemDao {
Date now = new Date(); Date now = new Date();
item.setCreateTime(now); item.setCreateTime(now);
item.setUpdateTime(now); item.setUpdateTime(now);
itemMapper.insert(item); itemMapper.insertSelective(item);
} }
/** /**
......
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