src/main/java/com/finance/controller/RoleController.java

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.finance.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.finance.entity.PageBean;
import com.finance.entity.Role;
import com.finance.service.RoleService;
import com.finance.util.ResponseUtil;
import com.finance.util.StringUtil;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

/**
 * 角色Controller层
 * 
 * @author mickkong
 *
 */
@Controller
public class RoleController {
	
	@Resource
	private RoleService roleService;
	
	/**
	 * 角色信息页面
	 */
	@RequestMapping("/roleManage.do")
	public String roleManage(ModelMap map) {
		return "roleManage";
	}
	
	/**
	 * 查询角色集合
	 * 
	 * @param page
	 * @param rows
	 * @param s_role
	 * @param response
	 * @return
	 * @throws Exception
	 */
	@RequestMapping("/rolelist.do")
	public String list(@RequestParam(value = "page", required = false) String page,
			@RequestParam(value = "rows", required = false) String rows, Role s_role, HttpServletResponse response)
			throws Exception {
		PageBean pageBean = new PageBean(Integer.parseInt(page), Integer.parseInt(rows));
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("rolename", StringUtil.formatLike(s_role.getRolename()));
后面还有 62 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。