|
@@ -218,7 +218,6 @@ public class ProductNewController extends BaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- cleanRedisCache();
|
|
|
|
List<CmBrand> brandList = productService.findBrandList();
|
|
List<CmBrand> brandList = productService.findBrandList();
|
|
Map<String, Object> classify = productService.findClassify(1);
|
|
Map<String, Object> classify = productService.findClassify(1);
|
|
model.addAttribute("brandList", brandList);
|
|
model.addAttribute("brandList", brandList);
|
|
@@ -242,11 +241,21 @@ public class ProductNewController extends BaseController {
|
|
// 单个商品搜索
|
|
// 单个商品搜索
|
|
model.addAttribute("editFlag", "1");
|
|
model.addAttribute("editFlag", "1");
|
|
}
|
|
}
|
|
|
|
+
|
|
if ("1".equals(product.getProductCategory())) {
|
|
if ("1".equals(product.getProductCategory())) {
|
|
|
|
+ /**
|
|
|
|
+ * 初始化回显字段
|
|
|
|
+ */
|
|
|
|
+ product =new Product();
|
|
return "modules/product-new/productList";
|
|
return "modules/product-new/productList";
|
|
} else {
|
|
} else {
|
|
|
|
+ /**
|
|
|
|
+ * 初始化回显字段
|
|
|
|
+ */
|
|
|
|
+ product =new Product();
|
|
return "modules/product-new/secondHand";
|
|
return "modules/product-new/secondHand";
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "productAdd")
|
|
@RequestMapping(value = "productAdd")
|