提交 f3bd3075 authored 作者: 吴德鹏's avatar 吴德鹏

修改商品置顶bug

上级 4bad1054
......@@ -487,8 +487,8 @@ public class TbCfStationItemServiceImpl implements TbCfStationItemService {
return -1;
}
item.setItemTop(1);
int count = tbCfStationItemDao.queryTopCount();
item.setSort(++count);
int maxSort = tbCfStationItemDao.maxSort();
item.setSort(++maxSort);
return tbCfStationItemDao.update(item);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论