|
|
@@ -12,10 +12,7 @@ import com.uas.platform.core.model.PageParams;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLDecoder;
|
|
|
@@ -177,4 +174,14 @@ public class BrandController {
|
|
|
public List<Brand> getHotBrands(@PathVariable("num") Integer num) {
|
|
|
return brandService.getHotBrands(num);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据批次号获取品牌信息
|
|
|
+ * @param batchIds
|
|
|
+ * @return 品牌信息
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/batchId", method = RequestMethod.POST, produces = "application/json")
|
|
|
+ public List<BrandMostSimpleInfo> getBatchBrands(@RequestBody List<Long> batchIds) {
|
|
|
+ return brandService.getBatchBrandMostSimpleInfs(batchIds);
|
|
|
+ }
|
|
|
}
|