This commit is contained in:
Carl 2022-01-29 02:11:18 +08:00
parent 68156909be
commit 2274267b6f

View File

@ -72,6 +72,7 @@ public class GoodController {
List<String> tagNameList = new ArrayList<>(); List<String> tagNameList = new ArrayList<>();
int count = 0; int count = 0;
for (String categoryKey : paramMap.keySet()) { for (String categoryKey : paramMap.keySet()) {
System.out.println("categoryKey:"+ categoryKey);
if(categoryKey == "categoryName" || categoryKey == "tagFunction" || categoryKey == "tagUsedAge" || categoryKey == "tagBreed" || categoryKey == "tagStatus") { if(categoryKey == "categoryName" || categoryKey == "tagFunction" || categoryKey == "tagUsedAge" || categoryKey == "tagBreed" || categoryKey == "tagStatus") {
switch (categoryKey) { switch (categoryKey) {
case "categoryName": case "categoryName":
@ -96,6 +97,7 @@ public class GoodController {
} }
} }
if(count > 0) { if(count > 0) {
System.out.println("count:"+ count);
List<ProductSearchTagEntity> productSearchTagList = productSearchTagService.findAllByCondition(brandNameList, productQueryEntity.getPetType(), tagNameList, productQueryEntity.getTagStatus()); List<ProductSearchTagEntity> productSearchTagList = productSearchTagService.findAllByCondition(brandNameList, productQueryEntity.getPetType(), tagNameList, productQueryEntity.getTagStatus());
List<String> tagCodeList = new ArrayList<>(); List<String> tagCodeList = new ArrayList<>();
for (ProductSearchTagEntity productSearchTagEntity : productSearchTagList) { for (ProductSearchTagEntity productSearchTagEntity : productSearchTagList) {