Commit a15a183b authored by shiyu's avatar shiyu

新增商品初始状态

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