增加动态报表对外接口-批量修改

yun-zuoyi
wei.peng 6 years ago
parent f2b19055d4
commit c4dceace92

@ -2322,4 +2322,93 @@ public class BlockFormEnumUtil {
return tmp; 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.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient; import javax.persistence.Transient;
import java.util.List;
/** /**
* @Description : * @Description :
@ -95,8 +96,19 @@ public class BfDataObjectProperty extends BaseBean {
@ApiParam(value ="默认查询条件") @ApiParam(value ="默认查询条件")
private Integer objectColumnCustomWhere; private Integer objectColumnCustomWhere;
public int getObjectColumnCustomWhereVal(){
if(objectColumnCustomWhere == null){
objectColumnCustomWhere = -1;
}
return objectColumnCustomWhere;
}
@Transient @Transient
@ApiParam(value ="元素值") @ApiParam(value ="元素值")
private transient Object propertyFormValue; 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>> insertList;
// 修改数据 // 修改条件
private List<Map<String,Object>> updateList; private List<BfDataObjectProperty> updateConditionList;
// 查询数据 // 查询数据
private List<BfDataObjectProperty> selectList; private List<BfDataObjectProperty> selectList;

Loading…
Cancel
Save