@@ -251,10 +251,10 @@ public class SearchOpenService {
} else if (identity == 4) {
// 普通机构
thisFilter += "(p_visibility=2 OR p_visibility=3) AND p_valid=2 AND p_type=1";
- } else if (6 == identity) {
+ } else if (6 == identity) {
//供应商自己主页看商品,不对商品状态进行限制
thisFilter += "p_type=1";
- }else {
+ } else {
// 游客|所有人
thisFilter += "p_visibility=3 AND p_valid=2 AND p_type=1";
}
@@ -362,9 +362,6 @@ public class SearchOpenService {
} else if (4 == identity) {
- //供应商自己主页看商品,不对商品状态进行限制
- thisFilter += "p_type=1";
} else {
@@ -371,8 +371,6 @@ public class SearchProductServiceImpl implements SearchProductService {
if (null == id) {
return ResponseJson.error("请提供供应商id", null);
- // 供应商看自己主页商品的时候可以看到隐身,冻结。
- identity = 6;
ResponseJson<String> result;
if (StringUtils.isEmpty(keyword)) {
String queryStr = "p_supplier:'" + id + "'";
@@ -391,7 +389,6 @@ public class SearchProductServiceImpl implements SearchProductService {
if (0 == result.getCode()) {
return result;
- identity = 3;
// 阿里云搜索失败,再次从数据库搜索
return queryProductFromDatabase(pageNum, pageSize, identity, keyword, id, null, null, null, null, sortField, sortType);