|
@@ -13,9 +13,12 @@ import com.cyksj.model.entity.GoodsDonSpec;
|
|
|
import com.cyksj.model.manage.request.ReqGoodsSkuInsert;
|
|
import com.cyksj.model.manage.request.ReqGoodsSkuInsert;
|
|
|
import com.cyksj.model.manage.request.ReqGoodsSkuSpec;
|
|
import com.cyksj.model.manage.request.ReqGoodsSkuSpec;
|
|
|
import com.cyksj.model.manage.request.ReqGoodsSpecSingle;
|
|
import com.cyksj.model.manage.request.ReqGoodsSpecSingle;
|
|
|
|
|
+import com.cyksj.model.views.GoodsDonSkuView;
|
|
|
import com.cyksj.service.mange.CmsGoodsDonService;
|
|
import com.cyksj.service.mange.CmsGoodsDonService;
|
|
|
import com.cyksj.service.mange.CmsGoodsDonSkuService;
|
|
import com.cyksj.service.mange.CmsGoodsDonSkuService;
|
|
|
import com.cyksj.service.mange.CmsGoodsDonSpecService;
|
|
import com.cyksj.service.mange.CmsGoodsDonSpecService;
|
|
|
|
|
+import com.ejlchina.searcher.BeanSearcher;
|
|
|
|
|
+import com.ejlchina.searcher.util.MapUtils;
|
|
|
import com.fasterxml.jackson.databind.JavaType;
|
|
import com.fasterxml.jackson.databind.JavaType;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -24,6 +27,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -43,6 +47,10 @@ public class CmsGoodsDonSkuController {
|
|
|
|
|
|
|
|
private final CmsGoodsDonSkuService goodsDonSkuService;
|
|
private final CmsGoodsDonSkuService goodsDonSkuService;
|
|
|
|
|
|
|
|
|
|
+ private final BeanSearcher beanSearcher;
|
|
|
|
|
+
|
|
|
|
|
+ private final HttpServletRequest request;
|
|
|
|
|
+
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 新增 商品spec & sku
|
|
* 新增 商品spec & sku
|
|
@@ -235,4 +243,13 @@ public class CmsGoodsDonSkuController {
|
|
|
goodsDonSkuService.removeById(skuId);
|
|
goodsDonSkuService.removeById(skuId);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取平台规格列表
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/get/list")
|
|
|
|
|
+ public Result<List<GoodsDonSkuView>> getGoodsSkuList() {
|
|
|
|
|
+ List<GoodsDonSkuView> skuViewList = beanSearcher.searchAll(GoodsDonSkuView.class, MapUtils.flatBuilder(request.getParameterMap()).build());
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(skuViewList);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|