夜光序言:
我与你
不求欢喜
不记因果

正文:

package com.ken.wms.domain;
import java.util.Date;
/**
* 用户登入登出记录
*
* @author Ken
* @since
*/
public class AccessRecordDO {
/**
* 登入登出记录ID
* 仅当该记录从数据库取出时有效
*/
private Integer id;
/**
* 登陆用户ID
*/
private Integer userID;
/**
* 登陆用户名
*/
private String userName;
/**
* 记录类型,登入或登出
*/
private String accessType;
/**
* 登入或登出时间
*/
private Date accessTime;
/**
* 用户登入或登出对应的IP地址
*/
private String accessIP;
public Integer getId() {
return id;
}
public Integer getUserID() {
return userID;
}
public String getUserName() {
return userName;
}
public String getAccessIP() {
return accessIP;
}
public String getAccessType() {
return accessType;
}
public Date getAccessTime() {
return accessTime;
}
public void setId(Integer id) {
this.id = id;
}
public void setUserID(Integer userID) {
this.userID = userID;
}
public void setUserName(String userName) {
this.userName = userName;
}
public void setAccessType(String accessType) {
this.accessType = accessType;
}
public void setAccessTime(Date accessTime) {
this.accessTime = accessTime;
}
public void setAccessIP(String accessIP) {
this.accessIP = accessIP;
}
@Override
public String toString() {
return "AccessRecordDO{" +
"id=" + id +
", userID=" + userID +
", userName='" + userName + '\'' +
", accessType='" + accessType + '\'' +
", accessTime=" + accessTime +
", accessIP='" + accessIP + '\'' +
'}';
}
}
package com.ken.wms.domain;
/**
* 登入登出记录DTO
*
* @author
* @since
*/
public class AccessRecordDTO {
/**
* 登入登出记录ID
*/
private Integer id;
/**
* 登陆用户ID
*/
private Integer userID;
/**
* 登陆用户名
*/
private String userName;
/**
* 登入或登出时间
*/
private String accessTime;
/**
* 用户登入或登出对应的IP地址
*/
private String accessIP;
/**
* 记录类型,登入或登出
*/
private String accessType;
public Integer getId() {
return id;
}
public Integer getUserID() {
return userID;
}
public String getUserName() {
return userName;
}
public String getAccessTime() {
return accessTime;
}
public String getAccessIP() {
return accessIP;
}
public String getAccessType() {
return accessType;
}
public void setId(Integer id) {
this.id = id;
}
public void setUserID(Integer userID) {
this.userID = userID;
}
public void setUserName(String userName) {
this.userName = userName;
}
public void setAccessTime(String accessTime) {
this.accessTime = accessTime;
}
public void setAccessIP(String accessIP) {
this.accessIP = accessIP;
}
public void setAccessType(String accessType) {
this.accessType = accessType;
}
@Override
public String toString() {
return "AccessRecordDTO{" +
"id=" + id +
", userID=" + userID +
", userName='" + userName + '\'' +
", accessTime='" + accessTime + '\'' +
", accessIP='" + accessIP + '\'' +
", accessType='" + accessType + '\'' +
'}';
}
}
package com.ken.wms.domain;
/**
* 客户信息
* @author
*
*/
public class Customer {
private Integer id;// 客户ID
private String name;// 客户名
private String personInCharge;// 负责人
private String tel;// 联系电话
private String email;// 电子邮件
private String address;// 地址
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPersonInCharge() {
return personInCharge;
}
public void setPersonInCharge(String personInCharge) {
this.personInCharge = personInCharge;
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
@Override
public String toString() {
return "Customer [id=" + id + ", name=" + name + ", personInCharge=" + personInCharge + ", tel=" + tel
+ ", email=" + email + ", address=" + address + "]";
}
}
package com.ken.wms.domain;
/**
* 货物信息
* @author
*/
public class Goods {
private Integer id;// 货物ID
private String name;// 货物名
private String type;// 货物类型
private String size;// 货物规格
private Double value;// 货物价值
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getSize() {
return size;
}
public void setSize(String size) {
this.size = size;
}
public Double getValue() {
return value;
}
public void setValue(Double value) {
this.value = value;
}
@Override
public String toString() {
return "Goods [id=" + id + ", name=" + name + ", type=" + type + ", size=" + size + ", value=" + value + "]";
}
}
package com.ken.wms.domain;
/**
* 仓库信息
* @author
*
*/
public class Repository {
private Integer id;// 仓库ID
private String address;// 仓库地址
private String status;// 仓库状态
private String area;// 仓库面积
private String desc;// 仓库描述
private Integer adminID;//仓库管理员ID
private String adminName; //仓库管理员名字
public Integer getAdminID() {
return adminID;
}
public void setAdminID(Integer adminID) {
this.adminID = adminID;
}
public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
public String getAdminName() {
return adminName;
}
public void setAdminName(String adminName) {
this.adminName = adminName;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
@Override
public String toString() {
return "Repository [id=" + id + ", address=" + address + ", status=" + status + ", area=" + area + ", desc="
+ desc + ", adminID=" + adminID + ", adminName=" + adminName + "]";
}
}
package com.ken.wms.domain;
import java.sql.Date;
/**
* 仓库管理员信息
* @author
*
*/
public class RepositoryAdmin {
private Integer id;// 仓库管理员ID
private String name;// 姓名
private String sex;// 性别
private String tel;// 联系电话
private String address;// 地址
private Date birth;// 出生日期
private Integer repositoryBelongID;// 所属仓库ID
public Integer getRepositoryBelongID() {
return repositoryBelongID;
}
public void setRepositoryBelongID(Integer repositoryBelongID) {
this.repositoryBelongID = repositoryBelongID;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public Date getBirth() {
return birth;
}
public void setBirth(Date birth) {
this.birth = birth;
}
@Override
public String toString() {
return "RepositoryAdmin [id=" + id + ", name=" + name + ", sex=" + sex + ", tel=" + tel + ", address=" + address
+ ", birth=" + birth + ", repositoryBelongID=" + repositoryBelongID + "]";
}
}
package com.ken.wms.domain;
/**
* 系统使用的角色信息
* @author
*
*/
public class RoleDO {
private Integer id;// 角色ID
private String roleName;// 角色名
private String roleDesc;// 角色描述
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getRoleName() {
return roleName;
}
public void setRoleName(String roleName) {
this.roleName = roleName;
}
public String getRoleDesc() {
return roleDesc;
}
public void setRoleDesc(String roleDesc) {
this.roleDesc = roleDesc;
}
@Override
public String toString() {
return "RoleDO{" +
"id=" + id +
", roleName='" + roleName + '\'' +
", roleDesc='" + roleDesc + '\'' +
'}';
}
}
package com.ken.wms.domain;
/**
* URL 的角色角色权限信息
*
* @author
* @since
*/
public class RolePermissionDO {
/**
* URL 的角色角色权限信息名称
*/
private String name;
/**
* URL 的角色角色权限信息对应的 URL
*/
private String url;
/**
* URL 的角色角色权限信息对应的角色
*/
private String role;
/**
* 对应的 getter & setter
*/
public void setName(String name) {
this.name = name;
}
public void setUrl(String url) {
this.url = url;
}
public void setRole(String role) {
this.role = role;
}
public String getName() {
return name;
}
public String getUrl() {
return url;
}
public String getRole() {
return role;
}
@Override
public String toString() {
return "RolePermissionDO{" +
"name='" + name + '\'' +
", url='" + url + '\'' +
", role='" + role + '\'' +
'}';
}
}
package com.ken.wms.domain;
import java.util.Date;
/**
* 入库记录
*
* @author
*/
public class StockInDO {
/**
* 入库记录
*/
private Integer id;
/**
* 供应商ID
*/
private Integer supplierID;
/**
* 供应商名称
*/
private String supplierName;
/**
* 商品ID
*/
private Integer goodID;
/**
* 商品名称
*/
private String goodName;
/**
* 入库仓库ID
*/
private Integer repositoryID;
/**
* 入库数量
*/
private long number;
/**
* 入库日期
*/
private Date time;
/**
* 入库经手人
*/
private String personInCharge;
public Integer getRepositoryID() {
return repositoryID;
}
public void setRepositoryID(Integer repositoryID) {
this.repositoryID = repositoryID;
}
public Integer getSupplierID() {
return supplierID;
}
public void setSupplierID(Integer supplierID) {
this.supplierID = supplierID;
}
public Integer getGoodID() {
return goodID;
}
public void setGoodID(Integer goodID) {
this.goodID = goodID;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getSupplierName() {
return supplierName;
}
public void setSupplierName(String supplierName) {
this.supplierName = supplierName;
}
public String getGoodName() {
return goodName;
}
public void setGoodName(String goodName) {
this.goodName = goodName;
}
public long getNumber() {
return number;
}
public void setNumber(long number) {
this.number = number;
}
public Date getTime() {
return time;
}
public void setTime(Date time) {
this.time = time;
}
public String getPersonInCharge() {
return personInCharge;
}
public void setPersonInCharge(String personInCharge) {
this.personInCharge = personInCharge;
}
@Override
public String toString() {
return "StockInDO [id=" + id + ", supplierID=" + supplierID + ", supplierName=" + supplierName + ", goodID="
+ goodID + ", goodName=" + goodName + ", repositoryID=" + repositoryID + ", number=" + number
+ ", time=" + time + ", personInCharge=" + personInCharge + "]";
}
}
package com.ken.wms.domain;
import java.util.Date;
/**
* 出库记录
*
* @author Ken
*/
public class StockOutDO {
/**
* 出库记录ID
*/
private Integer id;
/**
* 客户ID
*/
private Integer customerID;
/**
* 客户名称
*/
private String customerName;
/**
* 商品ID
*/
private Integer goodID;
/**
* 商品名称
*/
private String goodName;
/**
* 出库仓库ID
*/
private Integer repositoryID;
/**
* 商品出库数量
*/
private long number;
/**
* 出库日期
*/
private Date time;
/**
* 出库经手人
*/
private String personInCharge;// 经手人
public Integer getRepositoryID() {
return repositoryID;
}
public void setRepositoryID(Integer repositoryID) {
this.repositoryID = repositoryID;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getCustomerID() {
return customerID;
}
public void setCustomerID(Integer customerID) {
this.customerID = customerID;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
public Integer getGoodID() {
return goodID;
}
public void setGoodID(Integer goodID) {
this.goodID = goodID;
}
public String getGoodName() {
return goodName;
}
public void setGoodName(String goodName) {
this.goodName = goodName;
}
public long getNumber() {
return number;
}
public void setNumber(long number) {
this.number = number;
}
public Date getTime() {
return time;
}
public void setTime(Date time) {
this.time = time;
}
public String getPersonInCharge() {
return personInCharge;
}
public void setPersonInCharge(String personInCharge) {
this.personInCharge = personInCharge;
}
@Override
public String toString() {
return "StockOutDO [id=" + id + ", customerID=" + customerID + ", customerName=" + customerName + ", goodID="
+ goodID + ", goodName=" + goodName + ", repositoryID=" + repositoryID + ", number=" + number
+ ", time=" + time + ", personInCharge=" + personInCharge + "]";
}
}
package com.ken.wms.domain;
/**
* 出库/入库记录DO
*
*/
public class StockRecordDTO {
/**
* 记录ID
*/
private Integer recordID;
/**
* 记录的类型(出库/入库)
*/
private String type;
/**
* 供应商(入库)或客户(出库)名称
*/
private String supplierOrCustomerName;
/**
* 商品名称
*/
private String goodsName;
/**
* 出库或入库仓库ID
*/
private Integer repositoryID;
/**
* 出库或入库数量
*/
private long number;
/**
* 出库或入库时间
*/
private String time;
/**
* 出库或入库经手人
*/
private String personInCharge;
public Integer getRecordID() {
return recordID;
}
public String getType() {
return type;
}
public String getSupplierOrCustomerName() {
return supplierOrCustomerName;
}
public String getGoodsName() {
return goodsName;
}
public Integer getRepositoryID() {
return repositoryID;
}
public long getNumber() {
return number;
}
public String getTime() {
return time;
}
public String getPersonInCharge() {
return personInCharge;
}
public void setRecordID(Integer recordID) {
this.recordID = recordID;
}
public void setType(String type) {
this.type = type;
}
public void setSupplierOrCustomerName(String supplierOrCustomerName) {
this.supplierOrCustomerName = supplierOrCustomerName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
}
public void setRepositoryID(Integer repositoryID) {
this.repositoryID = repositoryID;
}
public void setNumber(long number) {
this.number = number;
}
public void setTime(String time) {
this.time = time;
}
public void setPersonInCharge(String personInCharge) {
this.personInCharge = personInCharge;
}
@Override
public String toString() {
return "StockRecordDTO{" +
"recordID=" + recordID +
", type='" + type + '\'' +
", supplierOrCustomerName='" + supplierOrCustomerName + '\'' +
", goodsName='" + goodsName + '\'' +
", repositoryID=" + repositoryID +
", number=" + number +
", time=" + time +
", personInCharge='" + personInCharge + '\'' +
'}';
}
}
package com.ken.wms.domain;
/**
* 出库/入库记录DO
*
*/
public class StockRecordDTO {
/**
* 记录ID
*/
private Integer recordID;
/**
* 记录的类型(出库/入库)
*/
private String type;
/**
* 供应商(入库)或客户(出库)名称
*/
private String supplierOrCustomerName;
/**
* 商品名称
*/
private String goodsName;
/**
* 出库或入库仓库ID
*/
private Integer repositoryID;
/**
* 出库或入库数量
*/
private long number;
/**
* 出库或入库时间
*/
private String time;
/**
* 出库或入库经手人
*/
private String personInCharge;
public Integer getRecordID() {
return recordID;
}
public String getType() {
return type;
}
public String getSupplierOrCustomerName() {
return supplierOrCustomerName;
}
public String getGoodsName() {
return goodsName;
}
public Integer getRepositoryID() {
return repositoryID;
}
public long getNumber() {
return number;
}
public String getTime() {
return time;
}
public String getPersonInCharge() {
return personInCharge;
}
public void setRecordID(Integer recordID) {
this.recordID = recordID;
}
public void setType(String type) {
this.type = type;
}
public void setSupplierOrCustomerName(String supplierOrCustomerName) {
this.supplierOrCustomerName = supplierOrCustomerName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
}
public void setRepositoryID(Integer repositoryID) {
this.repositoryID = repositoryID;
}
public void setNumber(long number) {
this.number = number;
}
public void setTime(String time) {
this.time = time;
}
public void setPersonInCharge(String personInCharge) {
this.personInCharge = personInCharge;
}
@Override
public String toString() {
return "StockRecordDTO{" +
"recordID=" + recordID +
", type='" + type + '\'' +
", supplierOrCustomerName='" + supplierOrCustomerName + '\'' +
", goodsName='" + goodsName + '\'' +
", repositoryID=" + repositoryID +
", number=" + number +
", time=" + time +
", personInCharge='" + personInCharge + '\'' +
'}';
}
}
package com.ken.wms.domain;
/**
* 仓库库存
*
* @author
*
*/
public class Storage {
private Integer goodsID;// 货物ID
private String goodsName;// 货物名称
private String goodsSize;// 货物规格
private String goodsType;// 货物类型
private Double goodsValue;// 货物价值
private Integer repositoryID;// 仓库ID
private Long number;// 库存数量
public Integer getGoodsID() {
return goodsID;
}
public void setGoodsID(Integer goodsID) {
this.goodsID = goodsID;
}
public String getGoodsName() {
return goodsName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
}
public String getGoodsSize() {
return goodsSize;
}
public void setGoodsSize(String goodsSize) {
this.goodsSize = goodsSize;
}
public String getGoodsType() {
return goodsType;
}
public void setGoodsType(String goodsType) {
this.goodsType = goodsType;
}
public Double getGoodsValue() {
return goodsValue;
}
public void setGoodsValue(Double goodsValue) {
this.goodsValue = goodsValue;
}
public Integer getRepositoryID() {
return repositoryID;
}
public void setRepositoryID(Integer repositoryID) {
this.repositoryID = repositoryID;
}
public Long getNumber() {
return number;
}
public void setNumber(Long number) {
this.number = number;
}
@Override
public String toString() {
return "Storage [goodsID=" + goodsID + ", goodsName=" + goodsName + ", goodsSize=" + goodsSize + ", goodsType="
+ goodsType + ", goodsValue=" + goodsValue + ", repositoryID=" + repositoryID + ", number=" + number
+ "]";
}
}
package com.ken.wms.domain;
/**
* 供应商信息
*
* @author
*
*/
public class Supplier {
private Integer id;// 供应商ID
private String name;// 供应商名
private String personInCharge;// 负责人
private String tel;// 联系电话
private String email;// 电子邮件
private String address;// 供应商地址
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPersonInCharge() {
return personInCharge;
}
public void setPersonInCharge(String personInCharge) {
this.personInCharge = personInCharge;
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
@Override
public String toString() {
return "Supplier [id=" + id + ", name=" + name + ", personInCharge=" + personInCharge + ", tel=" + tel
+ ", email=" + email + ", address=" + address + "]";
}
}
package com.ken.wms.domain;
/**
* 系统的使用用户
* @author
*
*/
public class User {
private Integer id;// 用户ID
private String userName;// 用户名
private String password;// 用户密码
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public String toString() {
return "User [id=" + id + ", userName=" + userName + ", password=" + password + "]";
}
}
package com.ken.wms.domain;
/**
* 用户账户信息(数据传输对象)
*/
public class UserInfoDO {
/**
* 用户ID
*/
private Integer userID;
/**
* 用户名
*/
private String userName;
/**
* 用户密码(已加密)
*/
private String password;
/**
* 用户账户属性的 getter 以及 setter
*/
public String getUserName() {
return userName;
}
public Integer getUserID() {
return userID;
}
public String getPassword() {
return password;
}
public void setUserID(Integer userID) {
this.userID = userID;
}
public void setUserName(String userName) {
this.userName = userName;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public String toString() {
return "UserInfoDO{" +
"userID=" + userID +
", userName='" + userName + '\'' +
", password='" + password + '\'' +
'}';
}
}
package com.ken.wms.domain;
import java.util.ArrayList;
import java.util.List;
/**
* 用户账户信息(数据传输对象)
*/
public class UserInfoDTO {
/**
* 用户ID
*/
private Integer userID;
/**
* 用户名
*/
private String userName;
/**
* 用户密码(已加密)
*/
private String password;
/**
* 用户角色
*/
private List<String> role = new ArrayList<>();
/**
* 用户账户属性的 getter 以及 setter
*/
public String getUserName() {
return userName;
}
public List<String> getRole() {
return role;
}
public Integer getUserID() {
return userID;
}
public String getPassword() {
return password;
}
public void setUserID(Integer userID) {
this.userID = userID;
}
public void setUserName(String userName) {
this.userName = userName;
}
public void setPassword(String password) {
this.password = password;
}
public void setRole(List<String> role) {
this.role = role;
}
@Override
public String toString() {
return "UserInfoDTO{" +
"userID=" + userID +
", userName='" + userName + '\'' +
", password='" + password + '\'' +
", role=" + role +
'}';
}
}
package com.ken.wms.domain;
import java.util.Date;
/**
* 用户操作记录DO
*
*/
public class UserOperationRecordDO {
/**
* 记录ID
*/
private Integer id;
/**
* 执行操作的用户ID
*/
private Integer userID;
/**
* 执行操作的用户名
*/
private String userName;
/**
* 操作的名称
*/
private String operationName;
/**
* 执行操作的时间
*/
private Date operationTime;
/**
* 执行操作结果
*/
private String operationResult;
public void setId(Integer id) {
this.id = id;
}
public void setUserID(Integer userID) {
this.userID = userID;
}
public void setUserName(String userName) {
this.userName = userName;
}
public void setOperationName(String operationName) {
this.operationName = operationName;
}
public void setOperationTime(Date operationTime) {
this.operationTime = operationTime;
}
public void setOperationResult(String operationResult) {
this.operationResult = operationResult;
}
public Integer getId() {
return id;
}
public Integer getUserID() {
return userID;
}
public String getUserName() {
return userName;
}
public String getOperationName() {
return operationName;
}
public Date getOperationTime() {
return operationTime;
}
public String getOperationResult() {
return operationResult;
}
@Override
public String toString() {
return "UserOperationRecordDO{" +
"id=" + id +
", userID=" + userID +
", userName='" + userName + '\'' +
", operationName='" + operationName + '\'' +
", operationTime=" + operationTime +
", operationResult='" + operationResult + '\'' +
'}';
}
}
package com.ken.wms.domain;
/**
* 用户操作记录DTO
*
*/
public class UserOperationRecordDTO {
/**
* 操作记录ID
*/
private Integer id;
/**
* 执行操作的用户ID
*/
private Integer userID;
/**
* 执行操作的用户名
*/
private String userName;
/**
* 操作的名称
*/
private String operationName;
/**
* 操作执行的时间
*/
private String operationTime;
/**
* 操作执行的结果
*/
private String operationResult;
public Integer getId() {
return id;
}
public Integer getUserID() {
return userID;
}
public String getUserName() {
return userName;
}
public String getOperationName() {
return operationName;
}
public String getOperationTime() {
return operationTime;
}
public String getOperationResult() {
return operationResult;
}
public void setId(Integer id) {
this.id = id;
}
public void setUserID(Integer userID) {
this.userID = userID;
}
public void setUserName(String userName) {
this.userName = userName;
}
public void setOperationName(String operationName) {
this.operationName = operationName;
}
public void setOperationTime(String operationTime) {
this.operationTime = operationTime;
}
public void setOperationResult(String operationResult) {
this.operationResult = operationResult;
}
@Override
public String toString() {
return "UserOperationRecordDTO{" +
"id=" + id +
", userID=" + userID +
", userName='" + userName + '\'' +
", operationName='" + operationName + '\'' +
", operationTime='" + operationTime + '\'' +
", operationResult='" + operationResult + '\'' +
'}';
}
}