|
|
@@ -239,4 +239,24 @@ public class ProductUsersController {
|
|
|
throw new RuntimeException("根据企业UU和物料原厂型号cmpCode获取个人产品库信息失败");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据品牌和型号,返回类目
|
|
|
+ * @param brand 品牌
|
|
|
+ * @param cmpCode 物料型号
|
|
|
+ * @return 物料类目
|
|
|
+ */
|
|
|
+ @HttpLog
|
|
|
+ @RequestMapping(value = "/match/getKind", method = RequestMethod.GET)
|
|
|
+ public String getKindByCmpCodeAndBrand(@RequestParam String cmpCode, @RequestParam String brand) {
|
|
|
+ String kind = "";
|
|
|
+ try {
|
|
|
+ kind = productService.getKindByCmpCodeAndBrand(cmpCode, brand);
|
|
|
+ logger.log("成功", "根据品牌和型号获取类目成功", null, null, null, null);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ logger.log("失败", "根据品牌和型号获取类目失败", null, null, null, null);
|
|
|
+ }
|
|
|
+ return kind;
|
|
|
+ }
|
|
|
}
|