快捷搜索条件表单
parent
17b9c57649
commit
4438f3937a
@ -0,0 +1,21 @@
|
|||||||
|
package com.engine.organization.entity.search.condition;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2023/08/14
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class ConditionOption {
|
||||||
|
private String key;
|
||||||
|
private String showname;
|
||||||
|
private Boolean selected;
|
||||||
|
}
|
@ -0,0 +1,41 @@
|
|||||||
|
package com.engine.organization.entity.search.condition;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2023/08/14
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class RangeCondition {
|
||||||
|
private String label;
|
||||||
|
private List<ConditionOption> options;
|
||||||
|
private List<String> domkey;
|
||||||
|
private List<Map<String, Object>> selectLinkageDatas;
|
||||||
|
private Integer labelcol;
|
||||||
|
private Integer fieldcol;
|
||||||
|
|
||||||
|
public Integer getLabelcol() {
|
||||||
|
if (null == labelcol) {
|
||||||
|
return 6;
|
||||||
|
}
|
||||||
|
return labelcol;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldcol() {
|
||||||
|
if (null == fieldcol) {
|
||||||
|
return 18;
|
||||||
|
}
|
||||||
|
return fieldcol;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,37 @@
|
|||||||
|
package com.engine.organization.enums;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2023/08/14
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
public enum QuickSearchConditionEnum {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字段类型
|
||||||
|
*/
|
||||||
|
SELECT("5"), DATETIME("3"),NUMBER("1"),RESOURCE("-1"),MEETING("-3"),WAREHOUSE("-5");
|
||||||
|
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
QuickSearchConditionEnum(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValue(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static QuickSearchConditionEnum getByValue(String value) {
|
||||||
|
for (QuickSearchConditionEnum conditionEnum : values()) {
|
||||||
|
if (conditionEnum.getValue().equals(value)) {
|
||||||
|
return conditionEnum;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue