📄 departmentmodel.java
字号:
package com.sxit.wap.department;import java.sql.*;import java.util.*;import com.sxit.wap.common.*;import com.sxit.wap.exception.*;public class DepartmentModel implements java.io.Serializable { int id = 0; int parentId = 0; String name = ""; int groupId = 0; int orderId = 0; public DepartmentModel(int id, int parentId, String name, int groupId, int orderId){ this.id = id; this.parentId = parentId; if (name == null) name = ""; this.name = name; this.groupId = groupId; this.orderId = orderId; } public DepartmentModel(){ } public int getId() { return id; } public int getParentId() { return parentId; } public String getName() { if (name == null) name = ""; return name; } public int getGroupId() { return groupId; } public int getOrderId() { return orderId; } public void setId(int id) { this.id = id; } public void setParentId(int parentId) { this.parentId = parentId; } public void setName(String name) { this.name = name; } public void setGroupId(int groupId) { this.groupId = groupId; } public void setOrderId(int orderId) { this.orderId = orderId; } public String toString() { String value = ""; value+= "id=" + id + "\n"; value+= "parentId=" + parentId + "\n"; value+= "name=" + name + "\n"; value+= "groupId=" + groupId + "\n"; value+= "orderId=" + orderId + "\n"; return value; } public void copy(DepartmentModel other) { this.setId(other.getId()); this.setParentId(other.getParentId()); this.setName(other.getName()); this.setGroupId(other.getGroupId()); this.setOrderId(other.getOrderId()); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -