|
|
|
@ -477,7 +477,6 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
int afterSort= (frontSort==curSort)?curSort+1:frontSort; |
|
|
|
// 前序变更recommend sort
|
|
|
|
goodsMapper.updateRecommend(tmpRanklist.get(i-1).getGoodsIslicode(),curSort); |
|
|
|
|
|
|
|
ret = goodsMapper.updateRecommend(tmpRanklist.get(i).getGoodsIslicode(),afterSort); |
|
|
|
} |
|
|
|
}else{ |
|
|
|
@ -487,7 +486,7 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
//前序sort
|
|
|
|
int frontSort = tmpRanklist.get(i+1).getRecommendSort(); |
|
|
|
int afterSort= (frontSort==curSort)?curSort-1:frontSort; |
|
|
|
|
|
|
|
// 前序变更recommend sort
|
|
|
|
goodsMapper.updateRecommend(tmpRanklist.get(i+1).getGoodsIslicode(),curSort); |
|
|
|
ret = goodsMapper.updateRecommend(tmpRanklist.get(i).getGoodsIslicode(), afterSort); |
|
|
|
} |
|
|
|
|