记得上下班打卡 | git大法好,push需谨慎

Commit 553e3d98 authored by 胡佳晨's avatar 胡佳晨

Merge remote-tracking branch 'origin/dev_goblin' into dev_goblin

parents f67e65be 9b10007c
......@@ -140,8 +140,9 @@ public class GoblinStoreMgtGoodsController {
log.warn("商品管理:SPU管理:上架警告:请先将商品下架后操作[UID={},spuId={}]", currentUid, spuId);
return ResponseDto.failure(ErrorCode.HTTP_PARAM_ERROR.getCode(), "无效操作,商品已上架");
}
spuNoList.add(goodsInfoVo.getSpuNo());
}
goblinstoreMgtGoodsService.goodsShelvesProcessing(mgtGoodsActionParam, currentUid, true, null);
goblinstoreMgtGoodsService.goodsShelvesProcessing(mgtGoodsActionParam, currentUid, true, spuNoList);
break;
case "UNSHELVE":
for (String spuId : spuIdList) {
......
......@@ -854,9 +854,9 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
String storeId = mgtGoodsActionParam.getStoreId();
List<String> spuIdList = mgtGoodsActionParam.getSpuIdList();
if (!shelvesFlg) {// 下架操作,需处理关联活动的商品数据
// if (!shelvesFlg) {// 上架、下架操作,需处理关联活动的商品数据
spuIdList.addAll(goblinMongoUtils.getMgtSpuIdsForMarketBySpuNos(spuNoList, "3"));
}
// }
if (goblinMongoUtils.updateGoodsInfoVoByShelves(storeId, spuIdList, shelvesFlg, uid, now)) {
if (goblinMongoUtils.updateGoodsSkuInfoVoByShelves(storeId, spuIdList, shelvesFlg, uid, now)) {
......
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