|
|
@@ -13,6 +13,7 @@ import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.cyksj.common.util.Jsons;
|
|
|
import com.cyksj.common.util.StringUtil;
|
|
|
import com.cyksj.dto.Result;
|
|
|
+import com.cyksj.dto.UserSharedDto;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
import com.cyksj.mapper.GoodsDonSkuMapper;
|
|
|
import com.cyksj.mapper.OrderDonMapper;
|
|
|
@@ -24,6 +25,7 @@ import com.cyksj.model.views.*;
|
|
|
import com.cyksj.redis.RedisService;
|
|
|
import com.cyksj.service.home.ClickRecordFrontService;
|
|
|
import com.cyksj.service.shop.YhShopFrontService;
|
|
|
+import com.cyksj.service.user.UserService;
|
|
|
import com.cyksj.web.util.StpUserUtil;
|
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
|
import com.ejlchina.searcher.SearchResult;
|
|
|
@@ -38,6 +40,8 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
+import java.util.concurrent.atomic.AtomicBoolean;
|
|
|
+import java.util.concurrent.atomic.AtomicLong;
|
|
|
import java.util.stream.Collectors;
|
|
|
import java.util.stream.Stream;
|
|
|
|
|
|
@@ -69,6 +73,8 @@ public class GoodsDonController {
|
|
|
|
|
|
private final YhShopFrontService yhShopFrontService;
|
|
|
|
|
|
+ private final UserService userService;
|
|
|
+
|
|
|
/**
|
|
|
* 获取平台商品分类
|
|
|
*/
|
|
|
@@ -209,6 +215,7 @@ public class GoodsDonController {
|
|
|
* 官网首页 平台列表
|
|
|
*/
|
|
|
@GetMapping("/get/list")
|
|
|
+ @Deprecated
|
|
|
public Result<? extends Object> getGoodsList(String customId) {
|
|
|
if (StrUtil.isNotBlank(customId)) {
|
|
|
Result<List<YhShopGoodsFrontView>> shopGoods = getShopGoods(yhShopFrontService.getYhsIdByCustomId(customId));
|
|
|
@@ -243,7 +250,7 @@ public class GoodsDonController {
|
|
|
data.setNotifyMsg(getPayMsgTime(data.getId(), now, 1, null));
|
|
|
|
|
|
//设置特定价格
|
|
|
- setSpecificPrice(data, fUid);
|
|
|
+ setSpecificPrice(data, fUid, null);
|
|
|
});
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(Optional.of(list));
|
|
|
}
|
|
|
@@ -287,7 +294,7 @@ public class GoodsDonController {
|
|
|
data.setNotifyMsg(getPayMsgTime(data.getId(), now, 1, null));
|
|
|
|
|
|
//设置特定价格
|
|
|
- setSpecificPrice(data, fUid);
|
|
|
+ setSpecificPrice(data, fUid, null);
|
|
|
});
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(Optional.of(list));
|
|
|
}
|
|
|
@@ -326,16 +333,15 @@ public class GoodsDonController {
|
|
|
* 获取商品详情
|
|
|
*/
|
|
|
@GetMapping("/get/{id}")
|
|
|
- public Result<? extends Object> getDetail(@PathVariable Long id, String customId) {
|
|
|
+ public Result<? extends Object> getDetail(@PathVariable Long id, String customId, String dsCode) {
|
|
|
if (StrUtil.isNotBlank(customId) && id != 15) {
|
|
|
Result<YhShopGoodsFrontView> yhShopGoodsDetail = getGoodsDetailByYhsId(yhShopFrontService.getYhsIdByCustomId(customId), id);
|
|
|
return yhShopGoodsDetail;
|
|
|
}
|
|
|
String goodsDetailKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "goods_detail:" + id;
|
|
|
Object o = redisService.get(goodsDetailKey);
|
|
|
- GoodsFrontListView views = null;
|
|
|
if (o == null) {
|
|
|
- views = beanSearcher.searchFirst(GoodsFrontListView.class, MapUtils.builder().field(GoodsFrontListView::getId, id)
|
|
|
+ GoodsFrontListView views = beanSearcher.searchFirst(GoodsFrontListView.class, MapUtils.builder().field(GoodsFrontListView::getId, id)
|
|
|
.build());
|
|
|
|
|
|
views.setSpecs(beanSearcher.searchFirst(GoodsDonSpecFrontView.class, MapUtils.builder().field(GoodsDonSpecFrontView::getGoodsId, views.getId()).build()));
|
|
|
@@ -349,10 +355,26 @@ public class GoodsDonController {
|
|
|
o = redisService.get(goodsDetailKey);
|
|
|
}
|
|
|
Long fUid = StpUserUtil.getUserIdAfterLogin();
|
|
|
- if (views == null) {
|
|
|
- views = Jsons.parseObject(o, GoodsFrontListView.class);
|
|
|
+ GoodsFrontListView views = Jsons.parseObject(o, GoodsFrontListView.class);
|
|
|
+ AtomicLong dsUserId = new AtomicLong();
|
|
|
+ AtomicBoolean existsChannel = new AtomicBoolean(true);
|
|
|
+ if (StrUtil.isNotBlank(dsCode)) {
|
|
|
+ UserSharedDto userSharedDto = userService.getUserShredDtoByDsCode(dsCode);
|
|
|
+ dsUserId.set(userSharedDto.getSharedId());
|
|
|
}
|
|
|
- for (GoodsDonSkuFrontView sku : views.getSkuList()) {
|
|
|
+ views.setSkuList(views.getSkuList().stream().filter(sku -> {
|
|
|
+ if (StrUtil.isNotBlank(sku.getUserOwns())) {
|
|
|
+ if (dsUserId.get() == 0 && fUid != null && existsChannel.get()) {
|
|
|
+ Long sharedId = userService.getSharedIdByUserId(fUid);
|
|
|
+ if (sharedId == 0) {
|
|
|
+ existsChannel.set(false);
|
|
|
+ }
|
|
|
+ dsUserId.set(sharedId);
|
|
|
+ }
|
|
|
+ if (dsUserId.get() == 0 || !sku.getUserOwns().contains(String.valueOf(dsUserId.get()))) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (sku.getIsDp()) {
|
|
|
sku.setDpSkuViews(beanSearcher.searchAll(GoodsDiscountPlusPurchaseRelationFrontView.class, MapUtils.builder()
|
|
|
.field(GoodsDiscountPlusPurchaseRelationFrontView::getSkuId, sku.getId())
|
|
|
@@ -362,27 +384,28 @@ public class GoodsDonController {
|
|
|
if (fUid == null) {
|
|
|
sku.setSpecificPrice(null);
|
|
|
sku.setSpecificGoodsIds(null);
|
|
|
- continue;
|
|
|
- }
|
|
|
- //设置特定价格
|
|
|
- if (!isPaySpecificGoodsIds(sku.getSpecificGoodsIds(), fUid)) {
|
|
|
- sku.setSpecificGoodsIds(null);
|
|
|
- sku.setSpecificPrice(null);
|
|
|
- } else {
|
|
|
- BigDecimal specificPrice = views.getSpecificPrice();
|
|
|
-
|
|
|
- BigDecimal skuSpecificPrice = sku.getSpecificPrice();
|
|
|
- Long specificSkuId = sku.getId();
|
|
|
- if (specificPrice == null) {
|
|
|
- views.setSpecificPrice(skuSpecificPrice);
|
|
|
- views.setSpecificSkuId(specificSkuId);
|
|
|
- } else if (specificPrice.compareTo(skuSpecificPrice) > 0) {
|
|
|
- views.setSpecificPrice(skuSpecificPrice);
|
|
|
- views.setSpecificSkuId(specificSkuId);
|
|
|
+ }else {
|
|
|
+ //设置特定价格
|
|
|
+ if (!isPaySpecificGoodsIds(sku.getSpecificGoodsIds(), fUid)) {
|
|
|
+ sku.setSpecificGoodsIds(null);
|
|
|
+ sku.setSpecificPrice(null);
|
|
|
+ } else {
|
|
|
+ BigDecimal specificPrice = views.getSpecificPrice();
|
|
|
+
|
|
|
+ BigDecimal skuSpecificPrice = sku.getSpecificPrice();
|
|
|
+ Long specificSkuId = sku.getId();
|
|
|
+ if (specificPrice == null) {
|
|
|
+ views.setSpecificPrice(skuSpecificPrice);
|
|
|
+ views.setSpecificSkuId(specificSkuId);
|
|
|
+ } else if (specificPrice.compareTo(skuSpecificPrice) > 0) {
|
|
|
+ views.setSpecificPrice(skuSpecificPrice);
|
|
|
+ views.setSpecificSkuId(specificSkuId);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ return true;
|
|
|
+ }).collect(Collectors.toList()));
|
|
|
Integer sold = orderDonMapper.selectCount(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
.eq(OrderDon::getGoodsId, views.getId()).notIn(OrderDon::getStatus, Constant.noOrderStatus));
|
|
|
views.setSold(sold + views.getSold());
|
|
|
@@ -400,7 +423,7 @@ public class GoodsDonController {
|
|
|
* 获取商品推荐平台
|
|
|
*/
|
|
|
@GetMapping("/get/recommend/{id}")
|
|
|
- public Result<List<GoodsFrontListView>> getRecommendGoodsByGid(@PathVariable Long id, String customId) throws Exception {
|
|
|
+ public Result<List<GoodsFrontListView>> getRecommendGoodsByGid(@PathVariable Long id, String customId, String dsCode) throws Exception {
|
|
|
String key = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "recommend:" + id;
|
|
|
Long yhsId = null;
|
|
|
if (StrUtil.isNotBlank(customId)) {
|
|
|
@@ -432,13 +455,36 @@ public class GoodsDonController {
|
|
|
if (goodsRecommendViews == null) {
|
|
|
goodsRecommendViews = Jsons.parseList(o.toString(), GoodsFrontListView.class);
|
|
|
}
|
|
|
- goodsRecommendViews.forEach(data -> {
|
|
|
+ AtomicLong dsUserId = new AtomicLong();
|
|
|
+ AtomicBoolean existsChannel = new AtomicBoolean(true);
|
|
|
+ if (StrUtil.isNotBlank(dsCode)) {
|
|
|
+ UserSharedDto userSharedDto = userService.getUserShredDtoByDsCode(dsCode);
|
|
|
+ dsUserId.set(userSharedDto.getSharedId());
|
|
|
+ }
|
|
|
+ goodsRecommendViews = goodsRecommendViews.stream().filter(data -> {
|
|
|
+ if (data.getIsOwns()) {
|
|
|
+ if (dsUserId.get() == 0 && fUid != null && existsChannel.get()) {
|
|
|
+ Long sharedId = userService.getSharedIdByUserId(fUid);
|
|
|
+ if (sharedId == 0) {
|
|
|
+ existsChannel.set(false);
|
|
|
+ }
|
|
|
+ dsUserId.set(sharedId);
|
|
|
+ }
|
|
|
+ GoodsDonSku minPriceUserOwnsSku = goodsDonSkuMapper.checkAndReturnMinPriceUserOwnsSku(data.getId(), dsUserId.get());
|
|
|
+ if (minPriceUserOwnsSku == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ data.setPrice(minPriceUserOwnsSku.getPrice());
|
|
|
+ data.setMonths(minPriceUserOwnsSku.getMonths());
|
|
|
+ data.setDays(minPriceUserOwnsSku.getDays());
|
|
|
+ }
|
|
|
Integer sold = orderDonMapper.selectCount(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
.eq(OrderDon::getGoodsId, data.getId()).notIn(OrderDon::getStatus, Constant.noOrderStatus));
|
|
|
- data.setSold(data.getSold() + sold);
|
|
|
+ data.setSold(data.getSold() + sold);
|
|
|
//设置特定价格
|
|
|
- setSpecificPrice(data, fUid);
|
|
|
- });
|
|
|
+ setSpecificPrice(data, fUid, dsUserId.get());
|
|
|
+ return true;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(goodsRecommendViews);
|
|
|
}
|
|
|
|
|
|
@@ -482,7 +528,7 @@ public class GoodsDonController {
|
|
|
* 获取首页配置列表
|
|
|
*/
|
|
|
@GetMapping("/get/homeManage")
|
|
|
- public Result<Map<String, List<HomeManagementFrontView>>> getHomeManagementFrontPage(String customId) {
|
|
|
+ public Result<Map<String, List<HomeManagementFrontView>>> getHomeManagementFrontPage(String customId, String dsCode) {
|
|
|
String key = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "homeManage";
|
|
|
Long yhsId = null;
|
|
|
if (StrUtil.isNotBlank(customId)) {
|
|
|
@@ -511,21 +557,22 @@ public class GoodsDonController {
|
|
|
redisService.setNx(key, map, 50 * 60l);
|
|
|
o = redisService.get(key);
|
|
|
}
|
|
|
+ AtomicLong dsUserId = new AtomicLong();
|
|
|
+ AtomicBoolean existsChannel = new AtomicBoolean(true);
|
|
|
+ if (StrUtil.isNotBlank(dsCode)) {
|
|
|
+ UserSharedDto userSharedDto = userService.getUserShredDtoByDsCode(dsCode);
|
|
|
+ dsUserId.set(userSharedDto.getSharedId());
|
|
|
+ }
|
|
|
Map<String, List<HomeManagementFrontView>> map = Jsons.parseObject(o, Map.class);
|
|
|
if (map.containsKey(HomeManagementConfig.Type.ex.name()) || map.containsKey(HomeManagementConfig.Type.vg.name())) {
|
|
|
try {
|
|
|
- //设置特定价格
|
|
|
+ //精彩推荐
|
|
|
List<HomeManagementFrontView> exList = Jsons.parseList(Jsons.toJson(map.get(HomeManagementConfig.Type.ex.name())), HomeManagementFrontView.class);
|
|
|
- if (CollUtil.isNotEmpty(exList)) {
|
|
|
- setHomeManageSpecific(exList, fUid);
|
|
|
- map.put(HomeManagementConfig.Type.ex.name(), exList);
|
|
|
- }
|
|
|
- //设置特定价格
|
|
|
+ setHomeConfigGoods(map, HomeManagementConfig.Type.ex, exList, dsUserId, existsChannel, fUid);
|
|
|
+
|
|
|
+ //虚拟平台
|
|
|
List<HomeManagementFrontView> vgList = Jsons.parseList(Jsons.toJson(map.get(HomeManagementConfig.Type.vg.name())), HomeManagementFrontView.class);
|
|
|
- if (CollUtil.isNotEmpty(vgList)) {
|
|
|
- setHomeManageSpecific(vgList, fUid);
|
|
|
- map.put(HomeManagementConfig.Type.vg.name(), vgList);
|
|
|
- }
|
|
|
+ setHomeConfigGoods(map, HomeManagementConfig.Type.vg, vgList, dsUserId, existsChannel, fUid);
|
|
|
} catch (Exception e) {
|
|
|
}
|
|
|
}
|
|
|
@@ -637,7 +684,7 @@ public class GoodsDonController {
|
|
|
/**
|
|
|
* 设置平台 特定价格
|
|
|
*/
|
|
|
- public void setSpecificPrice(GoodsFrontListView data, Long fUid) {
|
|
|
+ public void setSpecificPrice(GoodsFrontListView data, Long fUid, Long dsUserId) {
|
|
|
if (fUid != null) {
|
|
|
if (data.getIsSp()) {
|
|
|
//查找所有特定规格最小价格 满足条件
|
|
|
@@ -655,6 +702,9 @@ public class GoodsDonController {
|
|
|
redisService.setNx(specificGoodsKey, specificSkus, RedisService.key.YH_HOME_PAGHE_CACHE.getTimeout());
|
|
|
}
|
|
|
specificSkus.forEach(specificSku -> {
|
|
|
+ if (StrUtil.isNotEmpty(specificSku.getUserOwns()) && (dsUserId == null || !specificSku.getUserOwns().contains(dsUserId.toString()))) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
String specificGoodsIdsStr = specificSku.getSpecificGoodsIds();
|
|
|
if (isPaySpecificGoodsIds(specificGoodsIdsStr, fUid)) {
|
|
|
BigDecimal specificPrice = data.getSpecificPrice();
|
|
|
@@ -686,7 +736,7 @@ public class GoodsDonController {
|
|
|
/**
|
|
|
* 设置平台 特定价格
|
|
|
*/
|
|
|
- public void setGcSpecificPrice(GoodsFrontListCategoryView data, Long fUid) {
|
|
|
+ public void setGcSpecificPrice(GoodsFrontListCategoryView data, Long fUid, Long dsUserId) {
|
|
|
if (fUid != null) {
|
|
|
if (data.getIsSp()) {
|
|
|
//查找所有特定规格最小价格 满足条件
|
|
|
@@ -704,6 +754,9 @@ public class GoodsDonController {
|
|
|
redisService.setNx(specificGoodsKey, specificSkus, RedisService.key.YH_HOME_PAGHE_CACHE.getTimeout());
|
|
|
}
|
|
|
specificSkus.forEach(specificSku -> {
|
|
|
+ if (StrUtil.isNotEmpty(specificSku.getUserOwns()) && (dsUserId == null || !specificSku.getUserOwns().contains(dsUserId.toString()))) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
String specificGoodsIdsStr = specificSku.getSpecificGoodsIds();
|
|
|
if (isPaySpecificGoodsIds(specificGoodsIdsStr, fUid)) {
|
|
|
BigDecimal specificPrice = data.getSpecificPrice();
|
|
|
@@ -757,13 +810,16 @@ public class GoodsDonController {
|
|
|
/**
|
|
|
* 设置首页配置 涉及平台特定价格
|
|
|
*/
|
|
|
- public void setHomeManageSpecific(List<HomeManagementFrontView> list, Long fUid) {
|
|
|
+ public void setHomeManageSpecific(List<HomeManagementFrontView> list, Long fUid, Long dsUserId) {
|
|
|
DateTime now = DateTime.now();
|
|
|
list.forEach(data -> {
|
|
|
if (data.getIsSp() != null && data.getIsSp() && fUid != null) {
|
|
|
//查找所有特定规格最小价格 满足条件
|
|
|
List<GoodsDonSku> specificSkus = getSpecificSku(data.getGoodsId());
|
|
|
specificSkus.forEach(specificSku -> {
|
|
|
+ if (StrUtil.isNotEmpty(specificSku.getUserOwns()) && (dsUserId == null || !specificSku.getUserOwns().contains(dsUserId.toString()))) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
String specificGoodsIdsStr = specificSku.getSpecificGoodsIds();
|
|
|
if (isPaySpecificGoodsIds(specificGoodsIdsStr, fUid)) {
|
|
|
BigDecimal specificPrice = data.getSpecificPrice();
|
|
|
@@ -786,6 +842,33 @@ public class GoodsDonController {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ public void setHomeConfigGoods(Map<String, List<HomeManagementFrontView>> map, HomeManagementConfig.Type type, List<HomeManagementFrontView> list, AtomicLong dsUserId, AtomicBoolean existsChannel, Long fUid) throws Exception {
|
|
|
+ //设置特定价格
|
|
|
+ if (CollUtil.isNotEmpty(list)) {
|
|
|
+ list = list.stream().filter(data -> {
|
|
|
+ if (data.getIsOwns()) {
|
|
|
+ if (dsUserId.get() == 0 && fUid != null && existsChannel.get()) {
|
|
|
+ Long sharedId = userService.getSharedIdByUserId(fUid);
|
|
|
+ if (sharedId == 0) {
|
|
|
+ existsChannel.set(false);
|
|
|
+ }
|
|
|
+ dsUserId.set(sharedId);
|
|
|
+ }
|
|
|
+ GoodsDonSku minPriceUserOwnsSku = goodsDonSkuMapper.checkAndReturnMinPriceUserOwnsSku(data.getGoodsId(), dsUserId.get());
|
|
|
+ if (minPriceUserOwnsSku == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ data.setPrice(minPriceUserOwnsSku.getPrice());
|
|
|
+ data.setMonths(minPriceUserOwnsSku.getMonths());
|
|
|
+ data.setDays(minPriceUserOwnsSku.getDays());
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+ setHomeManageSpecific(list, fUid, dsUserId.get());
|
|
|
+ map.put(type.name(), list);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 店铺平台列表
|
|
|
*/
|
|
|
@@ -843,7 +926,7 @@ public class GoodsDonController {
|
|
|
* 根据分类获取对应平台
|
|
|
*/
|
|
|
@GetMapping("/get/categoryGoods")
|
|
|
- public Result<? extends Object> getGoodsByCategory(Long cgy, String customId) {
|
|
|
+ public Result<? extends Object> getGoodsByCategory(Long cgy, String customId, String dsCode) {
|
|
|
if (StrUtil.isNotBlank(customId)) {
|
|
|
Result<List<YhShopGoodsFrontCategoryView>> shopGoods = getShopCategoryGoods(yhShopFrontService.getYhsIdByCustomId(customId), cgy);
|
|
|
return shopGoods;
|
|
|
@@ -866,14 +949,37 @@ public class GoodsDonController {
|
|
|
}
|
|
|
List<GoodsFrontListCategoryView> goodsFrontListViews = Jsons.parseList(o, GoodsFrontListCategoryView.class);
|
|
|
DateTime now = DateTime.now();
|
|
|
- goodsFrontListViews.forEach(data -> {
|
|
|
+ AtomicLong dsUserId = new AtomicLong();
|
|
|
+ AtomicBoolean existsChannel = new AtomicBoolean(true);
|
|
|
+ if (StrUtil.isNotBlank(dsCode)) {
|
|
|
+ UserSharedDto userSharedDto = userService.getUserShredDtoByDsCode(dsCode);
|
|
|
+ dsUserId.set(userSharedDto.getSharedId());
|
|
|
+ }
|
|
|
+ goodsFrontListViews = goodsFrontListViews.stream().filter(data -> {
|
|
|
+ if (data.getIsOwns()) {
|
|
|
+ if (dsUserId.get() == 0 && fUid != null && existsChannel.get()) {
|
|
|
+ Long sharedId = userService.getSharedIdByUserId(fUid);
|
|
|
+ if (sharedId == 0) {
|
|
|
+ existsChannel.set(false);
|
|
|
+ }
|
|
|
+ dsUserId.set(sharedId);
|
|
|
+ }
|
|
|
+ GoodsDonSku minPriceUserOwnsSku = goodsDonSkuMapper.checkAndReturnMinPriceUserOwnsSku(data.getId(), dsUserId.get());
|
|
|
+ if (minPriceUserOwnsSku == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ data.setPrice(minPriceUserOwnsSku.getPrice());
|
|
|
+ data.setMonths(minPriceUserOwnsSku.getMonths());
|
|
|
+ data.setDays(minPriceUserOwnsSku.getDays());
|
|
|
+ }
|
|
|
Integer sold = orderDonMapper.selectCount(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
.eq(OrderDon::getGoodsId, data.getId()).notIn(OrderDon::getStatus, Constant.noOrderStatus));
|
|
|
data.setSold(sold + data.getSold());
|
|
|
data.setNotifyMsg(getPayMsgTime(data.getId(), now, 1, null));
|
|
|
//设置特定价格
|
|
|
- setGcSpecificPrice(data, fUid);
|
|
|
- });
|
|
|
+ setGcSpecificPrice(data, fUid, dsUserId.get());
|
|
|
+ return true;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(goodsFrontListViews);
|
|
|
}
|
|
|
|