src/com/hp/action/RoleAction.java

(开头部分) 2KB

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

package com.hp.action;

import java.util.ArrayList;
import java.util.List;

import com.hp.entity.Role;

public class RoleAction  extends BaseAction {
	 /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Role role;
	private List<Role> roleListAll;
	 private String message;
	 private String method;
	 
	     public List<Role> getRoleListAll() {
		return roleListAll;
	}

	public void setRoleListAll(List<Role> roleListAll) {
		this.roleListAll = roleListAll;
	}

		public String addRolePre() {
	    	 return SUCCESS;
	     }
	   
	     public String addRole() {
//	    	 if(roleService.findRoleByRoleName(role.getRolename())!=null){
//	    		 	message = "角色名不能相同";
//	    			return INPUT;
//	    	 }
	    	 System.out.println("role++++++++++++++");
	    	 roleService.addRole(role);
	    	 return SUCCESS;
	     }
	     public String modifyRolePre() {
	    	 role = roleService.findRoleByID(role.getId());
	    	 return SUCCESS;
	     }
	     public String modifyRole() {
	    	 roleService.modifyRole(role);
	    	 return SUCCESS;
	     }
	     public String RoleListAll() {
	    	 roleListAll = roleService.findRoleListAll();
	    	 //message = "";
	    	 if(null != method) {
	    		 message = "";
	    		 getSession().put("message", message);
	    		 return ERROR;
	    	 }
	    	 getSession().put("roleListAll", roleListAll);
	    	 
	    	 return SUCCESS;
	     }
	   
	     public String deleteRole() {
后面还有 44 行代码,购买后查看完整代码

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

AI 解读 AI

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

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