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; ...@@ -2,6 +2,8 @@ package cn.com.glsx.dj.strategy.request;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data; import lombok.Data;
@Data @Data
...@@ -13,30 +15,27 @@ public class SopConditionRequest implements Serializable { ...@@ -13,30 +15,27 @@ public class SopConditionRequest implements Serializable {
@ApiModelProperty(notes = "条件变量编码") @ApiModelProperty(notes = "条件变量编码")
private String variableCode; private String variableCode;
@ApiModelProperty(notes = "变量类型(1日期/2数值/3文本/4枚举)") @ApiModelProperty(value = "操作符类型")
private Integer variableType; private Integer operator;
@ApiModelProperty(notes = "运算符类型") @ApiModelProperty(value = "值类型:1-文本 2-数值 3-日期 4-枚举")
private Integer operatorType; private Integer valueType;
@ApiModelProperty(notes = "值类型(0值/1变量)") @ApiModelProperty(value = "文本值")
private Integer valueSourceType; private String textValue;
@ApiModelProperty(notes = "文本值") @ApiModelProperty(value = "数值")
private String valueText; private BigDecimal numberValue;
@ApiModelProperty(notes = "数值") @ApiModelProperty(value = "日期值")
private java.math.BigDecimal valueNumber; private Date dateValue;
@ApiModelProperty(notes = "日期") @ApiModelProperty(value = "枚举值(值类型为4时使用,多个值用逗号分隔)")
private java.sql.Date valueDate; private String enumValue;
@ApiModelProperty(notes = "日期时间") @ApiModelProperty(value = "值来源:0-固定值 1-变量引用")
private java.sql.Timestamp valueDatetime; private Integer valueSource;
@ApiModelProperty(notes = "枚举值") @ApiModelProperty(value = "引用的变量编码")
private String valueEnumCode; private String variableRefCode;
@ApiModelProperty(notes = "复杂值JSON")
private String valueJson;
} }
\ No newline at end of file \ 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!