Authored by hugufei

fix bug

... ... @@ -16,10 +16,10 @@ public class PressMySqlController {
@Autowired
private PressMySqlService pressMySqlService;
@RequestMapping(method = RequestMethod.GET, value = "/pressProductIndex")
@RequestMapping(method = RequestMethod.GET, value = "/pressProductTable")
@ResponseBody
public Map<String,Object> pressProductList(String brandIds,int size) {
return pressMySqlService.pressProductList(brandIds, size);
public Map<String,Object> pressProductTable(String brandIds,int size) {
return pressMySqlService.pressProductTable(brandIds, size);
}
}
... ...
... ... @@ -16,7 +16,7 @@ public class PressMySqlService {
@Autowired
private ProductMapper productMapper;
public Map<String, Object> pressProductList(String brandIds, int size) {
public Map<String, Object> pressProductTable(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>();
... ...