package sy.controller; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import sy.httpModel.EasyuiDataGrid; import sy.httpModel.EasyuiDataGridJson; import sy.httpModel.Json; import sy.httpModel.Portal; import sy.service.PortalServiceI; /** * * 项目名称:sypro * 类名称:PortalController * 类描述: * 创建人:君无邪 * 创建时间:2015年11月15日 下午4:58:21 * 修改备注: https://www.java214.com * @version 1.0 * */ @Controller @RequestMapping("/portalController") public class PortalController extends BaseController { private static final Logger logger = Logger.getLogger(PortalController.class); private PortalServiceI protalService; public PortalServiceI getProtalService() { return protalService; } @Autowired public void setProtalService(PortalServiceI protalService) { this.protalService = protalService; } @RequestMapping(params = "datagrid") @ResponseBody public EasyuiDataGridJson datagrid(EasyuiDataGrid dg, Portal portal) { return protalService.datagrid(dg, portal); } @RequestMapping(params = "show") @ResponseBody public EasyuiDataGridJson show(EasyuiDataGrid dg, Portal portal) { return datagrid(dg, portal); } @RequestMapping(params = "portal") public String show() { return "/admin/portal"; } @RequestMapping(params = "del") @ResponseBody public Json del(String ids) { Json j = new Json(); protalService.del(ids); j.setSuccess(true); return j; } @RequestMapping(params = "edit") @ResponseBody public Json edit(Portal portal) { Json j = new Json(); protalService.edit(portal); j.setMsg("编辑成功!"); j.setSuccess(true); return j; } @RequestMapping(params = "add") @ResponseBody public Json add(Portal portal) { Json j = new Json(); protalService.add(portal); j.setSuccess(true); return j; } }


qiheideguang LV18
2024年12月4日
bluerstar LV1
2024年10月23日
zhengguangshun LV4
2024年8月25日
chn-lei LV2
2024年7月31日
gaowang LV1
2024年5月29日
poilkj1313 LV1
2024年5月10日
zpppppppppppppppppp
2024年4月20日
暂无贡献等级
1303891 LV1
2024年4月14日
123dwda
2024年3月17日
暂无贡献等级
aachl1 LV5
2024年1月16日