|
@ -37,6 +37,7 @@ import org.springframework.web.bind.annotation.*; |
|
|
import javax.validation.Valid; |
|
|
import javax.validation.Valid; |
|
|
import java.time.LocalDate; |
|
|
import java.time.LocalDate; |
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
|
|
|
import java.util.Arrays; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
import java.util.Locale; |
|
|
import java.util.Locale; |
|
|
import java.util.stream.Collectors; |
|
|
import java.util.stream.Collectors; |
|
@ -57,6 +58,7 @@ public class GoodsSpuController { |
|
|
private GoodsSpuService goodsSpuService; |
|
|
private GoodsSpuService goodsSpuService; |
|
|
private GoodsSpuSpecService goodsSpuSpecService; |
|
|
private GoodsSpuSpecService goodsSpuSpecService; |
|
|
private GoodsSkuSpecValueService goodsSkuSpecValueService; |
|
|
private GoodsSkuSpecValueService goodsSkuSpecValueService; |
|
|
|
|
|
private GoodsCategoryRuleService goodsCategoryRuleService; |
|
|
private TbsActivityGoodsService activityGoodsService; |
|
|
private TbsActivityGoodsService activityGoodsService; |
|
|
private TbsBudgetConditionService budgetConditionService; |
|
|
private TbsBudgetConditionService budgetConditionService; |
|
|
private GoodsCategoryService goodsCategoryService; |
|
|
private GoodsCategoryService goodsCategoryService; |
|
@ -116,6 +118,11 @@ public class GoodsSpuController { |
|
|
*/ |
|
|
*/ |
|
|
@GetMapping("/getSkuJoinSpuList") |
|
|
@GetMapping("/getSkuJoinSpuList") |
|
|
public R<PageVo<GoodsSpu>> getSkuJoinSpuList(GoodsSpu param){ |
|
|
public R<PageVo<GoodsSpu>> getSkuJoinSpuList(GoodsSpu param){ |
|
|
|
|
|
GoodsCategoryRule categoryRule = goodsCategoryRuleService.getById(param.getSearchCateRuleId()); |
|
|
|
|
|
if(categoryRule!=null&&categoryRule.getIgnoreBrandIds()!=null&&categoryRule.getIgnoreBrandIds().length>0){ |
|
|
|
|
|
param.setSelectNotIntCateIds(Arrays.asList(categoryRule.getIgnoreBrandIds())); |
|
|
|
|
|
log.warn("setSelectNotIntCateIds {}",JsonUtil.objectToJson(param)); |
|
|
|
|
|
} |
|
|
Long total = goodsSpuService.selectCountSkuJoinSpuList(param); |
|
|
Long total = goodsSpuService.selectCountSkuJoinSpuList(param); |
|
|
if(total<1){ |
|
|
if(total<1){ |
|
|
return R.byEmptyList(); |
|
|
return R.byEmptyList(); |
|
|