| Line 77... |
Line 77... |
| 77 |
import com.spice.profitmandi.dao.entity.transaction.NotifyColorChange;
|
77 |
import com.spice.profitmandi.dao.entity.transaction.NotifyColorChange;
|
| 78 |
import com.spice.profitmandi.dao.entity.transaction.NotifyMessage;
|
78 |
import com.spice.profitmandi.dao.entity.transaction.NotifyMessage;
|
| 79 |
import com.spice.profitmandi.dao.entity.transaction.NotifyOrder;
|
79 |
import com.spice.profitmandi.dao.entity.transaction.NotifyOrder;
|
| 80 |
import com.spice.profitmandi.dao.entity.transaction.Order;
|
80 |
import com.spice.profitmandi.dao.entity.transaction.Order;
|
| 81 |
import com.spice.profitmandi.dao.model.ContentPojo;
|
81 |
import com.spice.profitmandi.dao.model.ContentPojo;
|
| - |
|
82 |
import com.spice.profitmandi.dao.model.Specification;
|
| - |
|
83 |
import com.spice.profitmandi.dao.model.SpecificationGroup;
|
| 82 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
84 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
| 83 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
85 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
| 84 |
import com.spice.profitmandi.dao.repository.catalog.TagRankingRepository;
|
86 |
import com.spice.profitmandi.dao.repository.catalog.TagRankingRepository;
|
| 85 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
87 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
| 86 |
import com.spice.profitmandi.dao.repository.dtr.Mongo;
|
88 |
import com.spice.profitmandi.dao.repository.dtr.Mongo;
|
| Line 1083... |
Line 1085... |
| 1083 |
List<ContentPojo> cps = new ArrayList<>();
|
1085 |
List<ContentPojo> cps = new ArrayList<>();
|
| 1084 |
for (Long id : catalogId) {
|
1086 |
for (Long id : catalogId) {
|
| 1085 |
ContentPojo cp = mongoClient.getEntityById(id);
|
1087 |
ContentPojo cp = mongoClient.getEntityById(id);
|
| 1086 |
cps.add(cp);
|
1088 |
cps.add(cp);
|
| 1087 |
}
|
1089 |
}
|
| 1088 |
|
1090 |
|
| - |
|
1091 |
List<Map<String, String>> entityList = new ArrayList<>();
|
| - |
|
1092 |
for(ContentPojo cp : cps) {
|
| - |
|
1093 |
Map<String, String> specsMap = new HashMap<>();
|
| - |
|
1094 |
for(SpecificationGroup sg : cp.getDetailedSpecs()) {
|
| - |
|
1095 |
String title = sg.getTitle();
|
| - |
|
1096 |
for(Specification s : sg.getSpecs()) {
|
| - |
|
1097 |
String key = title + s.getName();
|
| - |
|
1098 |
specsMap.put(key, String.join(", ", s.getValues()));
|
| - |
|
1099 |
}
|
| - |
|
1100 |
}
|
| - |
|
1101 |
entityList.add(specsMap);
|
| - |
|
1102 |
}
|
| 1089 |
|
1103 |
|
| 1090 |
LOGGER.info("cps" + cps);
|
1104 |
LOGGER.info("cps" + cps);
|
| 1091 |
model.addAttribute("cps", cps);
|
1105 |
model.addAttribute("cps", cps);
|
| - |
|
1106 |
model.addAttribute("entityList", entityList);
|
| 1092 |
return "product-compare";
|
1107 |
return "product-compare";
|
| 1093 |
}
|
1108 |
}
|
| 1094 |
}
|
1109 |
}
|
| 1095 |
|
1110 |
|