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

yun-zuoyi
Silliter 6 years ago
commit fe644066af

@ -501,6 +501,87 @@ public class BlockFormEnumUtil {
} }
/** /**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ELEMENT_TYPE {
GRID(1, "TABLE", "表格"),
TREE(2, "TREE", "树");
private int value;
private String code;
private String description;
private ELEMENT_TYPE(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)) {
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 ELEMENT_TYPE 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) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -889,32 +970,57 @@ public class BlockFormEnumUtil {
} }
/** /**
* * ()
* <per>
* <br/> Form
* <br/> Java
* <br/> Java
* </per>
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PROPERTY_TYPE { public enum PROPERTY_TYPE {
STRING(10, "String", "字符串", "java.lang.String", String.class), STRING(10, "String", "字符串", "java.lang.String", String.class,PROPERTY_CONTROL_TYPE.TEXT),
CHAR(11, "Character", "单字符", "java.lang.Character", Character.class), CHAR(11, "Character", "单字符", "java.lang.Character", Character.class,PROPERTY_CONTROL_TYPE.TEXT),
INTEGER(20, "Integer", "短整型", "java.lang.Integer", Integer.class), INTEGER(20, "Integer", "短整型", "java.lang.Integer", Integer.class,PROPERTY_CONTROL_TYPE.NUMBER),
LONG(21, "Long", "长整型", "java.lang.Long", Long.class), LONG(21, "Long", "长整型", "java.lang.Long", Long.class,PROPERTY_CONTROL_TYPE.NUMBER),
DOUBLE(30, "Double", "大浮点型", "java.lang.Double", Double.class), DOUBLE(30, "Double", "大浮点型", "java.lang.Double", Double.class,PROPERTY_CONTROL_TYPE.NUMBER),
FLOAT(31, "Float", "小浮点型", "java.lang.Float", Float.class), FLOAT(31, "Float", "小浮点型", "java.lang.Float", Float.class,PROPERTY_CONTROL_TYPE.NUMBER),
BOOLEAN(40, "Boolean", "布尔值", "java.lang.Boolean", Boolean.class), BOOLEAN(40, "Boolean", "布尔值", "java.lang.Boolean", Boolean.class,PROPERTY_CONTROL_TYPE.RADIO),
BYTE(50, "Byte", "字节", "java.lang.Byte", Byte.class), BYTE(50, "Byte", "字节", "java.lang.Byte", Byte.class,PROPERTY_CONTROL_TYPE.TEXT),
DATE(60, "Date", "日期", "java.sql.Timestamp", Date.class); DATE(60, "Date", "日期", "java.lang.String", String.class,PROPERTY_CONTROL_TYPE.DATE_TIME);
/**
*
*/
private int value; private int value;
/**
*
*/
private String code; private String code;
/**
*
*/
private String description; private String description;
/**
* ClassPath
*/
private String classPath; private String classPath;
/**
* Class
*/
private Class clzFullName; private Class clzFullName;
/**
*
*/
private PROPERTY_CONTROL_TYPE controlType;
private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName) { private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,PROPERTY_CONTROL_TYPE controlType) {
this.value = value; this.value = value;
this.code = code; this.code = code;
this.description = description; this.description = description;
this.classPath = classPath; this.classPath = classPath;
this.clzFullName = clzFullName; this.clzFullName = clzFullName;
this.controlType = controlType;
} }
public int getValue() { public int getValue() {
@ -949,6 +1055,16 @@ public class BlockFormEnumUtil {
return tmp; return tmp;
} }
public static PROPERTY_CONTROL_TYPE valueOfControlType(int val) {
PROPERTY_CONTROL_TYPE tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].controlType;
}
}
return tmp;
}
public static int codeOfValue(String code) { public static int codeOfValue(String code) {
int tmp = 1; int tmp = 1;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {

@ -52,6 +52,10 @@ public class BfElement extends BaseBean {
@ApiParam(value ="元素名称") @ApiParam(value ="元素名称")
private String elementName; private String elementName;
@Column(name="ELEMENT_CODE")
@ApiParam(value ="元素编码")
private String elementCode;
@Column(name="ELEMENT_ATTR_ID") @Column(name="ELEMENT_ATTR_ID")
@ApiParam(value ="默认排序属性") @ApiParam(value ="默认排序属性")
private String elementAttrId; private String elementAttrId;

@ -52,12 +52,8 @@ public class BfElementGrid extends BaseBean {
@ApiParam(value = "是否删除") @ApiParam(value = "是否删除")
private Integer isObjectDel; private Integer isObjectDel;
@Column(name = "ELEMENT_TYPE")
@ApiParam(value = "是否查询")
private Integer elementType;
@Column(name = "IS_OBJECT_FIND") @Column(name = "IS_OBJECT_FIND")
@ApiParam(value = "元素类型") @ApiParam(value = "是否查询")
private Integer isObjectFind; private Integer isObjectFind;
} }

@ -47,6 +47,14 @@ public class BfElementProperty extends BaseBean {
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long dataObjectPropertyId; private Long dataObjectPropertyId;
@Column(name="PROPERTY_TYPE")
@ApiParam(value ="属性类型")
private Integer propertyType;
@Column(name="PROPERTY_TYPE_NAME_RDD")
@ApiParam(value ="属性类型名称")
private String propertyTypeNameRdd;
@Column(name="PROPERTY_NAME") @Column(name="PROPERTY_NAME")
@ApiParam(value ="元素描述") @ApiParam(value ="元素描述")
private String propertyName; private String propertyName;

@ -60,6 +60,11 @@ public class BfElementPropertyVirtual extends BaseBean {
@Transient @Transient
@ApiParam(value = "虚拟属性列表") @ApiParam(value = "虚拟属性列表")
@AnnoOutputColumn(hidden = true) private List<BfElementProperty> propertyList;
private List<BfCascadeDetail> detailList;
@Transient
@ApiParam(value = "虚拟属性ID列表")
@JsonSerialize(using = ToStringSerializer.class)
private List<Long> propertyIdList;
} }

@ -13,6 +13,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient;
/** /**
* @Description : * @Description :
@ -38,15 +39,18 @@ public class BfElementTree extends BaseBean {
@Column(name = "TREE_PARENT_ID") @Column(name = "TREE_PARENT_ID")
@ApiParam(value = "父级属性ID") @ApiParam(value = "父级属性ID")
private Integer treeParentId; @JsonSerialize(using = ToStringSerializer.class)
private Long treeParentId;
@Column(name = "TREE_ATTR_NAME_ID") @Column(name = "TREE_ATTR_NAME_ID")
@ApiParam(value = "显示属性ID") @ApiParam(value = "显示属性ID")
private Integer treeAttrNameId; @JsonSerialize(using = ToStringSerializer.class)
private Long treeAttrNameId;
@Column(name = "TREE_ATTR_VALUE_ID") @Column(name = "TREE_ATTR_VALUE_ID")
@ApiParam(value = "取值属性ID") @ApiParam(value = "取值属性ID")
private Integer treeAttrValueId; @JsonSerialize(using = ToStringSerializer.class)
private Long treeAttrValueId;
@Column(name="TREE_DEFAULT_DIRECTION") @Column(name="TREE_DEFAULT_DIRECTION")
@ApiParam(value ="树默认方向") @ApiParam(value ="树默认方向")
@ -55,4 +59,16 @@ public class BfElementTree extends BaseBean {
@Column(name = "TREE_IS_DIRECTION") @Column(name = "TREE_IS_DIRECTION")
@ApiParam(value = "树是否开启切换方向") @ApiParam(value = "树是否开启切换方向")
private Integer treeIsDirection; private Integer treeIsDirection;
@Transient
@ApiParam(value = "父级属性")
private String treeParentIdStr;
@Transient
@ApiParam(value = "显示属性")
private String treeAttrNameIdStr;
@Transient
@ApiParam(value = "取值属性")
private String treeAttrValueIdStr;
} }

@ -26,7 +26,7 @@ import javax.persistence.Table;
@DynamicInsert @DynamicInsert
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Table(name="BR_METHOD_DETAIL_PROPERTY") @Table(name="BF_METHOD_DETAIL_PROPERTY")
@Api(value="表单功能明细关联属性",description = "表单功能明细关联属性") @Api(value="表单功能明细关联属性",description = "表单功能明细关联属性")
public class BfMethodDetailProperty extends BaseBean { public class BfMethodDetailProperty extends BaseBean {

@ -1,10 +1,7 @@
package cn.estsh.i3plus.pojo.form.sqlpack; package cn.estsh.i3plus.pojo.form.sqlpack;
import cn.estsh.i3plus.pojo.base.tool.HqlPack; import cn.estsh.i3plus.pojo.base.tool.HqlPack;
import cn.estsh.i3plus.pojo.form.bean.BfLayout; import cn.estsh.i3plus.pojo.form.bean.*;
import cn.estsh.i3plus.pojo.form.bean.BfLayoutRow;
import cn.estsh.i3plus.pojo.form.bean.BfMenu;
import cn.estsh.i3plus.pojo.form.bean.BfMethod;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
/** /**
@ -63,32 +60,31 @@ public final class FormHqlPack {
/** /**
* *
* @param bfLayout * @param bfLayoutRow
* @return hql * @return hql
*/ */
public static String packHqlBfLayoutRowByBfLayout(BfLayout bfLayout) { public static String packHqlBfLayoutRow(BfLayoutRow bfLayoutRow) {
StringBuffer result = new StringBuffer(); StringBuffer result = new StringBuffer();
HqlPack.getNumEqualPack(bfLayout.getId(), "layoutId", result); HqlPack.getNumEqualPack(bfLayoutRow.getLayoutId(), "layoutId", result);
HqlPack.getNumEqualPack(bfLayout.getIsDeleted(), "isDeleted", result); HqlPack.getNumEqualPack(bfLayoutRow.getIsDeleted(), "isDeleted", result);
result.append(bfLayout.orderBy()); result.append(bfLayoutRow.orderBy());
return result.toString(); return result.toString();
} }
/** /**
* *
* @param bfLayoutRow * @param bfLayoutColumn
* @return hql * @return hql
*/ */
public static String packHqlBfLayoutColumnByBfLayoutRow(BfLayoutRow bfLayoutRow) { public static String packHqlBfLayoutColumn(BfLayoutColumn bfLayoutColumn) {
StringBuffer result = new StringBuffer(); StringBuffer result = new StringBuffer();
HqlPack.getNumEqualPack(bfLayoutRow.getLayoutId(), "layoutId", result); HqlPack.getNumEqualPack(bfLayoutColumn.getLayoutRowId(), "layoutRowId", result);
HqlPack.getNumEqualPack(bfLayoutRow.getId(), "layoutRowId", result); HqlPack.getNumEqualPack(bfLayoutColumn.getIsDeleted(), "isDeleted", result);
HqlPack.getNumEqualPack(bfLayoutRow.getIsDeleted(), "isDeleted", result);
result.append(bfLayoutRow.orderBy()); result.append(bfLayoutColumn.orderBy());
return result.toString(); return result.toString();
} }
@ -103,6 +99,7 @@ public final class FormHqlPack {
HqlPack.getStringLikerPack(bfMenu.getMenuName(), "menuName", result); HqlPack.getStringLikerPack(bfMenu.getMenuName(), "menuName", result);
HqlPack.getNumEqualPack(bfMenu.getParentId(), "parentId", result); HqlPack.getNumEqualPack(bfMenu.getParentId(), "parentId", result);
HqlPack.getNumEqualPack(bfMenu.getIsDeleted(), "isDeleted", result); HqlPack.getNumEqualPack(bfMenu.getIsDeleted(), "isDeleted", result);
result.append(bfMenu.orderBy());
return result.toString(); return result.toString();
} }
@ -118,6 +115,23 @@ public final class FormHqlPack {
HqlPack.getStringLikerPack(bfMethod.getMethodName(), "methodName", result); HqlPack.getStringLikerPack(bfMethod.getMethodName(), "methodName", result);
HqlPack.getNumEqualPack(bfMethod.getLayoutId(), "layoutId", result); HqlPack.getNumEqualPack(bfMethod.getLayoutId(), "layoutId", result);
HqlPack.getNumEqualPack(bfMethod.getIsDeleted(), "isDeleted", result); HqlPack.getNumEqualPack(bfMethod.getIsDeleted(), "isDeleted", result);
result.append(bfMethod.orderBy());
return result.toString();
}
/**
*
* @param bfIntercept
* @return hql
*/
public static String packHqlBfIntercept(BfIntercept bfIntercept) {
StringBuffer result = new StringBuffer();
HqlPack.getStringLikerPack(bfIntercept.getInterceptName(), "interceptName", result);
HqlPack.getNumEqualPack(bfIntercept.getExecuteMode(), "executeMode", result);
HqlPack.getNumEqualPack(bfIntercept.getIsDeleted(), "isDeleted", result);
result.append(bfIntercept.orderBy());
return result.toString(); return result.toString();
} }

@ -38,6 +38,10 @@
<groupId>i3plus.pojo</groupId> <groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo-wms</artifactId> <artifactId>i3plus-pojo-wms</artifactId>
</dependency> </dependency>
<dependency>
<groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo-form</artifactId>
</dependency>
</dependencies> </dependencies>

@ -0,0 +1,40 @@
package cn.estsh.i3plus.pojo.model.form;
import cn.estsh.i3plus.pojo.form.bean.*;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
/**
* @Description : Model
* @Reference :
* @Author : Adair Peng
* @CreateDate : 2019-03-21 13:14
* @Modify:
**/
@Data
public class ElementModel{
@ApiParam(value = "元素基础信息")
private BfElement element;
@ApiParam(value = "元素Tree信息")
private BfElementTree elementTree;
@ApiParam(value = "元素Grid信息")
private BfElementGrid elementGrid;
@ApiParam(value = "元素基础属性信息")
private List<BfElementProperty> propertyList;
@ApiParam(value = "元素基础虚拟属性信息")
private List<BfElementPropertyVirtual> virtualList;
@ApiParam(value = "数据对象信息")
private BfDataObject dataObject;
@ApiParam(value = "元素类型")
private Integer elementType;
}

@ -141,10 +141,16 @@ public class WmsDocMovementDetails extends BaseBean {
public String destAreaNo; public String destAreaNo;
@Transient @Transient
@ApiParam("实际批次")
private String actualLot;
@Transient
@ApiParam("推荐批次") @ApiParam("推荐批次")
private String recommondLot; private String recommondLot;
@Transient @Transient
@ApiParam("推荐库位") @ApiParam("推荐库位")
private String recommondLocateNo; private String recommondLocateNo;
public Double getQty() {return qty == null ? 0L : this.qty.doubleValue(); }
} }

@ -175,4 +175,6 @@ public class WmsStockSn extends BaseBean {
public WmsStockSn(String partNo){ public WmsStockSn(String partNo){
this.partNo = partNo; this.partNo = partNo;
} }
public Double getQty() {return qty == null ? 0L : this.qty.doubleValue(); }
} }

@ -12,6 +12,7 @@ import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient; import javax.persistence.Transient;
import java.util.List;
/** /**
* @Description : * @Description :
@ -72,4 +73,8 @@ public class WmsTaskInfo extends BaseBean {
@Transient @Transient
public String opTypeName; public String opTypeName;
@ApiParam("作业任务明细")
@Transient
public List<WmsTaskDetails> taskDetailsList;
} }

Loading…
Cancel
Save