|
@@ -18,20 +18,19 @@ public class RedirectController {
|
|
*/
|
|
*/
|
|
@GetMapping("/supplier/prolist-{id}.html")
|
|
@GetMapping("/supplier/prolist-{id}.html")
|
|
public String toSupplier(@PathVariable("id") Integer supplierId) {
|
|
public String toSupplier(@PathVariable("id") Integer supplierId) {
|
|
- return "redirect:/supplier/index.html?id=" + supplierId;
|
|
|
|
|
|
+ return "redirect:/supplier/"+ supplierId +".html";
|
|
}
|
|
}
|
|
-
|
|
|
|
@GetMapping("/web/supplier/view/supplierHomePage.jsp")
|
|
@GetMapping("/web/supplier/view/supplierHomePage.jsp")
|
|
public String toSupplier2(Integer shopId) {
|
|
public String toSupplier2(Integer shopId) {
|
|
- return "redirect:/supplier/index.html?id=" + shopId;
|
|
|
|
|
|
+ return "redirect:/supplier/"+ shopId +".html";
|
|
}
|
|
}
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 供应商商品页【旧】
|
|
|
|
- */
|
|
|
|
@GetMapping("/supplier/productlist-{id}.html")
|
|
@GetMapping("/supplier/productlist-{id}.html")
|
|
public String toSupplierProduct(@PathVariable("id") Integer supplierId) {
|
|
public String toSupplierProduct(@PathVariable("id") Integer supplierId) {
|
|
- return "redirect:/supplier/index.html?id=" + supplierId;
|
|
|
|
|
|
+ return "redirect:/supplier/"+ supplierId +".html";
|
|
|
|
+ }
|
|
|
|
+ @GetMapping("/supplier/index.html")
|
|
|
|
+ public String toSupplier3(@RequestParam("id") Integer supplierId) {
|
|
|
|
+ return "redirect:/supplier/"+ supplierId +".html";
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -43,17 +42,25 @@ public class RedirectController {
|
|
if (Integer.valueOf("189").equals(type)) {
|
|
if (Integer.valueOf("189").equals(type)) {
|
|
return "redirect:/flea-market/list.html";
|
|
return "redirect:/flea-market/list.html";
|
|
}
|
|
}
|
|
- return "redirect:/topic.html?type=" + type;
|
|
|
|
|
|
+ return "redirect:/topic-"+type+".html";
|
|
|
|
+ }
|
|
|
|
+ @GetMapping("/topic.html")
|
|
|
|
+ public String toTopic2(@RequestParam("type") Integer type) {
|
|
|
|
+ return "redirect:/topic-"+type+".html";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 项目仪器详情【旧】
|
|
* 项目仪器详情【旧】
|
|
*/
|
|
*/
|
|
@GetMapping("/cmpage/info-2-{id}.html")
|
|
@GetMapping("/cmpage/info-2-{id}.html")
|
|
public String toequipment(@PathVariable("id") Integer equipmentId) {
|
|
public String toequipment(@PathVariable("id") Integer equipmentId) {
|
|
- return "redirect:/equipment/detail.html?id=" + equipmentId;
|
|
|
|
|
|
+ return "redirect:/equipment/"+equipmentId+".html";
|
|
|
|
+ }
|
|
|
|
+ @GetMapping("/equipment/detail.html")
|
|
|
|
+ public String toequipment2(@RequestParam("id") Integer equipmentId) {
|
|
|
|
+ return "redirect:/equipment/"+equipmentId+".html";
|
|
}
|
|
}
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 直播页面【旧】
|
|
* 直播页面【旧】
|
|
*/
|
|
*/
|
|
@@ -67,11 +74,15 @@ public class RedirectController {
|
|
*/
|
|
*/
|
|
@GetMapping("/cmpage/info-4-{id}.html")
|
|
@GetMapping("/cmpage/info-4-{id}.html")
|
|
public String toFreePage(@PathVariable("id") Integer id) {
|
|
public String toFreePage(@PathVariable("id") Integer id) {
|
|
- return "redirect:/page.html?id=" + id;
|
|
|
|
|
|
+ return "redirect:/page-"+id+".html";
|
|
|
|
+ }
|
|
|
|
+ @GetMapping("/page.html")
|
|
|
|
+ public String toFreePage2(Integer id) {
|
|
|
|
+ return "redirect:/page-"+id+".html";
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 分类详情
|
|
|
|
|
|
+ * 产品仪器
|
|
*/
|
|
*/
|
|
@GetMapping("/cmpage/info-5-{id}.html")
|
|
@GetMapping("/cmpage/info-5-{id}.html")
|
|
public String classificationDetails(@PathVariable("id") Integer id,String name) {
|
|
public String classificationDetails(@PathVariable("id") Integer id,String name) {
|
|
@@ -79,9 +90,12 @@ public class RedirectController {
|
|
if (id == 301) {
|
|
if (id == 301) {
|
|
return "redirect:/product/temporary.html?id=" + id + "&name=" + name;
|
|
return "redirect:/product/temporary.html?id=" + id + "&name=" + name;
|
|
}
|
|
}
|
|
- return "redirect:/product/instrument.html?id=" + id+"&name="+name;
|
|
|
|
|
|
+ return "redirect:/product/type-"+id+".html?name="+name;
|
|
|
|
+ }
|
|
|
|
+ @GetMapping("/product/instrument.html")
|
|
|
|
+ public String classificationDetails2(Integer id) {
|
|
|
|
+ return "redirect:/product/type-"+id+".html";
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* 活动专题
|
|
* 活动专题
|