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

yun-zuoyi
jenkins 6 years ago
commit a58888df85

@ -2322,4 +2322,93 @@ public class BlockFormEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CONDITIONAL_OPERATOR {
EQUAL(1, "=", "等于"),
NOT_EQUAL(2, "<>", "不等于"),
MORE(3, ">", "大于"),
LESS(4, "<", "小于"),
MORE_OR_EQUAL(5, ">=", "大于等于"),
LESS_OR_EQUAL (6, "<=", "小于等于"),
LIKE(7, "LIKE", "全模糊"),
START_LIKE(7, "LIKE", "前模糊"),
END_LIKE(7, "LIKE", "后模糊"),
IN(8, "in", "in");
private int value;
private String code;
private String description;
private CONDITIONAL_OPERATOR(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 CONDITIONAL_OPERATOR 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;
}
}
}

@ -14,6 +14,7 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
/**
* @Description :
@ -95,8 +96,19 @@ public class BfDataObjectProperty extends BaseBean {
@ApiParam(value ="默认查询条件")
private Integer objectColumnCustomWhere;
public int getObjectColumnCustomWhereVal(){
if(objectColumnCustomWhere == null){
objectColumnCustomWhere = -1;
}
return objectColumnCustomWhere;
}
@Transient
@ApiParam(value ="元素值")
private transient Object propertyFormValue;
@Transient
@ApiParam(value ="元素值集合")
private transient List<Object> propertyFormValueList;
}

@ -36,8 +36,8 @@ public class CloudFormModel {
// 新增数据
private List<Map<String,Object>> insertList;
// 修改数据
private List<Map<String,Object>> updateList;
// 修改条件
private List<BfDataObjectProperty> updateConditionList;
// 查询数据
private List<BfDataObjectProperty> selectList;
@ -46,7 +46,7 @@ public class CloudFormModel {
private Long select;
// 删除数据
private List<Long> deleteList;
private List<BfDataObjectProperty> deleteConditionList;
// 删除数据ID
private Long delete;

@ -0,0 +1,28 @@
package cn.estsh.i3plus.pojo.wms.dbinterface;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* WMS - SAP
*
*
* @author Rock.Yu
* @since 2019-06-09 21:06
*/
@Data
@AllArgsConstructor
public class MappingItem {
/**
*
*/
public String srcName;
/**
*
*/
public String destName;
/**
*
*/
public String defaultValue;
}

@ -0,0 +1,91 @@
package cn.estsh.i3plus.pojo.wms.dbinterface;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* WMS - SAP
*
* @author Rock.Yu
* @since 2019-06-09 20:08
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_INTERFACE_DATA_MAPPER")
@Api("接口数据映射")
public class WmsInterfaceDataMapper extends BaseBean {
/**
*
*/
@Column(name = "SEQ")
public int seq;
/**
*
*/
@Column(name = "SRC_GET_LIMIT")
public int srcGetLimit;
/**
*
*/
@Column(name = "SCR_DATA_SOURCE", length = 50)
public String dataSource;
/**
*
*/
@Column(name = "SCR_TABLE_NAME", length = 50)
public String srcTableName;
/**
*
*/
@Column(name = "SCR_ORDER_BY", length = 50)
public String srcOrderBy;
/**
*
*/
@Column(name = "SCR_WHERE", length = 255)
public String scrWhere;
/**
*
* SYNFLG=Y,SYNDATE={Date}
*/
@Column(name = "SCR_UPDATE_SYNC", length = 255)
public String srcUpdateSync;
/**
*
*/
@Column(name = "SCR_PK_COLUMNS", length = 255)
public String srcPkColumns;
/**
* ()...
*/
@Column(name = "COPY_BY_ORGS", length = 50)
public String copyByOrgs;
/**
*
*/
@Column(name = "DEST_BEAN_NAME", length = 50)
public String destBeanName;
/**
*
*/
@Column(name = "DEST_PK_PROPERTIES", length = 50)
public String destPkProperties;
/**
* List<MappingItem> JSON
*
*/
@Column(name = "DEST_COLUMN_MAPPING", length = 5000)
public String destColumnMapping;
}
Loading…
Cancel
Save