init
This commit is contained in:
14
op-model/src/main/java/cn/feast/coding/model/Common.java
Normal file
14
op-model/src/main/java/cn/feast/coding/model/Common.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package cn.feast.coding.model;
|
||||
|
||||
public class Common {
|
||||
public static final String SSH_FRAME = "ssh";
|
||||
|
||||
public String classNameToFiledName(String className) {
|
||||
return uncapFirst(className);
|
||||
}
|
||||
|
||||
public String uncapFirst(String str) {
|
||||
str = str.substring(0, 1).toLowerCase() + str.substring(1);
|
||||
return str;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
package cn.feast.coding.model.generator;
|
||||
|
||||
import cn.feast.coding.model.Common;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class Colunm extends Common {
|
||||
private Integer id;
|
||||
private String colunmName;
|
||||
private String pageColunmName;
|
||||
private String filedName;
|
||||
private String colunmType;
|
||||
private String showName;
|
||||
private Integer editStyle;
|
||||
private Integer isPrimary;
|
||||
private Integer isShowed;
|
||||
private Integer tableId;
|
||||
private Table table;
|
||||
|
||||
public void frameAdapter(String frame){
|
||||
if(frame.equals(SSH_FRAME)){
|
||||
this.pageColunmName = classNameToFiledName(table.getClassName()) + "." + colunmName;
|
||||
}else{
|
||||
this.pageColunmName = colunmName;
|
||||
}
|
||||
}
|
||||
public String getPageColunmName() {
|
||||
return pageColunmName;
|
||||
}
|
||||
|
||||
public void setPageColunmName(String pageColunmName) {
|
||||
this.pageColunmName = pageColunmName;
|
||||
}
|
||||
|
||||
public Table getTable() {
|
||||
return table;
|
||||
}
|
||||
|
||||
public void setTable(Table table) {
|
||||
this.table = table;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getColunmName() {
|
||||
return colunmName;
|
||||
}
|
||||
|
||||
public void setColunmName(String colunmName) {
|
||||
this.colunmName = colunmName;
|
||||
}
|
||||
|
||||
public String getFiledName() {
|
||||
return filedName;
|
||||
}
|
||||
|
||||
public void setFiledName(String filedName) {
|
||||
this.filedName = filedName;
|
||||
}
|
||||
|
||||
public String getColunmType() {
|
||||
return colunmType;
|
||||
}
|
||||
|
||||
public void setColunmType(String colunmType) {
|
||||
this.colunmType = colunmType;
|
||||
}
|
||||
|
||||
public String getShowName() {
|
||||
return showName;
|
||||
}
|
||||
|
||||
public void setShowName(String showName) {
|
||||
this.showName = showName;
|
||||
}
|
||||
|
||||
public Integer getEditStyle() {
|
||||
return editStyle;
|
||||
}
|
||||
|
||||
public void setEditStyle(Integer editStyle) {
|
||||
this.editStyle = editStyle;
|
||||
}
|
||||
|
||||
public Integer getIsPrimary() {
|
||||
return isPrimary;
|
||||
}
|
||||
|
||||
public void setIsPrimary(Integer isPrimary) {
|
||||
this.isPrimary = isPrimary;
|
||||
}
|
||||
|
||||
public Integer getIsShowed() {
|
||||
return isShowed;
|
||||
}
|
||||
|
||||
public void setIsShowed(Integer isShowed) {
|
||||
this.isShowed = isShowed;
|
||||
}
|
||||
|
||||
public Integer getTableId() {
|
||||
return tableId;
|
||||
}
|
||||
|
||||
public void setTableId(Integer tableId) {
|
||||
this.tableId = tableId;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package cn.feast.coding.model.generator;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class DataSource {
|
||||
private Integer id;
|
||||
private String name;
|
||||
private String jdbcUrl;
|
||||
private String jdbcUser;
|
||||
private String jdbcPass;
|
||||
private Integer isDefault;
|
||||
|
||||
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 getJdbcUrl() {
|
||||
return jdbcUrl;
|
||||
}
|
||||
|
||||
public void setJdbcUrl(String jdbcUrl) {
|
||||
this.jdbcUrl = jdbcUrl;
|
||||
}
|
||||
|
||||
public String getJdbcUser() {
|
||||
return jdbcUser;
|
||||
}
|
||||
|
||||
public void setJdbcUser(String jdbcUser) {
|
||||
this.jdbcUser = jdbcUser;
|
||||
}
|
||||
|
||||
public String getJdbcPass() {
|
||||
return jdbcPass;
|
||||
}
|
||||
|
||||
public void setJdbcPass(String jdbcPass) {
|
||||
this.jdbcPass = jdbcPass;
|
||||
}
|
||||
|
||||
public Integer getIsDefault() {
|
||||
return isDefault;
|
||||
}
|
||||
|
||||
public void setIsDefault(Integer isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package cn.feast.coding.model.generator;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class Module {
|
||||
private Integer id;
|
||||
private String moduleName;
|
||||
private String moduleDesc;
|
||||
private String moduleMethod;
|
||||
private Integer moduleDefault;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getModuleName() {
|
||||
return moduleName;
|
||||
}
|
||||
|
||||
public void setModuleName(String moduleName) {
|
||||
this.moduleName = moduleName;
|
||||
}
|
||||
|
||||
public String getModuleDesc() {
|
||||
return moduleDesc;
|
||||
}
|
||||
|
||||
public void setModuleDesc(String moduleDesc) {
|
||||
this.moduleDesc = moduleDesc;
|
||||
}
|
||||
|
||||
public String getModuleMethod() {
|
||||
return moduleMethod;
|
||||
}
|
||||
|
||||
public void setModuleMethod(String moduleMethod) {
|
||||
this.moduleMethod = moduleMethod;
|
||||
}
|
||||
|
||||
public Integer getModuleDefault() {
|
||||
return moduleDefault;
|
||||
}
|
||||
|
||||
public void setModuleDefault(Integer moduleDefault) {
|
||||
this.moduleDefault = moduleDefault;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,208 @@
|
||||
package cn.feast.coding.model.generator;
|
||||
|
||||
import cn.feast.coding.model.Common;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class ModuleProject extends Common {
|
||||
private Integer id;
|
||||
private Integer moduleId;
|
||||
private Integer projectId;
|
||||
private Integer tableId;
|
||||
private Module module;
|
||||
private Project project;
|
||||
private Table table;
|
||||
private String moduleParam1;
|
||||
private String moduleParam1Page;
|
||||
private String moduleParam1Type;
|
||||
private String moduleParam1Field;
|
||||
private String moduleParam2;
|
||||
private String moduleParam2Page;
|
||||
private String moduleParam2Type;
|
||||
private String moduleParam2Field;
|
||||
private String moduleParam3;
|
||||
private String moduleParam3Page;
|
||||
private String moduleParam3Type;
|
||||
private String moduleParam3Field;
|
||||
private String moduleUrl;
|
||||
|
||||
//兼容ssh表单name不一致问题
|
||||
public void frameAdapter(String frame){
|
||||
if(frame.equals(SSH_FRAME)){
|
||||
if(null != moduleParam1)
|
||||
this.moduleParam1Page = classNameToFiledName(table.getClassName()) + "." + moduleParam1;
|
||||
if(null != moduleParam2)
|
||||
this.moduleParam2Page = classNameToFiledName(table.getClassName()) + "." + moduleParam2;
|
||||
if(null != moduleParam3)
|
||||
this.moduleParam3Page = classNameToFiledName(table.getClassName()) + "." + moduleParam3;
|
||||
}else{
|
||||
if(null != moduleParam1)
|
||||
this.moduleParam1Page = moduleParam1;
|
||||
if(null != moduleParam2)
|
||||
this.moduleParam2Page = moduleParam2;
|
||||
if(null != moduleParam3)
|
||||
this.moduleParam3Page = moduleParam3;
|
||||
}
|
||||
}
|
||||
|
||||
public String getModuleParam1() {
|
||||
return moduleParam1;
|
||||
}
|
||||
|
||||
public void setModuleParam1(String moduleParam1) {
|
||||
this.moduleParam1 = moduleParam1;
|
||||
}
|
||||
|
||||
public String getModuleParam1Type() {
|
||||
return moduleParam1Type;
|
||||
}
|
||||
|
||||
public void setModuleParam1Type(String moduleParam1Type) {
|
||||
this.moduleParam1Type = moduleParam1Type;
|
||||
}
|
||||
|
||||
public String getModuleParam1Field() {
|
||||
return moduleParam1Field;
|
||||
}
|
||||
|
||||
public void setModuleParam1Field(String moduleParam1Field) {
|
||||
this.moduleParam1Field = moduleParam1Field;
|
||||
}
|
||||
|
||||
public String getModuleParam2() {
|
||||
return moduleParam2;
|
||||
}
|
||||
|
||||
public void setModuleParam2(String moduleParam2) {
|
||||
this.moduleParam2 = moduleParam2;
|
||||
}
|
||||
|
||||
public String getModuleParam2Type() {
|
||||
return moduleParam2Type;
|
||||
}
|
||||
|
||||
public void setModuleParam2Type(String moduleParam2Type) {
|
||||
this.moduleParam2Type = moduleParam2Type;
|
||||
}
|
||||
|
||||
public String getModuleParam2Field() {
|
||||
return moduleParam2Field;
|
||||
}
|
||||
|
||||
public void setModuleParam2Field(String moduleParam2Field) {
|
||||
this.moduleParam2Field = moduleParam2Field;
|
||||
}
|
||||
|
||||
public String getModuleParam3() {
|
||||
return moduleParam3;
|
||||
}
|
||||
|
||||
public void setModuleParam3(String moduleParam3) {
|
||||
this.moduleParam3 = moduleParam3;
|
||||
}
|
||||
|
||||
public String getModuleParam3Type() {
|
||||
return moduleParam3Type;
|
||||
}
|
||||
|
||||
public void setModuleParam3Type(String moduleParam3Type) {
|
||||
this.moduleParam3Type = moduleParam3Type;
|
||||
}
|
||||
|
||||
public String getModuleParam3Field() {
|
||||
return moduleParam3Field;
|
||||
}
|
||||
|
||||
public void setModuleParam3Field(String moduleParam3Field) {
|
||||
this.moduleParam3Field = moduleParam3Field;
|
||||
}
|
||||
|
||||
public Module getModule() {
|
||||
return module;
|
||||
}
|
||||
|
||||
public void setModule(Module module) {
|
||||
this.module = module;
|
||||
}
|
||||
|
||||
public Project getProject() {
|
||||
return project;
|
||||
}
|
||||
|
||||
public void setProject(Project project) {
|
||||
this.project = project;
|
||||
}
|
||||
|
||||
public Table getTable() {
|
||||
return table;
|
||||
}
|
||||
|
||||
public void setTable(Table table) {
|
||||
this.table = table;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getModuleId() {
|
||||
return moduleId;
|
||||
}
|
||||
|
||||
public void setModuleId(Integer moduleId) {
|
||||
this.moduleId = moduleId;
|
||||
}
|
||||
|
||||
public Integer getProjectId() {
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public void setProjectId(Integer projectId) {
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Integer getTableId() {
|
||||
return tableId;
|
||||
}
|
||||
|
||||
public void setTableId(Integer tableId) {
|
||||
this.tableId = tableId;
|
||||
}
|
||||
|
||||
public String getModuleParam1Page() {
|
||||
return moduleParam1Page;
|
||||
}
|
||||
|
||||
public void setModuleParam1Page(String moduleParam1Page) {
|
||||
this.moduleParam1Page = moduleParam1Page;
|
||||
}
|
||||
|
||||
public String getModuleParam2Page() {
|
||||
return moduleParam2Page;
|
||||
}
|
||||
|
||||
public void setModuleParam2Page(String moduleParam2Page) {
|
||||
this.moduleParam2Page = moduleParam2Page;
|
||||
}
|
||||
|
||||
public String getModuleParam3Page() {
|
||||
return moduleParam3Page;
|
||||
}
|
||||
|
||||
public void setModuleParam3Page(String moduleParam3Page) {
|
||||
this.moduleParam3Page = moduleParam3Page;
|
||||
}
|
||||
|
||||
public String getModuleUrl() {
|
||||
return moduleUrl;
|
||||
}
|
||||
|
||||
public void setModuleUrl(String moduleUrl) {
|
||||
this.moduleUrl = moduleUrl;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package cn.feast.coding.model.generator;
|
||||
|
||||
public class Page {
|
||||
private int pageNumber = 1;
|
||||
private int totalPage;
|
||||
private int maxRows;
|
||||
private int start;
|
||||
|
||||
public int getPageNumber() {
|
||||
return pageNumber;
|
||||
}
|
||||
|
||||
public void setPageNumber(int pageNumber) {
|
||||
this.pageNumber = pageNumber;
|
||||
}
|
||||
|
||||
public int getTotalPage() {
|
||||
return totalPage;
|
||||
}
|
||||
|
||||
public void setTotalPage(int totalPage) {
|
||||
this.totalPage = totalPage;
|
||||
}
|
||||
|
||||
public int getMaxRows() {
|
||||
return maxRows;
|
||||
}
|
||||
|
||||
public void setMaxRows(int maxRows) {
|
||||
this.maxRows = maxRows;
|
||||
}
|
||||
|
||||
public int getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
public void setStart(int start) {
|
||||
this.start = start;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package cn.feast.coding.model.generator;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class PageTemplate {
|
||||
private Integer id;
|
||||
private String pageName;
|
||||
private String pagePath;
|
||||
private String pageImag;
|
||||
private String pageFrame;
|
||||
private String pageDesc;
|
||||
private Integer pageDefault;
|
||||
|
||||
public String getPageFrame() {
|
||||
return pageFrame;
|
||||
}
|
||||
|
||||
public void setPageFrame(String pageFrame) {
|
||||
this.pageFrame = pageFrame;
|
||||
}
|
||||
|
||||
public Integer getPageDefault() {
|
||||
return pageDefault;
|
||||
}
|
||||
|
||||
public void setPageDefault(Integer pageDefault) {
|
||||
this.pageDefault = pageDefault;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getPageName() {
|
||||
return pageName;
|
||||
}
|
||||
|
||||
public void setPageName(String pageName) {
|
||||
this.pageName = pageName;
|
||||
}
|
||||
|
||||
public String getPagePath() {
|
||||
return pagePath;
|
||||
}
|
||||
|
||||
public void setPagePath(String pagePath) {
|
||||
this.pagePath = pagePath;
|
||||
}
|
||||
|
||||
public String getPageImag() {
|
||||
return pageImag;
|
||||
}
|
||||
|
||||
public void setPageImag(String pageImag) {
|
||||
this.pageImag = pageImag;
|
||||
}
|
||||
|
||||
public String getPageDesc() {
|
||||
return pageDesc;
|
||||
}
|
||||
|
||||
public void setPageDesc(String pageDesc) {
|
||||
this.pageDesc = pageDesc;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package cn.feast.coding.model.generator;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class Project {
|
||||
private Integer id;
|
||||
private String projectName;
|
||||
private String projectFileName;
|
||||
private String projectDesc;
|
||||
private Integer dataSourse;
|
||||
private DataSource dataSource;
|
||||
private String packName;
|
||||
private String pagePath;
|
||||
private Integer pageStyle;
|
||||
private PageTemplate pageTemplate;
|
||||
private String templateType;
|
||||
|
||||
public String getProjectFileName() {
|
||||
return projectFileName;
|
||||
}
|
||||
|
||||
public void setProjectFileName(String projectFileName) {
|
||||
this.projectFileName = projectFileName;
|
||||
}
|
||||
|
||||
public PageTemplate getPageTemplate() {
|
||||
return pageTemplate;
|
||||
}
|
||||
|
||||
public void setPageTemplate(PageTemplate pageTemplate) {
|
||||
this.pageTemplate = pageTemplate;
|
||||
}
|
||||
|
||||
public DataSource getDataSource() {
|
||||
return dataSource;
|
||||
}
|
||||
|
||||
public void setDataSource(DataSource dataSource) {
|
||||
this.dataSource = dataSource;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getProjectName() {
|
||||
return projectName;
|
||||
}
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
||||
public String getProjectDesc() {
|
||||
return projectDesc;
|
||||
}
|
||||
|
||||
public void setProjectDesc(String projectDesc) {
|
||||
this.projectDesc = projectDesc;
|
||||
}
|
||||
|
||||
public Integer getDataSourse() {
|
||||
return dataSourse;
|
||||
}
|
||||
|
||||
public void setDataSourse(Integer dataSourse) {
|
||||
this.dataSourse = dataSourse;
|
||||
}
|
||||
|
||||
public String getPackName() {
|
||||
return packName;
|
||||
}
|
||||
|
||||
public void setPackName(String packName) {
|
||||
this.packName = packName;
|
||||
}
|
||||
|
||||
public String getPagePath() {
|
||||
return pagePath;
|
||||
}
|
||||
|
||||
public void setPagePath(String pagePath) {
|
||||
this.pagePath = pagePath;
|
||||
}
|
||||
|
||||
public Integer getPageStyle() {
|
||||
return pageStyle;
|
||||
}
|
||||
|
||||
public void setPageStyle(Integer pageStyle) {
|
||||
this.pageStyle = pageStyle;
|
||||
}
|
||||
|
||||
public String getTemplateType() {
|
||||
return templateType;
|
||||
}
|
||||
|
||||
public void setTemplateType(String templateType) {
|
||||
this.templateType = templateType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package cn.feast.coding.model.generator;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class Table {
|
||||
private Integer id;
|
||||
private String tableName;
|
||||
private String className;
|
||||
private String showName;
|
||||
private Integer showStyle;
|
||||
private Integer projectId;
|
||||
private Project project;
|
||||
private String url;
|
||||
|
||||
public Project getProject() {
|
||||
return project;
|
||||
}
|
||||
|
||||
public void setProject(Project project) {
|
||||
this.project = project;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
|
||||
public void setClassName(String className) {
|
||||
this.className = className;
|
||||
}
|
||||
|
||||
public String getShowName() {
|
||||
return showName;
|
||||
}
|
||||
|
||||
public void setShowName(String showName) {
|
||||
this.showName = showName;
|
||||
}
|
||||
|
||||
public Integer getShowStyle() {
|
||||
return showStyle;
|
||||
}
|
||||
|
||||
public void setShowStyle(Integer showStyle) {
|
||||
this.showStyle = showStyle;
|
||||
}
|
||||
|
||||
public Integer getProjectId() {
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public void setProjectId(Integer projectId) {
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
}
|
||||
52
op-model/src/main/java/cn/feast/coding/model/links/Link.java
Normal file
52
op-model/src/main/java/cn/feast/coding/model/links/Link.java
Normal file
@@ -0,0 +1,52 @@
|
||||
package cn.feast.coding.model.links;
|
||||
|
||||
import java.util.Date;
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class Link {
|
||||
private Integer id;
|
||||
private String name;
|
||||
private String url;
|
||||
private String description;
|
||||
private Integer times;
|
||||
private Integer typeid;
|
||||
|
||||
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 getUrl(){
|
||||
return url;
|
||||
}
|
||||
public void setUrl(String url){
|
||||
this.url = url;
|
||||
}
|
||||
public String getDescription(){
|
||||
return description;
|
||||
}
|
||||
public void setDescription(String description){
|
||||
this.description = description;
|
||||
}
|
||||
public Integer getTimes(){
|
||||
return times;
|
||||
}
|
||||
public void setTimes(Integer times){
|
||||
this.times = times;
|
||||
}
|
||||
public Integer getTypeid(){
|
||||
return typeid;
|
||||
}
|
||||
public void setTypeid(Integer typeid){
|
||||
this.typeid = typeid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package cn.feast.coding.model.order;
|
||||
|
||||
public class MonthStatis {
|
||||
private Integer month;
|
||||
private Integer orderTotal;
|
||||
|
||||
public Integer getMonth() {
|
||||
return month;
|
||||
}
|
||||
|
||||
public void setMonth(Integer month) {
|
||||
this.month = month;
|
||||
}
|
||||
|
||||
public Integer getOrderTotal() {
|
||||
return orderTotal;
|
||||
}
|
||||
|
||||
public void setOrderTotal(Integer orderTotal) {
|
||||
this.orderTotal = orderTotal;
|
||||
}
|
||||
}
|
||||
115
op-model/src/main/java/cn/feast/coding/model/order/Order.java
Normal file
115
op-model/src/main/java/cn/feast/coding/model/order/Order.java
Normal file
@@ -0,0 +1,115 @@
|
||||
package cn.feast.coding.model.order;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class Order {
|
||||
private Integer id;
|
||||
private String orderDate;
|
||||
private String orderName;
|
||||
private String orderType;
|
||||
private String orderDetail;
|
||||
private Double orderMoney;
|
||||
private Double orderDeposit;
|
||||
private String orderWangwang;
|
||||
private String orderContact;
|
||||
private String orderPrincipal;
|
||||
private String orderShop;
|
||||
private Integer orderStatus;
|
||||
|
||||
public String getOrderShop() {
|
||||
return orderShop;
|
||||
}
|
||||
|
||||
public void setOrderShop(String orderShop) {
|
||||
this.orderShop = orderShop;
|
||||
}
|
||||
|
||||
public String getOrderType() {
|
||||
return orderType;
|
||||
}
|
||||
|
||||
public void setOrderType(String orderType) {
|
||||
this.orderType = orderType;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getOrderDate() {
|
||||
return orderDate;
|
||||
}
|
||||
|
||||
public void setOrderDate(String orderDate) {
|
||||
this.orderDate = orderDate;
|
||||
}
|
||||
|
||||
public String getOrderName() {
|
||||
return orderName;
|
||||
}
|
||||
|
||||
public void setOrderName(String orderName) {
|
||||
this.orderName = orderName;
|
||||
}
|
||||
|
||||
public String getOrderDetail() {
|
||||
return orderDetail;
|
||||
}
|
||||
|
||||
public void setOrderDetail(String orderDetail) {
|
||||
this.orderDetail = orderDetail;
|
||||
}
|
||||
|
||||
public Double getOrderMoney() {
|
||||
return orderMoney;
|
||||
}
|
||||
|
||||
public void setOrderMoney(Double orderMoney) {
|
||||
this.orderMoney = orderMoney;
|
||||
}
|
||||
|
||||
public Double getOrderDeposit() {
|
||||
return orderDeposit;
|
||||
}
|
||||
|
||||
public void setOrderDeposit(Double orderDeposit) {
|
||||
this.orderDeposit = orderDeposit;
|
||||
}
|
||||
|
||||
public String getOrderContact() {
|
||||
return orderContact;
|
||||
}
|
||||
|
||||
public void setOrderContact(String orderContact) {
|
||||
this.orderContact = orderContact;
|
||||
}
|
||||
|
||||
public String getOrderPrincipal() {
|
||||
return orderPrincipal;
|
||||
}
|
||||
|
||||
public void setOrderPrincipal(String orderPrincipal) {
|
||||
this.orderPrincipal = orderPrincipal;
|
||||
}
|
||||
|
||||
public Integer getOrderStatus() {
|
||||
return orderStatus;
|
||||
}
|
||||
|
||||
public void setOrderStatus(Integer orderStatus) {
|
||||
this.orderStatus = orderStatus;
|
||||
}
|
||||
|
||||
public String getOrderWangwang() {
|
||||
return orderWangwang;
|
||||
}
|
||||
|
||||
public void setOrderWangwang(String orderWangwang) {
|
||||
this.orderWangwang = orderWangwang;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package cn.feast.coding.model.order;
|
||||
|
||||
public class OrderStatis {
|
||||
private String orderType;
|
||||
private Object orderTotal;
|
||||
|
||||
public String getOrderType() {
|
||||
return orderType;
|
||||
}
|
||||
|
||||
public void setOrderType(String orderType) {
|
||||
this.orderType = orderType;
|
||||
}
|
||||
|
||||
public Object getOrderTotal() {
|
||||
return orderTotal;
|
||||
}
|
||||
|
||||
public void setOrderTotal(Object orderTotal) {
|
||||
this.orderTotal = orderTotal;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package cn.feast.coding.model.stock;
|
||||
|
||||
import java.util.Date;
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class Stock {
|
||||
private Integer id;
|
||||
private String stockCode;
|
||||
private String stockName;
|
||||
private Integer stockState;
|
||||
|
||||
public Integer getId(){
|
||||
return id;
|
||||
}
|
||||
public void setId(Integer id){
|
||||
this.id = id;
|
||||
}
|
||||
public String getStockCode(){
|
||||
return stockCode;
|
||||
}
|
||||
public void setStockCode(String stockCode){
|
||||
this.stockCode = stockCode;
|
||||
}
|
||||
public String getStockName(){
|
||||
return stockName;
|
||||
}
|
||||
public void setStockName(String stockName){
|
||||
this.stockName = stockName;
|
||||
}
|
||||
public Integer getStockState(){
|
||||
return stockState;
|
||||
}
|
||||
public void setStockState(Integer stockState){
|
||||
this.stockState = stockState;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package cn.feast.coding.model.stock;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class StockAnalyse {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String date;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String code;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Double price;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDate() {
|
||||
return date;
|
||||
}
|
||||
|
||||
public void setDate(String date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public Double getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(Double price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package cn.feast.coding.model.system;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class Permission {
|
||||
private Integer id;
|
||||
private String name;
|
||||
private Integer type;
|
||||
private String url;
|
||||
private String permission;
|
||||
private Integer parentid;
|
||||
private int checked;
|
||||
|
||||
public int getChecked() {
|
||||
return checked;
|
||||
}
|
||||
|
||||
public void setChecked(int checked) {
|
||||
this.checked = checked;
|
||||
}
|
||||
|
||||
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 Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getPermission() {
|
||||
return permission;
|
||||
}
|
||||
|
||||
public void setPermission(String permission) {
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
public Integer getParentid() {
|
||||
return parentid;
|
||||
}
|
||||
|
||||
public void setParentid(Integer parentid) {
|
||||
this.parentid = parentid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package cn.feast.coding.model.system;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class Role {
|
||||
private Integer id;
|
||||
private String role;
|
||||
private String description;
|
||||
private List<Permission> permissionList;
|
||||
|
||||
public List<Permission> getPermissionList() {
|
||||
return permissionList;
|
||||
}
|
||||
|
||||
public void setPermissionList(List<Permission> permissionList) {
|
||||
this.permissionList = permissionList;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public void setRole(String role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package cn.feast.coding.model.system;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class RolePermission {
|
||||
private Integer roleid;
|
||||
private Integer permissionid;
|
||||
|
||||
public Integer getRoleid(){
|
||||
return roleid;
|
||||
}
|
||||
public void setRoleid(Integer roleid){
|
||||
this.roleid = roleid;
|
||||
}
|
||||
public Integer getPermissionid(){
|
||||
return permissionid;
|
||||
}
|
||||
public void setPermissionid(Integer permissionid){
|
||||
this.permissionid = permissionid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
package cn.feast.coding.model.system;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class User {
|
||||
private Integer id;
|
||||
private String userName;
|
||||
private String userPass;
|
||||
private String userSalt;
|
||||
private String userReal;
|
||||
private Integer userGender;
|
||||
private String userPhone;
|
||||
private String userEmail;
|
||||
|
||||
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 getUserPass() {
|
||||
return userPass;
|
||||
}
|
||||
|
||||
public void setUserPass(String userPass) {
|
||||
this.userPass = userPass;
|
||||
}
|
||||
|
||||
public String getUserSalt() {
|
||||
return userSalt;
|
||||
}
|
||||
|
||||
public void setUserSalt(String userSalt) {
|
||||
this.userSalt = userSalt;
|
||||
}
|
||||
|
||||
public String getUserReal() {
|
||||
return userReal;
|
||||
}
|
||||
|
||||
public void setUserReal(String userReal) {
|
||||
this.userReal = userReal;
|
||||
}
|
||||
|
||||
public Integer getUserGender() {
|
||||
return userGender;
|
||||
}
|
||||
|
||||
public void setUserGender(Integer userGender) {
|
||||
this.userGender = userGender;
|
||||
}
|
||||
|
||||
public String getUserPhone() {
|
||||
return userPhone;
|
||||
}
|
||||
|
||||
public void setUserPhone(String userPhone) {
|
||||
this.userPhone = userPhone;
|
||||
}
|
||||
|
||||
public String getUserEmail() {
|
||||
return userEmail;
|
||||
}
|
||||
|
||||
public void setUserEmail(String userEmail) {
|
||||
this.userEmail = userEmail;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package cn.feast.coding.model.system;
|
||||
|
||||
/**
|
||||
* Created By FeastCoding.
|
||||
*/
|
||||
public class UserRole {
|
||||
private Integer userid;
|
||||
private Integer roleid;
|
||||
|
||||
public Integer getUserid(){
|
||||
return userid;
|
||||
}
|
||||
public void setUserid(Integer userid){
|
||||
this.userid = userid;
|
||||
}
|
||||
public Integer getRoleid(){
|
||||
return roleid;
|
||||
}
|
||||
public void setRoleid(Integer roleid){
|
||||
this.roleid = roleid;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user