|
@@ -67,10 +67,16 @@ public class AuthController {
|
|
|
authMap.put(item.getPid(), item);
|
|
|
}
|
|
|
|
|
|
+ List< Map<String, Object> > result = new ArrayList<>();
|
|
|
+
|
|
|
+ if (pids.isEmpty()){
|
|
|
+ log.error("No-Valid-Pids-For-User, uid={}", uid);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
List<Product> products = productRepository.findByPids(pids);
|
|
|
|
|
|
//assemble result
|
|
|
- List< Map<String, Object> > result = new ArrayList<>();
|
|
|
for(Product product : products){
|
|
|
|
|
|
String pid = product.getPid();
|