yun-zuoyi
wynne1005 5 years ago
commit 4b4bf4e433

@ -43,4 +43,6 @@ public @interface DynamicField {
String searchColumnName() default ""; String searchColumnName() default "";
// 回显列名 // 回显列名
String explicitColumnName() default ""; String explicitColumnName() default "";
// 下拉框规则
WmsEnumUtil.DYNAMIC_FIELD_SELECT_RULE selectRule() default WmsEnumUtil.DYNAMIC_FIELD_SELECT_RULE.SINGLE_ENUM;
} }

@ -1239,7 +1239,9 @@ public class MesEnumUtil {
public enum MES_PRODUCE_SN_TYPE { public enum MES_PRODUCE_SN_TYPE {
NORMAL(10, "正常件"), NORMAL(10, "正常件"),
FIRST_INSPECTION(20, "首检件"); FIRST_INSPECTION(20, "首检件"),
HALF_PRODUCT(30, "半成品"),
KP(40, "关键件");
private int value; private int value;
private String description; private String description;

@ -418,7 +418,9 @@ public class MesPcnEnumUtil {
public enum MES_PRODUCE_SN_TYPE { public enum MES_PRODUCE_SN_TYPE {
NORMAL(10, "正常件"), NORMAL(10, "正常件"),
FIRST_INSPECTION(20, "首检件"); FIRST_INSPECTION(20, "首检件"),
HALF_PRODUCT(30, "半成品"),
KP(40, "关键件");
private int value; private int value;
private String description; private String description;
@ -2215,43 +2217,6 @@ public class MesPcnEnumUtil {
} }
/** /**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PCN_SN_TYPE {
NORMAL(10, "正常件"),
FIRST_INSPECTION(20, "首检件");
private int value;
private String description;
PCN_SN_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* MesPlanOrdersource * MesPlanOrdersource
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)

@ -139,6 +139,15 @@ public class WmsEnumUtil {
} }
return tmp; return tmp;
} }
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
} }
@ -1266,45 +1275,45 @@ public class WmsEnumUtil {
} }
} }
/** /**
* *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CS_STRATEGY_TYPE { public enum CS_STRATEGY_TYPE {
PART_COVERAGE(110, "物料分类覆盖"), PART_COVERAGE(110, "物料分类覆盖"),
TOUCH(120, "动碰"), TOUCH(120, "动碰"),
ZORE_STOCK(130, "零库存"); ZORE_STOCK(130, "零库存");
private int value; private int value;
private String description; private String description;
CS_STRATEGY_TYPE(int value, String description) { CS_STRATEGY_TYPE(int value, String description) {
this.value = value; this.value = value;
this.description = description; this.description = description;
} }
public int getValue() { public int getValue() {
return value; return value;
} }
public String getDescription() { public String getDescription() {
return description; return description;
} }
public static String valueOf(int val) { public static String valueOf(int val) {
String tmp = null; String tmp = null;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) { if (values()[i].value == val) {
tmp = values()[i].description; tmp = values()[i].description;
} }
} }
return tmp; return tmp;
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
return valueOf(val); return valueOf(val);
} }
} }
/** /**
* *
@ -2977,6 +2986,15 @@ public class WmsEnumUtil {
} }
return tmp; return tmp;
} }
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
} }
/** /**
@ -4169,7 +4187,7 @@ public class WmsEnumUtil {
} }
} }
/** /**
* *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -4406,10 +4424,10 @@ public class WmsEnumUtil {
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PACKAGE_OPERATE_TYPE { public enum PACKAGE_OPERATE_TYPE {
PACKAGE_ADD("PACKAGE_ADD", "新"), PACKAGE_ADD("PACKAGE_ADD", "新建组号"),
PACKAGE_ADDITIONAL("PACKAGE_ADDITIONAL", "追加"), PACKAGE_ADDITIONAL("PACKAGE_ADDITIONAL", "增添条码"),
PACKAGE_DELETE("PACKAGE_DELETE", "删除"), PACKAGE_DELETE("PACKAGE_DELETE", "移除条码"),
PACKAGE_CLEAR("PACKAGE_CLEAR", "清空"); PACKAGE_CLEAR("PACKAGE_CLEAR", "删除组号");
private String value; private String value;
private String description; private String description;
@ -4890,10 +4908,18 @@ public class WmsEnumUtil {
} }
return tmp; return tmp;
} }
public static FIELD_TYPE codeOf(Integer value) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value==value) {
return values()[i];
}
}
return null;
}
} }
/** /**
* *
* 10 * 10
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -5212,4 +5238,67 @@ public class WmsEnumUtil {
return tmp; return tmp;
} }
} }
/**
* -
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DYNAMIC_FIELD_SELECT_RULE {
SINGLE_ENUM(10, "SINGLE_ENUM", "单选枚举"),
MULTIPLE_ENUM(20, "MULTIPLE_ENUM", "多选枚举"),
SINGLE_URL(30, "SINGLE_URL", "单选接口"),
MULTIPLE_URL(40, "MULTIPLE_URL", "多选接口");
private int value;
private String code;
private String description;
DYNAMIC_FIELD_SELECT_RULE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
public static DYNAMIC_FIELD_SELECT_RULE codeOf(int value) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
return null;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
} }

@ -5,6 +5,8 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Transient;
/** /**
* @Description: * @Description:
* @Reference: * @Reference:
@ -18,6 +20,9 @@ public class StepPrintSnModel extends MesProduceSn {
@ApiParam("打印描述") @ApiParam("打印描述")
private String printDesc; private String printDesc;
@ApiParam(value = "打印时间")
private String printTime;
@ApiParam("条码") @ApiParam("条码")
private String barCode; private String barCode;

@ -31,4 +31,7 @@ public class WmsListSearchModel {
@ApiParam(value = "有效性") @ApiParam(value = "有效性")
public Integer isValid; public Integer isValid;
@ApiParam(value = "工厂代码")
public String organizeCode;
} }

@ -104,6 +104,10 @@ public class WmsCSOrderMaster extends BaseBean {
public String wmsCSZonesStr; public String wmsCSZonesStr;
@Transient @Transient
@ApiParam(value = "盘点库存地清单")
public String wmsAreaNosStr;
@Transient
@ApiParam(value = "盘点库位清单") @ApiParam(value = "盘点库位清单")
public String[] wmsCSLocates; public String[] wmsCSLocates;
@ -117,4 +121,5 @@ public class WmsCSOrderMaster extends BaseBean {
public Integer getIsInventoryVal() { public Integer getIsInventoryVal() {
return this.isInventory == null ? 0 :this.isInventory.intValue(); return this.isInventory == null ? 0 :this.isInventory.intValue();
} }
} }

@ -50,7 +50,7 @@ public class WmsPart extends BaseBean {
@Column(name = "PART_TYPE") @Column(name = "PART_TYPE")
@ApiParam(value = "物料类型") @ApiParam(value = "物料类型")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "WMS_PART_TYPE") @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "WMS_PART_TYPE")
@AnnoOutputColumn(refClass = WmsEnumUtil.WMS_PART_TYPE_STR.class, refForeignKey = "value", value = "description") @AnnoOutputColumn(refClass = WmsEnumUtil.WMS_PART_TYPE_STR.class)
private String partType; private String partType;
@Column(name = "PART_TYPE_DESC") @Column(name = "PART_TYPE_DESC")
@ -75,7 +75,8 @@ public class WmsPart extends BaseBean {
@Column(name = "STOCK_UNIT") @Column(name = "STOCK_UNIT")
@ApiParam(value = "库存单位") @ApiParam(value = "库存单位")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, selectRule = WmsEnumUtil.DYNAMIC_FIELD_SELECT_RULE.SINGLE_URL,
isRequire = 2, entityName = "/wms/wmsUnit/wms-unit/query", listColumnName = "unitCode", explicitColumnName = "unitCode")
private String stockUnit; private String stockUnit;
@Column(name = "ABC") @Column(name = "ABC")
@ -85,7 +86,8 @@ public class WmsPart extends BaseBean {
@Column(name = "BUY_UNIT") @Column(name = "BUY_UNIT")
@ApiParam(value = "采购单位") @ApiParam(value = "采购单位")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, selectRule = WmsEnumUtil.DYNAMIC_FIELD_SELECT_RULE.SINGLE_URL,
isRequire = 2, entityName = "/wms/wmsUnit/wms-unit/query", listColumnName = "unitCode", explicitColumnName = "unitCode")
private String buyUnit; private String buyUnit;
@Column(name = "BU2SU", columnDefinition = "decimal(18,8)") @Column(name = "BU2SU", columnDefinition = "decimal(18,8)")
@ -95,7 +97,8 @@ public class WmsPart extends BaseBean {
@Column(name = "PRICE_UNIT") @Column(name = "PRICE_UNIT")
@ApiParam(value = "计价单位") @ApiParam(value = "计价单位")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, selectRule = WmsEnumUtil.DYNAMIC_FIELD_SELECT_RULE.SINGLE_URL,
isRequire = 2, entityName = "/wms/wmsUnit/wms-unit/query", listColumnName = "unitCode", explicitColumnName = "unitCode")
private String priceUnit; private String priceUnit;
@Column(name = "PU2SU", columnDefinition = "decimal(18,8)") @Column(name = "PU2SU", columnDefinition = "decimal(18,8)")
@ -126,12 +129,14 @@ public class WmsPart extends BaseBean {
@Column(name = "PART_GROUP") @Column(name = "PART_GROUP")
@ApiParam(value = "物料组") @ApiParam(value = "物料组")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, selectRule = WmsEnumUtil.DYNAMIC_FIELD_SELECT_RULE.SINGLE_URL,
isRequire = 2, entityName = "/wms/wms-enum/dictionary/code?code=PART_GROUP_RULE", listColumnName = "name", explicitColumnName = "dictionaryValue")
private String partGroup; private String partGroup;
@Column(name = "LOT_CHECK_RULE") @Column(name = "LOT_CHECK_RULE")
@ApiParam(value = "批次校验规则") @ApiParam(value = "批次校验规则")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, selectRule = WmsEnumUtil.DYNAMIC_FIELD_SELECT_RULE.SINGLE_URL,
isRequire = 2, entityName = "/wms/wms-enum/dictionary/code?code=LOT_CHECK_RULE", listColumnName = "name", explicitColumnName = "dictionaryValue")
private String lotCheckRule; private String lotCheckRule;
@Column(name = "SN_CONTROL") @Column(name = "SN_CONTROL")
@ -146,8 +151,8 @@ public class WmsPart extends BaseBean {
@Column(name = "IN_LOCATE_NO") @Column(name = "IN_LOCATE_NO")
@ApiParam(value = "默认入库库位") @ApiParam(value = "默认入库库位")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.LIST, isRequire = 2,entityName="cn.estsh.i3plus.pojo.wms.bean.WmsLocate", @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.LIST, isRequire = 2, entityName = "cn.estsh.i3plus.pojo.wms.bean.WmsLocate",
searchColumnName = "locateNo,locateName",listColumnName = "locateNo,locateName", explicitColumnName = "locateNo") searchColumnName = "locateNo,locateName", listColumnName = "locateNo,locateName", explicitColumnName = "locateNo")
private String inLocateNo; private String inLocateNo;
@Column(name = "PROD_CFG_TYPE_CODE") @Column(name = "PROD_CFG_TYPE_CODE")
@ -197,7 +202,8 @@ public class WmsPart extends BaseBean {
@Column(name = "PRODUCT_LINES") @Column(name = "PRODUCT_LINES")
@ApiParam("报工产线") @ApiParam("报工产线")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, selectRule = WmsEnumUtil.DYNAMIC_FIELD_SELECT_RULE.SINGLE_URL,
isRequire = 2, entityName = "/wms/work-center/list", listColumnName = "workCenterName", explicitColumnName = "workCenterCode")
private String productLines; private String productLines;
@Column(name = "PROPORTION", columnDefinition = "decimal(10,5)") @Column(name = "PROPORTION", columnDefinition = "decimal(10,5)")
@ -222,7 +228,7 @@ public class WmsPart extends BaseBean {
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String stockLevelStatus; private String stockLevelStatus;
@Column(name="verb_num") @Column(name = "verb_num")
@ApiParam(value = "单次拆包数") @ApiParam(value = "单次拆包数")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double verbNum; private Double verbNum;
@ -233,9 +239,10 @@ public class WmsPart extends BaseBean {
private Integer isProdLot = 2; private Integer isProdLot = 2;
@Column(name = "PULL_WAY") @Column(name = "PULL_WAY")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2, entityName = "PULL_WAY_STATUS") @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, selectRule = WmsEnumUtil.DYNAMIC_FIELD_SELECT_RULE.MULTIPLE_ENUM,
@ApiParam(value = "拉动方式", example = "0") isRequire = 2, entityName = "PULL_WAY_STATUS")
private Integer pullWay = 0; @ApiParam(value = "拉动方式")
private String pullWay;
@Column(name = "CYCLE_RQUEST_PERIOD") @Column(name = "CYCLE_RQUEST_PERIOD")
@ApiParam(value = "循环补货周期", example = "0") @ApiParam(value = "循环补货周期", example = "0")
@ -252,11 +259,11 @@ public class WmsPart extends BaseBean {
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double curingTime = 0d; private Double curingTime = 0d;
public int getIqcVal(){ public int getIqcVal() {
return this.iqc == null ? 0 : this.iqc.intValue(); return this.iqc == null ? 0 : this.iqc.intValue();
} }
public int getCycleRquestPeriod(){ public int getCycleRquestPeriod() {
return this.cycleRquestPeriod == null ? 0 : this.cycleRquestPeriod.intValue(); return this.cycleRquestPeriod == null ? 0 : this.cycleRquestPeriod.intValue();
} }
@ -264,23 +271,23 @@ public class WmsPart extends BaseBean {
} }
public Double getQty() { public Double getQty() {
return qty == null? 0:qty; return qty == null ? 0 : qty;
} }
public Double getMin() { public Double getMin() {
return min == null? 0: min; return min == null ? 0 : min;
} }
public Double getMax() { public Double getMax() {
return max == null? 0:max; return max == null ? 0 : max;
} }
public Double getCycleRquestQty() { public Double getCycleRquestQty() {
return this.cycleRquestQty == null? 0d:this.cycleRquestQty.doubleValue(); return this.cycleRquestQty == null ? 0d : this.cycleRquestQty.doubleValue();
} }
public Double getCuringTime() { public Double getCuringTime() {
return this.curingTime == null? 0d:this.curingTime.doubleValue(); return this.curingTime == null ? 0d : this.curingTime.doubleValue();
} }

@ -119,6 +119,10 @@ public class WmsRoutingRule extends BaseBean {
@ApiParam(value = "目的库位") @ApiParam(value = "目的库位")
private String destMoveType; private String destMoveType;
@Column(name = "DEST_MOVE_SN_STATUS")
@ApiParam(value = "目的单据条码状态")
private Integer destMoveSnStatus;
public WmsRoutingRule(){} public WmsRoutingRule(){}
} }

@ -43,7 +43,7 @@ public class WmsFieldInfo extends BaseBean {
@Column(name = "FIELD_TYPE") @Column(name = "FIELD_TYPE")
@ApiParam(value = "字段类型") @ApiParam(value = "字段类型")
private String fieldType; private Integer fieldType;
@Column(name = "ENUM_NAME") @Column(name = "ENUM_NAME")
@ApiParam(value = "字段枚举名称") @ApiParam(value = "字段枚举名称")
@ -77,6 +77,10 @@ public class WmsFieldInfo extends BaseBean {
@ApiParam(value = "是否加粗:默认1-加粗2-非加粗") @ApiParam(value = "是否加粗:默认1-加粗2-非加粗")
private Integer isWider; private Integer isWider;
@Column(name = "IS_QUERY")
@ApiParam(value = "是否可选作查询条件:默认1-可选2-不可选")
private Integer isQuery;
@Column(name = "IS_SELECT") @Column(name = "IS_SELECT")
@ApiParam(value = "是否勾选:默认1-勾选2-非勾选") @ApiParam(value = "是否勾选:默认1-勾选2-非勾选")
private Integer isSelect; private Integer isSelect;
@ -104,4 +108,8 @@ public class WmsFieldInfo extends BaseBean {
@Column(name = "EXPLICIT_COLUMN_NAME") @Column(name = "EXPLICIT_COLUMN_NAME")
@ApiParam(value = "回显列名") @ApiParam(value = "回显列名")
private String explicitColumnName; private String explicitColumnName;
@Column(name = "DYNAMIC_FIELD_SELECT_RULE")
@ApiParam(value = "下拉框规则")
private Integer selectRule;
} }

@ -81,4 +81,24 @@ public class WmsListElement extends BaseBean {
@Column(name = "FUNCTION_ID") @Column(name = "FUNCTION_ID")
@ApiParam(value = "功能菜单ID") @ApiParam(value = "功能菜单ID")
private Long functionId; private Long functionId;
@Column(name = "FIELD_TYPE")
@ApiParam(value = "字段类型")
private Integer fieldType;
@Column(name = "DYNAMIC_FIELD_SELECT_RULE")
@ApiParam(value = "下拉框规则")
private Integer selectRule;
@Column(name = "ENTITY_NAME")
@ApiParam(value = "实体名称")
private String entityName;
@Column(name = "LIST_COLUMN_NAME")
@ApiParam(value = "开窗列表显示列名称")
private String listColumnName;
@Column(name = "EXPLICIT_COLUMN_NAME")
@ApiParam(value = "回显列名")
private String explicitColumnName;
} }

@ -43,7 +43,7 @@ public class WmsSearchElement extends BaseBean {
@Column(name = "FIELD_TYPE") @Column(name = "FIELD_TYPE")
@ApiParam(value = "字段类型") @ApiParam(value = "字段类型")
private String fieldType; private Integer fieldType;
@Column(name = "CONDITION_EXPRE") @Column(name = "CONDITION_EXPRE")
@ApiParam(value = "条件表达式:>,<,>=等") @ApiParam(value = "条件表达式:>,<,>=等")

@ -14,8 +14,6 @@ import lombok.Data;
@Api("未完成订单模型") @Api("未完成订单模型")
public class WmsMoveUnfinishedOrderModel extends BaseBean{ public class WmsMoveUnfinishedOrderModel extends BaseBean{
@ApiParam("物料编码") @ApiParam("物料编码")
private String partNo; private String partNo;
@ -26,7 +24,6 @@ public class WmsMoveUnfinishedOrderModel extends BaseBean{
private Double destQty; private Double destQty;
@ApiParam("交易类型") @ApiParam("交易类型")
private String transTypeCode; private String transTypeCode;

@ -6,7 +6,7 @@ sonar.projectKey=i3plus.pojo:i3plus-pojo
# defaults to project key # defaults to project key
sonar.projectName=i3plus-pojo sonar.projectName=i3plus-pojo
# defaults to 'not provided' # defaults to 'not provided'
sonar.projectVersion=1.0-DEV-SNAPSHOT sonar.projectVersion=1.0-TEST-SNAPSHOT
# Path is relative to the sonar-project.properties file. Defaults to . # Path is relative to the sonar-project.properties file. Defaults to .
#sonar.sources=./ #sonar.sources=./

Loading…
Cancel
Save