|
|
@@ -3,6 +3,7 @@ package com.jeesite.modules.mes.entity;
|
|
|
import com.jeesite.common.entity.DataEntity;
|
|
|
import com.jeesite.common.mybatis.annotation.Column;
|
|
|
import com.jeesite.common.mybatis.annotation.Table;
|
|
|
+import com.jeesite.common.mybatis.mapper.query.QueryType;
|
|
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
import javax.validation.constraints.Size;
|
|
|
@@ -15,6 +16,7 @@ import javax.validation.constraints.Size;
|
|
|
*/
|
|
|
@Table(name="mes_product_screen", alias="a", label="大屏展示配置信息", columns={
|
|
|
@Column(name="id", attrName="id", label="id", isPK=true),
|
|
|
+ @Column(name="screen_type", attrName="screenType", label="大屏类型", comment="MP毛坯 JJ机加 BP半成品", queryType=QueryType.EQ),
|
|
|
@Column(name="people_num", attrName="peopleNum", label="生产人数"),
|
|
|
@Column(name="machine_num", attrName="machineNum", label="设备数量"),
|
|
|
@Column(name="plan_output", attrName="planOutput", label="计划产量"),
|
|
|
@@ -27,6 +29,8 @@ import javax.validation.constraints.Size;
|
|
|
public class MesProductScreen extends DataEntity<MesProductScreen> {
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
+ /** MP毛坯 / JJ机加 / BP半成品 */
|
|
|
+ private String screenType;
|
|
|
private String peopleNum;
|
|
|
private String machineNum;
|
|
|
private String planOutput;
|
|
|
@@ -39,6 +43,16 @@ public class MesProductScreen extends DataEntity<MesProductScreen> {
|
|
|
super(id);
|
|
|
}
|
|
|
|
|
|
+ @NotBlank(message="大屏类型不能为空")
|
|
|
+ @Size(min=0, max=32, message="大屏类型长度不能超过 32 个字符")
|
|
|
+ public String getScreenType() {
|
|
|
+ return screenType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setScreenType(String screenType) {
|
|
|
+ this.screenType = screenType;
|
|
|
+ }
|
|
|
+
|
|
|
@NotBlank(message="生产人数不能为空")
|
|
|
@Size(min=0, max=255, message="生产人数长度不能超过 255 个字符")
|
|
|
public String getPeopleNum() {
|