MDM POJO
parent
9532489502
commit
7f2c372229
@ -0,0 +1,22 @@
|
||||
<?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-DEV-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>i3plus-pojo-mdm</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>i3plus.pojo</groupId>
|
||||
<artifactId>i3plus-pojo-base</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
@ -0,0 +1,46 @@
|
||||
package cn.estsh.i3plus.pojo.mdm.bean.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* @Description : MDM基础bean
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-05-12 17:30
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@ApiModel("MDM基础bean")
|
||||
public class BaseMdmBean extends BaseBean {
|
||||
|
||||
private static final long serialVersionUID = 3957595289035947441L;
|
||||
|
||||
@Transient
|
||||
@ApiModelProperty("是否主数据")
|
||||
@AnnoOutputColumn(refClass = CommonEnumUtil.TRUE_OR_FALSE.class)
|
||||
public static Integer isMdmMaster = CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue();
|
||||
|
||||
@ApiModelProperty("mdm数据版本")
|
||||
private Long mdmVersion;
|
||||
|
||||
public long getMdmVersion() {
|
||||
return mdmVersion == null ? 0 : mdmVersion;
|
||||
}
|
||||
|
||||
// 版本递增
|
||||
public long nextMdmVersion() {
|
||||
return mdmVersion = getMdmVersion() + 1;
|
||||
}
|
||||
|
||||
@ApiModelProperty("是否发布")
|
||||
@AnnoOutputColumn(refClass = CommonEnumUtil.TRUE_OR_FALSE.class)
|
||||
private Integer isPublished;
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package cn.estsh.i3plus.pojo.mdm.bean.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* @Description : MDM业务基础bean
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-05-12 17:30
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@ApiModel("MDM业务基础bean")
|
||||
public class BaseMdmExtdBean extends BaseMdmBean {
|
||||
|
||||
private static final long serialVersionUID = 4267453020130810967L;
|
||||
|
||||
@Transient
|
||||
@ApiModelProperty("软件模块")
|
||||
@AnnoOutputColumn(refClass = CommonEnumUtil.TRUE_OR_FALSE.class)
|
||||
public static Integer mdmSoftType;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package cn.estsh.i3plus.pojo.mdm.bean.busi.core;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||
import cn.estsh.i3plus.pojo.mdm.bean.base.BaseMdmExtdBean;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description : 主数据齿轮-平台扩展
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-05-12 18:09
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@ApiModel("主数据齿轮-平台扩展")
|
||||
public class MdmGearCoreExtd extends BaseMdmExtdBean {
|
||||
|
||||
private static final long serialVersionUID = -3535174942277452194L;
|
||||
|
||||
// 初始化数据
|
||||
static {
|
||||
isMdmMaster = CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue();
|
||||
mdmSoftType = CommonEnumUtil.SOFT_TYPE.CORE.getValue();
|
||||
}
|
||||
|
||||
@ApiModelProperty("核心数量")
|
||||
public String coreNum;
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package cn.estsh.i3plus.pojo.mdm.bean.master;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mdm.bean.base.BaseMdmBean;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description : 主数据齿轮
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-05-12 18:09
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@ApiModel("主数据齿轮")
|
||||
public class MdmGear extends BaseMdmBean {
|
||||
|
||||
private static final long serialVersionUID = -7580444601811207793L;
|
||||
|
||||
@ApiModelProperty("齿轮名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("齿轮规格")
|
||||
private String gearModel;
|
||||
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package cn.estsh.i3plus.pojo.mdm.bean.model.core;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mdm.bean.busi.core.MdmGearCoreExtd;
|
||||
import cn.estsh.i3plus.pojo.mdm.bean.master.MdmGear;
|
||||
|
||||
/**
|
||||
* @Description : 主数据齿轮-平台model
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-05-12 18:09
|
||||
* @Modify:
|
||||
**/
|
||||
public class MdmGearCoreModel {
|
||||
|
||||
private MdmGear mdmGear;
|
||||
|
||||
private MdmGearCoreExtd mdmGearCoreExtd;
|
||||
|
||||
}
|
Loading…
Reference in New Issue