|
|
@@ -3,6 +3,7 @@ package com.cyksj.web.controller.manage.goods;
|
|
|
import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.cyksj.dto.Result;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
+import com.cyksj.mapper.GoodsDonMapper;
|
|
|
import com.cyksj.model.entity.GiftCardGoodsSku;
|
|
|
import com.cyksj.model.request.GiftCardGoodsSkuReq;
|
|
|
import com.cyksj.model.views.GiftCardGoodsSkuView;
|
|
|
@@ -32,6 +33,8 @@ public class GiftCardController {
|
|
|
|
|
|
private final HttpServletRequest request;
|
|
|
|
|
|
+ private final GoodsDonMapper goodsDonMapper;
|
|
|
+
|
|
|
/**
|
|
|
* 设置礼品卡 规格
|
|
|
*/
|
|
|
@@ -82,6 +85,8 @@ public class GiftCardController {
|
|
|
}
|
|
|
byId.setStatus(!byId.getStatus());
|
|
|
giftCardGoodsSkuService.updateById(byId);
|
|
|
+ //设置对应礼品卡平台 最低价格
|
|
|
+ giftCardGoodsSkuService.setGiftCardGoodsStat(goodsDonMapper.selectById(byId.getGoodsId()));
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
|
|
|
@@ -96,6 +101,7 @@ public class GiftCardController {
|
|
|
}
|
|
|
byId.setDeleted(false);
|
|
|
giftCardGoodsSkuService.updateById(byId);
|
|
|
+ giftCardGoodsSkuService.setGiftCardGoodsStat(goodsDonMapper.selectById(byId.getGoodsId()));
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
}
|