国家化封装
parent
336f808d58
commit
daf65deb32
@ -1,4 +1,4 @@
|
||||
package cn.estsh.i3plus.pojo.model.base;
|
||||
package cn.estsh.i3plus.pojo.base.bean;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
@ -1,4 +1,4 @@
|
||||
package cn.estsh.i3plus.pojo.model.common;
|
||||
package cn.estsh.i3plus.pojo.base.common;
|
||||
|
||||
import io.swagger.annotations.ApiParam;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cn.estsh.i3plus.pojo.model.common;
|
||||
package cn.estsh.i3plus.pojo.base.common;
|
||||
|
||||
/**
|
||||
* @Description: 分页辅助工具
|
@ -1,31 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>i3plus-pojo</artifactId>
|
||||
<groupId>i3plus.pojo</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>i3plus-pojo-factory</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>i3plus.pojo</groupId>
|
||||
<artifactId>i3plus-pojo-model</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
|
||||
</project>
|
@ -1,10 +0,0 @@
|
||||
create database i3wms;
|
||||
use i3wms;
|
||||
|
||||
create table machine_factory(
|
||||
id long,
|
||||
factory_name varchar(50)
|
||||
);
|
||||
insert into machine_factory values(1,'geely');
|
||||
insert into machine_factory values(2,'benz');
|
||||
insert into machine_factory values(3,'bmw');
|
@ -1,6 +1,6 @@
|
||||
package cn.estsh.i3plus.pojo.factory.bean;
|
||||
package cn.estsh.i3plus.pojo.mes;
|
||||
|
||||
import cn.estsh.i3plus.pojo.model.base.BaseBean;
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package pojo;
|
||||
package cn.estsh.i3plus.pojo.mes;
|
||||
|
||||
/**
|
||||
* @Description :
|
@ -1,88 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.model.busi;
|
||||
|
||||
import io.swagger.annotations.ApiParam;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : alwaysfrin
|
||||
* @CreateDate : 2018-09-04 15:58
|
||||
* @Modify:
|
||||
**/
|
||||
public class OperateUser implements Serializable {
|
||||
|
||||
@ApiParam("用户代码")
|
||||
private String userCode;
|
||||
|
||||
@ApiParam("用户姓名")
|
||||
private String userName;
|
||||
|
||||
@ApiParam("站点代码")
|
||||
private String siteCode;
|
||||
|
||||
@ApiParam("语言代码")
|
||||
private String languageCode;
|
||||
|
||||
@ApiParam("登陆方式")
|
||||
private String loginType;
|
||||
|
||||
public OperateUser() {
|
||||
}
|
||||
|
||||
public OperateUser(String userCode, String userName, String siteCode) {
|
||||
this.userCode = userCode;
|
||||
this.userName = userName;
|
||||
this.siteCode = siteCode;
|
||||
}
|
||||
|
||||
public OperateUser(String userCode, String userName, String siteCode, String languageCode, String loginType) {
|
||||
this.userCode = userCode;
|
||||
this.userName = userName;
|
||||
this.siteCode = siteCode;
|
||||
this.languageCode = languageCode;
|
||||
this.loginType = loginType;
|
||||
}
|
||||
|
||||
public String getUserCode() {
|
||||
return userCode;
|
||||
}
|
||||
|
||||
public void setUserCode(String userCode) {
|
||||
this.userCode = userCode;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getSiteCode() {
|
||||
return siteCode;
|
||||
}
|
||||
|
||||
public void setSiteCode(String siteCode) {
|
||||
this.siteCode = siteCode;
|
||||
}
|
||||
|
||||
public String getLanguageCode() {
|
||||
return languageCode;
|
||||
}
|
||||
|
||||
public void setLanguageCode(String languageCode) {
|
||||
this.languageCode = languageCode;
|
||||
}
|
||||
|
||||
public String getLoginType() {
|
||||
return loginType;
|
||||
}
|
||||
|
||||
public void setLoginType(String loginType) {
|
||||
this.loginType = loginType;
|
||||
}
|
||||
}
|
||||
|
@ -1,189 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.model.busi;
|
||||
|
||||
import cn.estsh.i3plus.pojo.model.common.Pager;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : alwaysfrin
|
||||
* @CreateDate : 2018-09-04 15:58
|
||||
* @Modify:
|
||||
**/
|
||||
public class ResultBean<Obj>{
|
||||
@ApiParam("是否成功")
|
||||
private boolean success;
|
||||
|
||||
@ApiParam("信息代码-国际化")
|
||||
private String code;
|
||||
|
||||
@ApiParam("操作消息")
|
||||
private String msg;
|
||||
|
||||
@ApiParam("错误消息")
|
||||
private String errorMsg;
|
||||
|
||||
@ApiParam("http路径")
|
||||
private String url;
|
||||
|
||||
@ApiParam("List结果集")
|
||||
private List<Obj> resultList;
|
||||
|
||||
@ApiParam("单个结果")
|
||||
private Obj resultObject;
|
||||
|
||||
@ApiParam("Map结果集")
|
||||
private Map<String, Object> resultMap;
|
||||
|
||||
@ApiParam("翻页操作")
|
||||
private Pager pager;
|
||||
|
||||
@ApiParam("总记录数")
|
||||
private int totalCount;
|
||||
|
||||
public ResultBean() {
|
||||
success = false;
|
||||
}
|
||||
|
||||
public ResultBean(boolean success,String code, String message) {
|
||||
this.success = success;
|
||||
this.code = code;
|
||||
if(this.success) {
|
||||
this.msg = message;
|
||||
}else{
|
||||
this.errorMsg = message;
|
||||
}
|
||||
}
|
||||
|
||||
public ResultBean(boolean success,String code, String msg, String errorMsg) {
|
||||
this.success = success;
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
|
||||
public ResultBean(boolean success, List<Obj> resultList) {
|
||||
this.success = success;
|
||||
this.resultList = resultList;
|
||||
}
|
||||
|
||||
public ResultBean(boolean success, Obj resultObject) {
|
||||
this.success = success;
|
||||
this.resultObject = resultObject;
|
||||
}
|
||||
|
||||
public ResultBean(boolean success, String message, List<Obj> resultList) {
|
||||
this.success = success;
|
||||
this.msg = message;
|
||||
this.resultList = resultList;
|
||||
}
|
||||
|
||||
public ResultBean(boolean success, String message, Obj resultObject) {
|
||||
this.success = success;
|
||||
this.msg = message;
|
||||
this.resultObject = resultObject;
|
||||
}
|
||||
|
||||
public ResultBean(boolean success, List<Obj> resultList, Pager pager) {
|
||||
this.success = success;
|
||||
this.resultList = resultList;
|
||||
this.pager = pager;
|
||||
}
|
||||
|
||||
public ResultBean(boolean success, String message, List<Obj> resultList, Pager pager) {
|
||||
this.success = success;
|
||||
this.msg = message;
|
||||
this.resultList = resultList;
|
||||
this.pager = pager;
|
||||
}
|
||||
|
||||
public ResultBean(boolean success, String message, Obj resultObject, Pager pager) {
|
||||
this.success = success;
|
||||
this.msg = message;
|
||||
this.resultObject = resultObject;
|
||||
this.pager = pager;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public List<Obj> getResultList() {
|
||||
return resultList;
|
||||
}
|
||||
|
||||
public void setResultList(List<Obj> resultList) {
|
||||
this.resultList = resultList;
|
||||
}
|
||||
|
||||
public Object getResultObject() {
|
||||
return resultObject;
|
||||
}
|
||||
|
||||
public void setResultObject(Obj resultObject) {
|
||||
this.resultObject = resultObject;
|
||||
}
|
||||
|
||||
public Pager getPager() {
|
||||
return pager;
|
||||
}
|
||||
|
||||
public void setPager(Pager pager) {
|
||||
this.pager = pager;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public String getErrorMsg() {
|
||||
return errorMsg;
|
||||
}
|
||||
|
||||
public void setErrorMsg(String errorMsg) {
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
|
||||
public int getTotalCount() {
|
||||
return pager != null ? pager.getTotalRows() : this.totalCount;
|
||||
}
|
||||
|
||||
public void setTotalCount(int totalCount) {
|
||||
this.totalCount = totalCount;
|
||||
}
|
||||
|
||||
public Map<String, Object> getResultMap() {
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
public void setResultMap(Map<String, Object> resultMap) {
|
||||
this.resultMap = resultMap;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.model.common;
|
||||
|
||||
/**
|
||||
* @Description : 验证工具
|
||||
* @Reference :
|
||||
* @Author : alwaysfrin
|
||||
* @CreateDate : 2018-09-04 15:58
|
||||
* @Modify:
|
||||
**/
|
||||
public class ValidatorBean {
|
||||
}
|
Loading…
Reference in New Issue