Authored by mali

增加根据小分类集合查询 分类信息

... ... @@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;
/**
... ... @@ -143,9 +144,10 @@ public class ProductSortController {
return new ApiResponse<>(productSortService.deleteServiceFee(id));
}
// 根据分类id集合查询分类的信息
@RequestMapping(value = "/getBaseSortsById")
public ApiResponse<List<ProductSortResponseBo>> getBaseSortsById(List<Integer> ids) {
public ApiResponse<List<ProductSortResponseBo>> getBaseSortsById(Integer[] ids) {
LOGGER.info("getBaseSortsById param = {}", ids);
return new ApiResponse<>(productSortService.getBaseSortsById(ids));
return new ApiResponse<>(productSortService.getBaseSortsById(Arrays.asList(ids)));
}
}
... ...