|
@@ -68,7 +68,7 @@ public class ProductController extends BaseController {
|
|
|
@GetMapping("/product-{id}.html")
|
|
|
public String detail(final Model model, @PathVariable("id") Integer productId) {
|
|
|
ProductDetail detail = productService.getProductDetailById(productId);
|
|
|
- if (detail == null) {
|
|
|
+ if (detail == null || detail.getValidFlag() == 0 || detail.getValidFlag() == 9) {
|
|
|
return super.errorPath();
|
|
|
}
|
|
|
model.addAttribute("productId", productId);
|