|
|
package com.yoho.search.consumer.service.daoService;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import com.yoho.search.dal.ProductMapper;
|
|
|
|
|
|
@Service
|
|
|
public class PressMySqlService {
|
|
|
|
|
|
@Autowired
|
|
|
private ProductMapper productMapper;
|
|
|
|
|
|
public Map<String, Object> pressProductList(String brandIds, int size) {
|
|
|
List<String> brandIdList = Arrays.asList(brandIds.split(","));
|
|
|
List<Integer> skns = productMapper.selectBrandNewestSkns(brandIdList, 1, size);
|
|
|
Map<String, Object> results = new HashMap<String, Object>();
|
|
|
results.put("skns", skns);
|
|
|
return results;
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|