|
@@ -30,13 +30,15 @@ public class WlnUtil {
|
|
|
/**
|
|
|
* 获取sku分类
|
|
|
*/
|
|
|
- public static List<JSONObject> getSkuClassifyList() throws Exception {
|
|
|
+ public static List<JSONObject> getSkuClassifyList(Integer page, Integer limit) throws Exception {
|
|
|
SkuClassifyParam param = new SkuClassifyParam();
|
|
|
- param.setCom_uid(WlnConstant.COM_UID);
|
|
|
+// param.setCom_uid(WlnConstant.COM_UID);
|
|
|
+ param.setPage(page);
|
|
|
+ param.setLimit(limit);
|
|
|
String linkString = MapUtil.createLinkString(MapUtil.beanToMap(param));
|
|
|
param.generateSign(linkString);
|
|
|
|
|
|
- String result = send(PREFIX + "erp/goods/catagory/query", param);
|
|
|
+ String result = send(PREFIX + "/erp/goods/catagorypage/query/v2", param);
|
|
|
JSONObject json = JSONObject.parseObject(result);
|
|
|
Integer code = json.getInteger("code");
|
|
|
if (code != 0) {
|