Commit 92a27222 by zhouhaibao

refactor(strategy): 重构SopConditionRequest数据结构

- 移除variableType、operatorType、valueSourceType等旧字段
- 添加operator、valueType、textValue、numberValue、dateValue等新字段
- 重命名valueText为textValue、valueNumber为numberValue、valueDate为dateValue
- 新增enumValue字段用于存储枚举值
- 新增valueSource字段表示值来源
- 添加variableRefCode字段用于引用变量编码
- 更新字段注释说明,统一使用value属性
1 parent df3188e3
......@@ -2,6 +2,8 @@ package cn.com.glsx.dj.strategy.request;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
@Data
......@@ -13,30 +15,27 @@ public class SopConditionRequest implements Serializable {
@ApiModelProperty(notes = "条件变量编码")
private String variableCode;
@ApiModelProperty(notes = "变量类型(1日期/2数值/3文本/4枚举)")
private Integer variableType;
@ApiModelProperty(value = "操作符类型")
private Integer operator;
@ApiModelProperty(notes = "运算符类型")
private Integer operatorType;
@ApiModelProperty(value = "值类型:1-文本 2-数值 3-日期 4-枚举")
private Integer valueType;
@ApiModelProperty(notes = "值类型(0值/1变量)")
private Integer valueSourceType;
@ApiModelProperty(value = "文本值")
private String textValue;
@ApiModelProperty(notes = "文本值")
private String valueText;
@ApiModelProperty(value = "数值")
private BigDecimal numberValue;
@ApiModelProperty(notes = "数值")
private java.math.BigDecimal valueNumber;
@ApiModelProperty(value = "日期值")
private Date dateValue;
@ApiModelProperty(notes = "日期")
private java.sql.Date valueDate;
@ApiModelProperty(value = "枚举值(值类型为4时使用,多个值用逗号分隔)")
private String enumValue;
@ApiModelProperty(notes = "日期时间")
private java.sql.Timestamp valueDatetime;
@ApiModelProperty(value = "值来源:0-固定值 1-变量引用")
private Integer valueSource;
@ApiModelProperty(notes = "枚举值")
private String valueEnumCode;
@ApiModelProperty(notes = "复杂值JSON")
private String valueJson;
@ApiModelProperty(value = "引用的变量编码")
private String variableRefCode;
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!