|
|
@@ -60,7 +60,7 @@ public class ProductController {
|
|
|
pageParams.getFilters().put("pr_enuu", custUU);
|
|
|
pageParams.getFilters().put("pr_ispurchase", Constant.YES);
|
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
|
- map.put("pr_b2bdisabled", Constant.YES);
|
|
|
+ map.put("pr_b2cenabled", Constant.YES);
|
|
|
pageParams.setNotEqualFilters(map);
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
sortList.add(new Sort("pr_id", false, Type.INT, new Long(1)));
|
|
|
@@ -87,7 +87,7 @@ public class ProductController {
|
|
|
pageParams.getFilters().put("pr_enuu", vendUU);
|
|
|
pageParams.getFilters().put("pr_issale", Constant.YES);
|
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
|
- map.put("pr_b2bdisabled", Constant.YES);
|
|
|
+ map.put("pr_b2cenabled", Constant.YES);
|
|
|
pageParams.setNotEqualFilters(map);
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
sortList.add(new Sort("pr_id", false, Type.INT, new Long(1)));
|
|
|
@@ -109,7 +109,7 @@ public class ProductController {
|
|
|
pageParams.getFilters().put("pr_enuu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
|
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
|
- map.put("pr_b2bdisabled", Constant.YES);
|
|
|
+ map.put("pr_b2cenabled", Constant.YES);
|
|
|
pageParams.setNotEqualFilters(map);
|
|
|
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
@@ -141,10 +141,7 @@ public class ProductController {
|
|
|
pageParams.setKeywordSearchColumns(keywordSearchColumns);
|
|
|
pageParams.getFilters().put("pr_enuu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
pageParams.getFilters().put("pr_standard", Constant.YES);
|
|
|
-
|
|
|
- HashMap<String, Object> map = new HashMap<>();
|
|
|
- map.put("pr_b2bdisabled", Constant.YES);
|
|
|
- pageParams.setNotEqualFilters(map);
|
|
|
+ pageParams.getFilters().put("pr_b2cenabled", Constant.YES);
|
|
|
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
sortList.add(new Sort("pr_id", false, Type.INT, new Long(1)));
|
|
|
@@ -173,11 +170,7 @@ public class ProductController {
|
|
|
keywordSearchColumns.add("pr_code");
|
|
|
pageParams.getFilters().put("pr_enuu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
pageParams.getFilters().put("pr_standard", Constant.NO);
|
|
|
-
|
|
|
- HashMap<String, Object> map = new HashMap<>();
|
|
|
- map.put("pr_b2bdisabled", Constant.YES);
|
|
|
- pageParams.setNotEqualFilters(map);
|
|
|
-
|
|
|
+ pageParams.getFilters().put("pr_b2cenabled", Constant.YES);
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
sortList.add(new Sort("pr_id", false, Type.INT, new Long(1)));
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
@@ -196,7 +189,7 @@ public class ProductController {
|
|
|
public SPage<Product> getProductInfo(PageParams params, String keyword) {
|
|
|
PageInfo pageInfo = new PageInfo(params);
|
|
|
pageInfo.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
- /*pageInfo.filter("b2bDisabled", Constant.NO);*/
|
|
|
+ pageInfo.filter("b2cEnabled", Constant.YES);
|
|
|
return productService.findB2bEnabledProductInfoByPageInfo(pageInfo, keyword);
|
|
|
}
|
|
|
|
|
|
@@ -213,7 +206,7 @@ public class ProductController {
|
|
|
PageInfo pageInfo = new PageInfo(params);
|
|
|
pageInfo.filter("standard", Constant.YES);
|
|
|
pageInfo.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
- /*pageInfo.filter("b2bDisabled", Constant.NO);*/
|
|
|
+ pageInfo.filter("b2cEnabled", Constant.YES);
|
|
|
return productService.findB2bEnabledProductInfoByPageInfo(pageInfo, keyword);
|
|
|
}
|
|
|
|
|
|
@@ -230,7 +223,7 @@ public class ProductController {
|
|
|
PageInfo pageInfo = new PageInfo(params);
|
|
|
pageInfo.filter("standard", Constant.NO);
|
|
|
pageInfo.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
- /*pageInfo.filter("b2bDisabled", Constant.NO);*/
|
|
|
+ pageInfo.filter("b2cEnabled", Constant.YES);
|
|
|
return productService.findB2bEnabledProductInfoByPageInfo(pageInfo, keyword);
|
|
|
}
|
|
|
|
|
|
@@ -353,6 +346,7 @@ public class ProductController {
|
|
|
logger.log("查看产品", SystemSession.getUser().getUserName() + "查看了物料信息(全部)");
|
|
|
PageInfo pageInfo = new PageInfo(params);
|
|
|
pageInfo.filter("matchstatus", Status.SUBMITTED.value());
|
|
|
+ pageInfo.filter("b2cEnabled", Constant.YES);
|
|
|
return productService.findB2bEnabledProductInfoByPageInfo(pageInfo, keyword);
|
|
|
}
|
|
|
|
|
|
@@ -379,6 +373,7 @@ public class ProductController {
|
|
|
PageInfo pageInfo = new PageInfo(params);
|
|
|
pageInfo.filter("isPurchase", Constant.YES);
|
|
|
pageInfo.filter("matchstatus", Status.SUBMITTED.value());
|
|
|
+ pageInfo.filter("b2cEnabled", Constant.YES);
|
|
|
return productService.findB2bEnabledProductInfoByPageInfo(pageInfo, keyword);
|
|
|
}
|
|
|
|