forked from github/dataease
Merge pull request #11429 from dataease/pr@dev-v2@feat_calc
feat: 计算字段支持自定义参数
This commit is contained in:
commit
ca1b268c22
@ -417,7 +417,7 @@ public class Utils {
|
||||
}
|
||||
|
||||
public static List<CalParam> getParams(List<DatasetTableFieldDTO> list) {
|
||||
if (ObjectUtils.isNotEmpty(list)) return Collections.emptyList();
|
||||
if (ObjectUtils.isEmpty(list)) return Collections.emptyList();
|
||||
List<CalParam> param = new ArrayList<>();
|
||||
for (DatasetTableFieldDTO dto : list) {
|
||||
if (Objects.equals(dto.getExtField(), ExtFieldConstant.EXT_CALC) && ObjectUtils.isNotEmpty(dto.getParams())) {
|
||||
|
@ -1,7 +1,5 @@
|
||||
package io.dataease.extensions.datasource.dto;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
@ -11,7 +9,6 @@ import java.io.Serializable;
|
||||
*/
|
||||
@Data
|
||||
public class CalParam implements Serializable {
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private String id;
|
||||
private String name;
|
||||
private String value;
|
||||
|
Loading…
Reference in New Issue
Block a user