新增商品

1 个父辈 f33457d9
......@@ -32,6 +32,7 @@ public class GoodsService {
goods.setUpdateTime(new Date(System.currentTimeMillis()));
if (goods.getId() == null || goods.getId() == 0) {
goods.setCreatetime(new Date(System.currentTimeMillis()));
goods.setDeleted(false);
goodsDao.insert(goods);
} else {
goodsDao.updateByPrimaryKey(goods);
......
Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
请先完成此消息的编辑!