Merge remote-tracking branch 'remotes/origin/dev' into test

yun-zuoyi
Silliter 6 years ago
commit dbeb965e9b

@ -46,8 +46,10 @@ public class DynamicBean {
* @param value
*/
public void setValue(String property, Object value) {
if(!beanMap.containsKey(property)){
beanMap.put(property, value);
}
}
/**
*

@ -14,6 +14,7 @@ import java.lang.reflect.Method;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
@ -158,20 +159,41 @@ public class DynamicEntity extends BaseBean implements Serializable {
fieldVal = 0.0f;
} else if (f.getType() == Double.class) {
fieldVal = 0.0d;
} else {
} else if (f.getType() == String.class) {
fieldVal = "";
}else if (f.getType() == Character.class) {
fieldVal = "";
}else if (f.getType() == Boolean.class) {
fieldVal = true;
}else if (f.getType() == Byte.class) {
fieldVal = 0;
}else if (f.getType() == Date.class) {
fieldVal = new Date();
}else {
fieldVal = "";
}
}
try {
setMethod = this.getClass().getDeclaredMethod(setMethodName, new Class[]{f.getType()});
System.out.println("Method Name:" + setMethod.getName() + "\t\t Value : " + fieldVal);
setMethod.invoke(this, fieldVal);
} catch (ClassCastException e) {
e.printStackTrace();
LOGGER.error("ClassCastException {}", setMethodName, e);
} catch (IllegalArgumentException e) {
e.printStackTrace();
LOGGER.error("IllegalArgumentException {}", setMethodName, e);
} catch (NoSuchMethodException e) {
LOGGER.error("没有方法:{}", setMethodName, e);
} catch (IllegalAccessException e) {
LOGGER.error("入参出错:{}:{}:{}", f, f.getType(), fieldVal, e);
} catch (InvocationTargetException e) {
LOGGER.error("方法返回出错:{}", setMethodName, e);
}catch (RuntimeException e) {
LOGGER.error("RuntimeException {}", setMethodName, e);
}catch (Exception e) {
LOGGER.error("Exception {}", setMethodName, e);
}
}
}

@ -1,6 +1,9 @@
package cn.estsh.i3plus.pojo.base.enumutil;
import com.fasterxml.jackson.annotation.JsonFormat;
import javafx.scene.chart.Chart;
import java.util.Date;
/**
* @Description :
@ -54,7 +57,7 @@ public class BlockFormEnumUtil {
public static int codeOfValue(String code) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
if (values()[i].code.equals(code.toLowerCase())) {
tmp = values()[i].value;
}
}
@ -93,6 +96,87 @@ public class BlockFormEnumUtil {
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum FORM_TABLE_STATUS {
SYNCHRONOUS_UNDONE(1, "未完成", "未同步"),
SYNCHRONOUS_COMPLETE(2, "已完成", "已同步");
private int value;
private String code;
private String description;
private FORM_TABLE_STATUS(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
public static String valueOfCode(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].code;
}
}
return tmp;
}
public static int codeOfValue(String code) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code.toLowerCase())) {
tmp = values()[i].value;
}
}
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;
}
public static FORM_TABLE_STATUS valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
return values()[i];
}
}
return null;
}
public static String codeOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -724,7 +808,7 @@ public class BlockFormEnumUtil {
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PROPERTY_VIRTUAL_TYPE {
public enum PROPERTY_VIRTUAL_OPERATE_TYPE {
STRING_SPLICE(10, "SPLICE", "字符串拼接"),
NUM_ADD(20, "ADD", "加法计算"),
NUM_LESS(30, "MIN", "减法计算"),
@ -735,7 +819,7 @@ public class BlockFormEnumUtil {
private String code;
private String description;
private PROPERTY_VIRTUAL_TYPE(int value, String code, String description) {
private PROPERTY_VIRTUAL_OPERATE_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
@ -783,7 +867,7 @@ public class BlockFormEnumUtil {
return tmp;
}
public static PROPERTY_VIRTUAL_TYPE valueOf(int val) {
public static PROPERTY_VIRTUAL_OPERATE_TYPE valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
@ -809,24 +893,28 @@ public class BlockFormEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PROPERTY_TYPE {
STRING(10, "String", "字符串"),
CHAR(11, "Character", "单字符"),
INTEGER(20, "Integer", "短整型"),
LONG(21, "Long", "长整型"),
DOUBLE(30, "Double", "大浮点型"),
FLOAT(31, "Float", "小浮点型"),
BOOLEAN(40, "Boolean", "布尔值"),
BYTE(50, "Byte", "字节"),
DATE(60, "Date", "日期");
STRING(10, "String", "字符串", "java.lang.String", String.class),
CHAR(11, "Character", "单字符", "java.lang.Character", Character.class),
INTEGER(20, "Integer", "短整型", "java.lang.Integer", Integer.class),
LONG(21, "Long", "长整型", "java.lang.Long", Long.class),
DOUBLE(30, "Double", "大浮点型", "java.lang.Double", Double.class),
FLOAT(31, "Float", "小浮点型", "java.lang.Float", Float.class),
BOOLEAN(40, "Boolean", "布尔值", "java.lang.Boolean", Boolean.class),
BYTE(50, "Byte", "字节", "java.lang.Byte", Byte.class),
DATE(60, "Date", "日期", "java.sql.Timestamp", Date.class);
private int value;
private String code;
private String description;
private String classPath;
private Class clzFullName;
private PROPERTY_TYPE(int value, String code, String description) {
private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName) {
this.value = value;
this.code = code;
this.description = description;
this.classPath = classPath;
this.clzFullName = clzFullName;
}
public int getValue() {
@ -851,6 +939,16 @@ public class BlockFormEnumUtil {
return tmp;
}
public static Class valueOfClzFullName(int val) {
Class tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].clzFullName;
}
}
return tmp;
}
public static int codeOfValue(String code) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
@ -861,6 +959,16 @@ public class BlockFormEnumUtil {
return tmp;
}
public static int codeOfClassPath(String classPath) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].classPath.equals(classPath)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
@ -881,6 +989,16 @@ public class BlockFormEnumUtil {
return null;
}
public static PROPERTY_TYPE indexOf(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (val.indexOf(values()[i].value) >= 0) {
return values()[i];
}
}
return null;
}
public static String codeOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
@ -1479,4 +1597,5 @@ public class BlockFormEnumUtil {
return tmp;
}
}
}

@ -153,6 +153,15 @@ public class CommonEnumUtil {
}
return tmp;
}
public static int descOf(boolean desc) {
return desc ? TRUE_OR_FALSE.TRUE.getValue() : TRUE_OR_FALSE.FALSE.getValue();
}
public static int descOf(int desc) {
return desc == 0 ? TRUE_OR_FALSE.TRUE.getValue() : TRUE_OR_FALSE.FALSE.getValue();
}
public static String valueOfDescription(int val) {return valueOf(val);}
public static int descriptionOfValue(String desc) {return descOf(desc);}

@ -180,57 +180,6 @@ public class WmsEnumUtil {
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ORDER_SRC {
MNU(10, "MNU", "手工"),
ERP(20, "ERP", "ERP接口");
private int value;
private String code;
private String description;
ORDER_SRC(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 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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -425,69 +374,6 @@ public class WmsEnumUtil {
}
}
/**
*
* 1: success_queue
* 2: fail_queue
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QUEUE_NAME {
SUCCESS_QUEUE(1, "wms_success_queue", "成功消息队列"),
PENDING_QUEUE(2, "wms_pending_queue", "待处理消息队列");
private int value;
private String name;
private String description;
QUEUE_NAME(int value, String name, String description) {
this.value = value;
this.name = name;
this.description = description;
}
public int getValue() {
return value;
}
public String getName() {
return name;
}
public String getDescription() {
return description;
}
public static String valueOfCode(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].name;
}
}
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;
}
public static String codeOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].name.equals(code)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
@ -1293,41 +1179,6 @@ public class WmsEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MOVE_DETAIL_STATUS {
CREATE(10, "创建"),
BE_HANDLE(20, "待处理"),
FINISH(30, "已处理");
private int value;
private String description;
MOVE_DETAIL_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
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;
}
}
/**
*
@ -1589,8 +1440,8 @@ public class WmsEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PRINT_ORDER_TYPE {
PO(10, "PO"),
ASN(30, "ASN"),
MOVEMENT(20, "MOVEMENT");
MOVEMENT(20, "MOVEMENT"),
ASN(30, "ASN");
private int value;
private String description;
@ -2253,4 +2104,57 @@ public class WmsEnumUtil {
return description;
}
}
/**
* NC
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum NC_HANDLE_BUSI_TYPE {
RECEPTION(10, "RECEPTION", "让步接收"),
SCRAP(20, "SCRAP", "报废"),
QUARANTINE(30, "QUARANTINE", "隔离"),
BACK_QUARANTINE(40, "BACK_QUARANTINE", "反隔离");
private int value;
private String code;
private String description;
NC_HANDLE_BUSI_TYPE(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 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;
}
}
}

@ -43,10 +43,14 @@ public class BfDataObject extends BaseBean {
@ApiParam(value ="数据表名")
private String objectTableName;
@Column(name="OBJECT_CONTENT")
@Column(name="OBJECT_CONTENT",columnDefinition="TEXT")
@ApiParam(value ="数据内容")
private String objectContent;
@Column(name="OBJECT_STATUS")
@ApiParam(value ="表状态(是否同步)")
private Integer objectStatus;
@Column(name="OBJECT_TYPE")
@ApiParam(value ="数据类型")
private Integer objectType;
@ -63,4 +67,5 @@ public class BfDataObject extends BaseBean {
@ApiParam(value = "数据对象属性")
@AnnoOutputColumn(hidden = true)
private List<BfDataObjectProperty> propertyList;
}

@ -64,6 +64,10 @@ public class BfDataObjectProperty extends BaseBean {
@ApiParam(value ="属性类型")
private Integer propertyType;
@Column(name="PROPERTY_TYPE_NAME_RDD")
@ApiParam(value ="属性类型名称")
private String propertyTypeNameRdd;
@Column(name="PROPERTY_DESCRIPTION")
@ApiParam(value ="属性描述")
private String propertyDescription;

@ -38,7 +38,7 @@ public class BfElementPropertyVirtual extends BaseBean {
@JsonSerialize(using = ToStringSerializer.class)
private Long elementId;
@Column(name = "PROPERTY_VIRTUAL_TYPE")
@Column(name = "PROPERTY_VIRTUAL_OPERATE_TYPE")
@ApiParam(value = "虚拟元素类型")
private Integer propertyVirtualType;

@ -0,0 +1,57 @@
package cn.estsh.i3plus.pojo.model.form;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description :
* @Reference :
* @Author : Adair Peng
* @CreateDate : 2019-03-22 17:17
* @Modify:
**/
@Data
public class SqlColumnModel {
// isAutoIncrement true isNullable 0 isSigned true getColumnDisplaySize 11 getColumnLabel id getColumnName id getSchemaName getPrecision 11 getScale 0 getTableName test getColumnType 4 getColumnTypeName INT getColumnClassName java.lang.Integer
// isAutoIncrement false isNullable 1 isSigned false getColumnDisplaySize 50 getColumnLabel name getColumnName name getSchemaName getPrecision 50 getScale 0 getTableName test getColumnType 12 getColumnTypeName VARCHAR getColumnClassName java.lang.String
// isAutoIncrement false isNullable 1 isSigned true getColumnDisplaySize 11 getColumnLabel age getColumnName age getSchemaName getPrecision 11 getScale 0 getTableName test getColumnType 4 getColumnTypeName INT getColumnClassName java.lang.Integer
// isAutoIncrement false isNullable 1 isSigned false getColumnDisplaySize 19 getColumnLabel date_time getColumnName date_time getSchemaName getPrecision 19 getScale 0 getTableName test getColumnType 93 getColumnTypeName TIMESTAMP getColumnClassName java.sql.Timestamp
// isAutoIncrement false isNullable 0 isSigned true getColumnDisplaySize 11 getColumnLabel test_num_not_null getColumnName test_num_not_null getSchemaName getPrecision 11 getScale 0 getTableName test getColumnType 4 getColumnTypeName INT getColumnClassName java.lang.Integer
// isAutoIncrement false isNullable 1 isSigned true getColumnDisplaySize 11 getColumnLabel test_unique getColumnName test_unique getSchemaName getPrecision 11 getScale 0 getTableName test getColumnType 4 getColumnTypeName INT getColumnClassName java.lang.Integer
// isAutoIncrement false isNullable 1 isSigned true getColumnDisplaySize 11 getColumnLabel test_comment getColumnName test_comment getSchemaName getPrecision 11 getScale 0 getTableName test getColumnType 4 getColumnTypeName INT getColumnClassName java.lang.Integer
// isAutoIncrement false isNullable 1 isSigned false getColumnDisplaySize 500 getColumnLabel test_string_1000 getColumnName test_string_1000 getSchemaName getPrecision 500 getScale 0 getTableName test getColumnType 12 getColumnTypeName VARCHAR getColumnClassName java.lang.String
// isAutoIncrement false isNullable 1 isSigned true getColumnDisplaySize 4 getColumnLabel test_double getColumnName test_double getSchemaName getPrecision 4 getScale 2 getTableName test getColumnType 8 getColumnTypeName DOUBLE getColumnClassName java.lang.Double
// 是否自增
@ApiParam(value = "是否自增")
private Integer isAutoIncrement;
// 是否允许为空
@ApiParam(value = "是否允许为空")
private Integer isNullable;
// 是否是对象
@ApiParam(value = "是否是对象")
private Integer isSigned;
// 字段名称
@ApiParam(value = "字段名称")
private String columnName;
// 字段长度
@ApiParam(value = "字段长度")
private Integer precision;
// 字段精确长度
@ApiParam(value = "字段精确长度")
private Integer scale;
// 字段类型编号
@ApiParam(value = "字段类型编号")
private Integer columnType;
// 字段类型名称
@ApiParam(value = "字段类型名称")
private String columnTypeName;
// 字段Java 类型
@ApiParam(value = "字段Java 类型")
private String columnClassName;
// 字段Java 类型
@ApiParam(value = "枚举:BlockFormEnumUtil.PROPERTY_TYPE")
private Integer columnClassType;
}

@ -0,0 +1,31 @@
package cn.estsh.i3plus.pojo.model.form;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
import java.util.Objects;
/**
* @Description :
* @Reference :
* @Author : Adair Peng
* @CreateDate : 2019-03-22 16:40
* @Modify:
**/
@Data
public class SqlCreateDllModel {
private String tableCat;
private String tableSchem;
private String tableName;
private Integer tableType;
private String tableTypeName;
private String remarks;
private String typeCat;
private String typeName;
private String selfReferencingColName;
private String refGeneration;
List<SqlColumnModel> columnlist ;
}

@ -1,5 +1,8 @@
package cn.estsh.i3plus.pojo.model.wms;
import cn.estsh.i3plus.pojo.wms.bean.WmsASNMaster;
import cn.estsh.i3plus.pojo.wms.bean.WmsDocMovementMaster;
import cn.estsh.i3plus.pojo.wms.bean.WmsPOMaster;
import io.swagger.annotations.ApiParam;
import lombok.Data;
@ -13,33 +16,28 @@ import lombok.Data;
@Data
public class PrintOrderDataModel {
@ApiParam(value = "工厂代码")
public String organizeCode;
@ApiParam("业务数据类型")
public Integer busiDataType;
@ApiParam(value = "单号")
@ApiParam("单号")
public String orderNo;
@ApiParam(value = "业务类型", example = "-1")
public Integer busiType;
@ApiParam(value = "状态", example = "-1")
public Integer status;
@ApiParam(value = "打印标志", example = "-1")
public Integer printFlag;
@ApiParam(value = "供应商编号")
public String vendorNo;
@ApiParam("工厂代码")
public String organizeCode;
@ApiParam(value = "客户编号")
public String custNo;
@ApiParam(value = "PO主表")
public WmsPOMaster poMaster;
@ApiParam(value = "版本")
public String version;
@ApiParam(value = "ASN主表")
public WmsASNMaster asnMaster;
@ApiParam(value = "ERP单号")
public String erpSrcNo;
@ApiParam(value = "移库单主表")
public WmsDocMovementMaster movementMaster;
@ApiParam(value = "业务数据类型", example = "-1")
public Integer busiDataType;
public int getBusiDataType() {
if (busiDataType != null) {
return busiDataType.intValue();
}
return 0;
}
}

@ -75,6 +75,10 @@ public class SysTaskPlan extends BaseBean {
@ApiParam(value ="任务所属模块")
private Integer taskSoftTypeRdd;
@Column(name="TASK_PLAN_PARAM")
@ApiParam(value ="任务计划参数")
private String taskPlanParam;
@Column(name="TASK_CYCLE_START_DATE_TIME_RDD")
@ApiParam(value ="任务开始时间")
private String taskCycleStartDateTimeRdd;

@ -66,4 +66,31 @@ public class WmsASNMaster extends BaseBean {
@ApiParam(value = "是否生产任务", example = "1")
public Integer isTask;
@ApiParam("ASN详情列表")
@Transient
public List<WmsASNMasterDetails> asnMasterDetailsList;
@Transient
@ApiParam(value = "发运单号")
private String shipOrderNo;
@Transient
@ApiParam(value = "打印时间")
private String printDate;
@Transient
@ApiParam(value = "发货人")
private String sendUser;
@Transient
@ApiParam(value = "收货人")
private String rcUser;
@Transient
@ApiParam(value = "发货日期")
private String sendDate;
@Transient
@ApiParam(value = "收货日期")
private String rcDate;
}

@ -77,6 +77,12 @@ public class WmsActionResponseBean<Obj> {
/**
* truetrue
*/
@ApiParam(value = "按钮是否禁用")
public Boolean isCommitBtnDisabled = true;
/**
* truetrue
*/
@ApiParam(value = "输入框是否禁用")
public Boolean isInputBtnDisabled = false;

@ -93,4 +93,8 @@ public class WmsCSOrderDetails extends BaseBean {
@Column(name = "TRANS_STATUS")
@ApiParam(value = "处理状态", example = "1")
public Integer transStatus;
public Double getQty() {
return this.qty == null ? 0 : this.qty;
}
}

@ -108,4 +108,32 @@ public class WmsDocMovementMaster extends BaseBean {
@Transient
@ApiParam(value = "目的库存地代码")
private String desrAreaNo;
@Column(name = "IS_PART")
@ApiParam(value = "是否散件")
private Integer isPart;
@Transient
@ApiParam(value = "发运单号")
private String shipOrderNo;
@Transient
@ApiParam(value = "打印时间")
private String printDate;
@Transient
@ApiParam(value = "发货人")
private String sendUser;
@Transient
@ApiParam(value = "收货人")
private String rcUser;
@Transient
@ApiParam(value = "发货日期")
private String sendDate;
@Transient
@ApiParam(value = "收货日期")
private String rcDate;
}

@ -21,77 +21,94 @@ import javax.persistence.Table;
**/
@Data
@Entity
@Table(name="WMS_LOCATE")
@Table(name = "WMS_LOCATE")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api(value="库位表",description = "库位表")
@Api(value = "库位表", description = "库位表")
public class WmsLocate extends BaseBean {
@Column(name="LOCATE_NO")
@ApiParam(value ="库位代码")
@Column(name = "LOCATE_NO")
@ApiParam(value = "库位代码")
private String locateNo;
@Column(name="LOCATE_NAME")
@ApiParam(value ="库位名称")
@Column(name = "LOCATE_NAME")
@ApiParam(value = "库位名称")
private String locateName;
/**
* :10=,20=,30=,40=,50=线,60=NC70=,80=
*/
@Column(name="LOCATE_TYPE")
@ApiParam(value ="库位类型")
@Column(name = "LOCATE_TYPE")
@ApiParam(value = "库位类型")
private Integer locateType;
@Column(name="WH_NO")
@ApiParam(value ="仓库代码")
@Column(name = "WH_NO")
@ApiParam(value = "仓库代码")
private String whNo;
@Column(name="ZONE_NO")
@ApiParam(value ="存储区代码")
@Column(name = "ZONE_NO")
@ApiParam(value = "存储区代码")
private String zoneNo;
@Column(name="X")
@ApiParam(value ="X", example = "-1")
@Column(name = "X")
@ApiParam(value = "X", example = "-1")
private Integer x;
@Column(name="Y")
@ApiParam(value ="Y", example = "-1")
@Column(name = "Y")
@ApiParam(value = "Y", example = "-1")
private Integer y;
@Column(name="Z")
@ApiParam(value ="Z", example = "-1")
@Column(name = "Z")
@ApiParam(value = "Z", example = "-1")
private Integer z;
@Column(name="SEQ")
@ApiParam(value ="序号", example = "-1")
@Column(name = "SEQ")
@ApiParam(value = "序号", example = "-1")
private Integer seq;
@Column(name="STATUS")
@ApiParam(value ="库位状态", example = "-1")
@Column(name = "STATUS")
@ApiParam(value = "库位状态", example = "-1")
private Integer status;
@Column(name="MAX_PACKAGE_QTY")
@ApiParam(value ="最大包装数量", example = "-1")
@Column(name = "MAX_PACKAGE_QTY")
@ApiParam(value = "最大包装数量", example = "-1")
private Integer maxPackageQty;
@Column(name="MAX_PART_QTY")
@ApiParam(value ="最大零件数量", example = "-1")
private Integer maxPartQty;
@Column(name = "MAX_PART_QTY")
@ApiParam(value = "最大零件数量", example = "-1")
private Double maxPartQty;
@Column(name="STOCK_UNIT")
@ApiParam(value ="存放单位")
@Column(name = "STOCK_UNIT")
@ApiParam(value = "存放单位")
private String stockUnit;
@Column(name="LINE_CODE")
@ApiParam(value ="生产线")
@Column(name = "LINE_CODE")
@ApiParam(value = "生产线")
private String lineCode;
@Column(name="BOX_QTY")
@ApiParam(value ="箱数", example = "-1")
@Column(name = "BOX_QTY")
@ApiParam(value = "箱数", example = "-1")
private Integer boxQty;
@Column(name="PART_QTY")
@ApiParam(value ="零件数", example = "-1")
private Integer partQty;
@Column(name = "PART_QTY")
@ApiParam(value = "零件数", example = "-1")
private Double partQty;
public Integer getMaxPackageQty() {
return this.maxPackageQty == null ? 0 : this.maxPackageQty;
}
public Double getMaxPartQty() {
return this.maxPartQty == null ? 0 : this.maxPartQty;
}
public Integer getBoxQty() {
return this.boxQty == null ? 0 : this.boxQty;
}
public Double getPartQty() {
return this.partQty == null ? 0 : this.partQty;
}
}

@ -51,4 +51,12 @@ public class WmsLocatePart extends BaseBean{
@Column(name = "MIN")
@ApiParam(value = "最小值", example = "0")
private Double min;
@Column(name = "IS_GENERATE_PICKLIST")
@ApiParam(value = "是否生成领料单", example = "2")
private Integer isGeneratePicklist;
public Integer getIsGeneratePicklist() {
return this.isGeneratePicklist == null ? 0 : this.isGeneratePicklist;
}
}

@ -12,6 +12,7 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
/**
* @Description : PO
@ -78,4 +79,36 @@ public class WmsPOMaster extends BaseBean {
@Column(name="IS_TASK")
@ApiParam(value = "是否生产任务", example = "1")
public Integer isTask;
@Column(name="IS_PART")
@ApiParam(value = "是否散件", example = "1")
public Integer isPart;
@ApiParam("PO明细列表信息")
@Transient
public List<WmsPOMasterDetails> poDetailList;
@Transient
@ApiParam(value = "发运单号")
private String shipOrderNo;
@Transient
@ApiParam(value = "打印时间")
private String printDate;
@Transient
@ApiParam(value = "发货人")
private String sendUser;
@Transient
@ApiParam(value = "收货人")
private String rcUser;
@Transient
@ApiParam(value = "发货日期")
private String sendDate;
@Transient
@ApiParam(value = "收货日期")
private String rcDate;
}

@ -107,6 +107,10 @@ public class WmsPart extends BaseBean {
@ApiParam(value ="批次校验规则")
private String lotCheckRule;
@Column(name="SN_CONTROL")
@ApiParam(value ="是否条码管理",example = "1")
private Integer snControl;
@Column(name="IN_LOCATE_NO")
@ApiParam(value ="默认入库库位")
private String inLocateNo;

@ -87,4 +87,8 @@ public class WmsQCMaster extends BaseBean {
@Column(name = "IS_TASK")
@ApiParam(value = "是否生产任务", example = "1")
public Integer isTask;
@Column(name="IS_PART")
@ApiParam(value = "是否散件", example = "2")
public Integer isPart;
}

@ -96,4 +96,36 @@ public class WmsStockQuan extends BaseBean {
@ColumnDefault("0")
@ApiParam(value = "锁定数量", example = "0")
private Double lockQty;
public Double getQty() {
return this.qty == null ? 0 : this.qty;
}
public Double getFailQty() {
return this.failQty == null ? 0 : this.failQty;
}
public Double getHoldQty() {
return this.holdQty == null ? 0 : this.holdQty;
}
public Double getQcQty() {
return this.qcQty == null ? 0 : this.qcQty;
}
public Double getRinQty() {
return this.rinQty == null ? 0 : this.rinQty;
}
public Double getFreezeQty() {
return this.freezeQty == null ? 0 : this.freezeQty;
}
public Double getConsignQty() {
return this.consignQty == null ? 0 : this.consignQty;
}
public Double getLockQty() {
return this.lockQty == null ? 0 : this.lockQty;
}
}

@ -149,4 +149,20 @@ public class WmsStockSn extends BaseBean {
@ApiParam(value = "库位名称")
@Transient
public String locateNameRdd;
@ApiParam(value = "物料类型描述")
@Transient
public String partTypeDesc;
@ApiParam(value = "客户名称")
@Transient
public String custNameRdd;
@ApiParam(value = "供应商名称")
@Transient
public String vendorNameRdd;
@ApiParam(value = "二维码内容")
@Transient
public String barCode;
}

@ -120,4 +120,12 @@ public class WmsTaskDetails extends BaseBean {
@Column(name = "DEST_AREA_NO")
@ApiParam("目的库存地代码")
public String destAreaNo;
public Double getQty() {
return this.qty == null ? 0 : this.qty;
}
public Double getTransQty() {
return this.transQty == null ? 0 : this.transQty;
}
}

@ -11,6 +11,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
* @Description :
@ -67,4 +68,8 @@ public class WmsTaskInfo extends BaseBean {
@ApiParam("是否一步法操作")
public Integer isOneStep;
@ApiParam("作业类型名称")
@Transient
public String opTypeName;
}

@ -119,7 +119,7 @@ public class WmsHqlPack {
StringBuffer result = new StringBuffer();
//查询参数封装
HqlPack.getStringLikerPack(wmsDocMovementMaster.getOrderNo(), "orderNo", result);
HqlPack.getStringRightLikerPack(wmsDocMovementMaster.getOrderNo(), "orderNo", result);
HqlPack.getNumEqualPack(wmsDocMovementMaster.getMoveType(), "moveType", result);
HqlPack.getNumEqualPack(wmsDocMovementMaster.getBusiType(), "busiType", result);
HqlPack.getStringLikerPack(wmsDocMovementMaster.getCustNo(), "custNo", result);
@ -139,11 +139,36 @@ public class WmsHqlPack {
StringBuffer result = new StringBuffer();
//查询参数封装
HqlPack.getStringLikerPack(wmsPOMaster.getOrderNo(), "orderNo", result);
HqlPack.getStringLikerPack(wmsPOMaster.getPoType(), "poType", result);
HqlPack.getStringEqualPack(wmsPOMaster.getOrderNo(), "orderNo", result);
HqlPack.getStringEqualPack(wmsPOMaster.getPoType(), "poType", result);
HqlPack.getNumEqualPack(wmsPOMaster.getPoStatus(), "poStatus", result);
HqlPack.getStringLikerPack(wmsPOMaster.getVendorNo(), "vendorNo", result);
HqlPack.getStringLikerPack(wmsPOMaster.getSrc(), "src", result);
HqlPack.getStringEqualPack(wmsPOMaster.getVendorNo(), "vendorNo", result);
HqlPack.getStringEqualPack(wmsPOMaster.getSrc(), "src", result);
HqlPack.getStringEqualPack(wmsPOMaster.getIsAsn(), "isAsn", result);
getStringBuilderPack(wmsPOMaster, result);
return result.toString();
}
/**
* PO ()
*
* @param wmsPOMaster
* @return
*/
public static String packHqlWmsPOMasterPart(WmsPOMaster wmsPOMaster) {
StringBuffer result = new StringBuffer();
//查询参数封装
HqlPack.getInPack(String.join(",", WmsEnumUtil.RC_ORDER_STATUS.CREATE.getValue() + "",
WmsEnumUtil.RC_ORDER_STATUS.RECEIPT.getValue() + ""),"poStatus",result);
HqlPack.getNumEqualPack(wmsPOMaster.getIsPart(),"isPart", result);
HqlPack.getStringEqualPack(wmsPOMaster.getOrderNo(), "orderNo", result);
HqlPack.getStringEqualPack(wmsPOMaster.getPoType(), "poType", result);
HqlPack.getNumEqualPack(wmsPOMaster.getPoStatus(), "poStatus", result);
HqlPack.getStringEqualPack(wmsPOMaster.getVendorNo(), "vendorNo", result);
HqlPack.getStringEqualPack(wmsPOMaster.getSrc(), "src", result);
HqlPack.getStringEqualPack(wmsPOMaster.getIsAsn(), "isAsn", result);
getStringBuilderPack(wmsPOMaster, result);
@ -531,7 +556,7 @@ public class WmsHqlPack {
public static String packHqlWmsASNMaster(WmsASNMaster wmsASNMaster) {
StringBuffer result = new StringBuffer();
HqlPack.getStringEqualPack(wmsASNMaster.getOrderNo(), "orderNo", result);
HqlPack.getStringRightLikerPack(wmsASNMaster.getOrderNo(), "orderNo", result);
HqlPack.getStringEqualPack(wmsASNMaster.getAsnType(), "asnType", result);
HqlPack.getNumEqualPack(wmsASNMaster.getAsnStatus(), "asnStatus", result);
HqlPack.getStringEqualPack(wmsASNMaster.getVendorNo(), "vendorNo", result);
@ -1559,4 +1584,20 @@ public class WmsHqlPack {
return result.toString();
}
/**
*
*
* @param details
* @return
*/
public static String packHqlWmsDocMovementDetails(WmsDocMovementDetails details) {
StringBuffer result = new StringBuffer();
HqlPack.getStringEqualPack(details.getOrderNo(), "orderNo", result);
HqlPack.getStringEqualPack(details.getPartNo(), "partNo", result);
getStringBuilderPack(details, result);
return result.toString();
}
}

Loading…
Cancel
Save