deleteuseraction.java

来自「移动彩信管理平台」· Java 代码 · 共 50 行

JAVA
50
字号
package com.my7g.zj.mobile.mms.web.action;

import com.my7g.zj.mobile.mms.business.IUserService;
import com.my7g.zj.mobile.mms.mapping.TbMmsCpUser;
import com.opensymphony.xwork2.ActionSupport;

public class DeleteUserAction extends ActionSupport {

	@Override
	public String execute() throws Exception {
		
		TbMmsCpUser user = userService.findUser(userId);
		if(user!=null){
			user.setIsUse((short)0);
			userService.updateUser(user);
			return SUCCESS;
		}
			
		return null;
	}

	private IUserService userService;
	private Integer userId;

	private Integer groupId;
	public Integer getGroupId() {
		System.out.println("get groupId   "+groupId);
		return groupId;
	}

	public void setGroupId(Integer groupId) {
		System.out.println("set groupId   "+groupId);
		this.groupId = groupId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public void setUserService(IUserService userService) {
		this.userService = userService;
	}

	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?