|
@@ -324,5 +324,35 @@ public class AdminSignclosedController {
|
|
|
return msg;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据产品名称查询产品数据
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ResponseBody
|
|
|
+ @RequiresPermissions("signclosed:update:signclosed")
|
|
|
+ @RequestMapping(value = "/update_remark")
|
|
|
+ public ResponseJson selectProduct(HttpServletRequest request,String productName){
|
|
|
+ ResponseJson msg = new ResponseJson();
|
|
|
+ if(productName == null){
|
|
|
+ msg.setResultCode(500);
|
|
|
+ msg.setReturnCode(500);
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
+ //获取所有产品及其颜色,配件
|
|
|
+ Product product = new Product();
|
|
|
+ product.setProductName(productName);
|
|
|
+ List<Product> productList = productService.listProductAndColorAndfittings(product);
|
|
|
+ if (productList.size() == 0) {
|
|
|
+ msg.setResultCode(500);
|
|
|
+ msg.setReturnCode(500);
|
|
|
+ } else {
|
|
|
+ msg.setResultCode(200);
|
|
|
+ msg.setReturnCode(200);
|
|
|
+ msg.addResponseKeyValue("productList",productList);
|
|
|
+ }
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
}
|
|
|
|