|
|
@@ -283,7 +283,6 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
@GetMapping("/get/{id}")
|
|
|
public Result<GoodsDonViews> getDetail(@PathVariable Long id) {
|
|
|
- Long userId = null;
|
|
|
Long fUid = StpUserUtil.getUserIdAfterLogin();
|
|
|
GoodsDonViews views = beanSearcher.searchFirst(GoodsDonViews.class, MapUtils.builder().field(GoodsDonViews::getId, id).build());
|
|
|
|
|
|
@@ -300,7 +299,12 @@ public class GoodsDonController {
|
|
|
.field(GoodsDiscountPlusPurchaseRelationFrontView::getSkuId, sku.getId())
|
|
|
.build()));
|
|
|
}
|
|
|
- if (fUid != null && views.getIsSp()) {
|
|
|
+ if (views.getIsSp()) {
|
|
|
+ if (fUid == null) {
|
|
|
+ sku.setSpecificPrice(null);
|
|
|
+ sku.setSpecificGoodsIds(null);
|
|
|
+ return;
|
|
|
+ }
|
|
|
//设置特定价格
|
|
|
if (!isPaySpecificGoodsIds(sku.getSpecificGoodsIds(), fUid)) {
|
|
|
sku.setSpecificGoodsIds(null);
|