提交 177f85f8 作者: xiaowang

修复

上级 099769d8
......@@ -228,8 +228,8 @@ public class MallGoodsServiceImpl implements MallGoodsService {
public ResultBody exchange(Integer firstId, Integer secondId) {
MallGoodsDO firstMallGoodsBaseInfo = mallGoodsDao.getMallGoodsBaseInfo(firstId);
MallGoodsDO secondMallGoodsBaseInfo = mallGoodsDao.getMallGoodsBaseInfo(secondId);
int updateCount1 = mallGoodsDao.updateMallGoodsSort(firstId, firstMallGoodsBaseInfo.getSort());
int updateCount2 = mallGoodsDao.updateMallGoodsSort(secondId, secondMallGoodsBaseInfo.getSort());
int updateCount1 = mallGoodsDao.updateMallGoodsSort(firstId, secondMallGoodsBaseInfo.getSort());
int updateCount2 = mallGoodsDao.updateMallGoodsSort(secondId, firstMallGoodsBaseInfo.getSort());
if (updateCount1 == updateCount2) {
return ResultBody.success();
} else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论