@SecurityMapping( title = "楼层模板品牌加载", value = "/admin/goods_floor_brand_load.htm*", rtype = "admin", rname = "首页楼层", rcode = "goods_floor", rgroup = "商品") @RequestMapping("/admin/goods_floor_brand_load.htm") public ModelAndView goods_floor_brand_load( HttpServletRequest request, HttpServletResponse response, String currentPage, String name) { ModelAndView mv = new JModelAndView( "admin/blue/goods_floor_brand_load.html", configService.getSysConfig(), this.userConfigService.getUserConfig(), 0, request, response); GoodsBrandQueryObject qo = new GoodsBrandQueryObject(currentPage, mv, "sequence", "asc"); qo.addQuery("obj.audit", new SysMap("audit", 1), "="); if (!CommUtil.null2String(name).equals("")) { qo.addQuery("obj.name", new SysMap("name", "%" + name.trim() + "%"), "like"); } IPageList pList = this.goodsBrandService.list(qo); CommUtil.saveIPageList2ModelAndView( CommUtil.getURL(request) + "/admin/goods_floor_brand_load.htm", "", "&name=" + CommUtil.null2String(name), pList, mv); return mv; }
@SecurityMapping( title = "楼层模板品牌编辑", value = "/admin/goods_floor_brand.htm*", rtype = "admin", rname = "首页楼层", rcode = "goods_floor", rgroup = "商品") @RequestMapping("/admin/goods_floor_brand.htm") public ModelAndView goods_floor_brand( HttpServletRequest request, HttpServletResponse response, String id) { ModelAndView mv = new JModelAndView( "admin/blue/goods_floor_brand.html", configService.getSysConfig(), this.userConfigService.getUserConfig(), 0, request, response); GoodsFloor obj = this.goodsfloorService.getObjById(CommUtil.null2Long(id)); GoodsBrandQueryObject qo = new GoodsBrandQueryObject("1", mv, "sequence", "asc"); qo.addQuery("obj.audit", new SysMap("audit", 1), "="); IPageList pList = this.goodsBrandService.list(qo); CommUtil.saveIPageList2ModelAndView( CommUtil.getURL(request) + "/admin/goods_floor_brand_load.htm", "", "", pList, mv); mv.addObject("obj", obj); mv.addObject("gf_tools", this.gf_tools); return mv; }