|
@@ -70,14 +70,14 @@ public class HeheHomeTypeProductController extends BaseController {
|
|
|
}
|
|
|
heheHomeTypeProductService.save(heheHomeTypeProduct);
|
|
|
addMessage(redirectAttributes, "保存商品成功");
|
|
|
- return "redirect:"+Global.getAdminPath()+"/hehe/heheHomeTypeProduct/?repage";
|
|
|
+ return "redirect:" + Global.getAdminPath() + "/hehe/heheHomeTypeProduct/?repage&homeTypeId=" + heheHomeTypeProduct.getHomeTypeId();
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "delete")
|
|
|
public String delete(HeheHomeTypeProduct heheHomeTypeProduct, RedirectAttributes redirectAttributes) {
|
|
|
heheHomeTypeProductService.delete(heheHomeTypeProduct);
|
|
|
addMessage(redirectAttributes, "删除商品成功");
|
|
|
- return "redirect:"+Global.getAdminPath()+"/hehe/heheHomeTypeProduct/?repage";
|
|
|
+ return "redirect:" + Global.getAdminPath() + "/hehe/heheHomeTypeProduct/?repage&homeTypeId=" + heheHomeTypeProduct.getHomeTypeId();
|
|
|
}
|
|
|
|
|
|
@ResponseBody
|