全局配置小数精度
This commit is contained in:
@@ -24,6 +24,10 @@ public class SysTestConfigParam {
|
||||
@NotNull(message = SystemValidMessage.MAX_RECHECK_NOT_NULL)
|
||||
private Integer maxTime;
|
||||
|
||||
@ApiModelProperty(value = "数据精度")
|
||||
@NotNull(message = SystemValidMessage.SCALE_NOT_NULL)
|
||||
private Integer scale;
|
||||
|
||||
// @ApiModelProperty(value = "数据处理规则")
|
||||
// @NotBlank(message = SystemValidMessage.DATA_RULE_NOT_BLANK)
|
||||
// @Pattern(regexp = PatternRegex.SYSTEM_ID, message = SystemValidMessage.DATA_RULE_FORMAT_ERROR)
|
||||
|
||||
@@ -46,6 +46,11 @@ public class SysTestConfig extends BaseEntity implements Serializable {
|
||||
@TableField("Scene")
|
||||
private String scene;
|
||||
|
||||
/**
|
||||
* 小数点精度
|
||||
*/
|
||||
private Integer scale;
|
||||
|
||||
|
||||
/**
|
||||
* 状态:0-删除 1-正常
|
||||
|
||||
@@ -91,4 +91,5 @@ public interface SystemValidMessage {
|
||||
String DICT_DATA_CODE_FORMAT_ERROR = "字典数据编码格式错误,只能包含字母、数字、中文、下划线、中划线、空格、点、斜线、反斜线、百分号、摄氏度符号,长度为1~30个字符";
|
||||
String DICT_PQ_OTHER_NAME_FORMAT_ERROR = "别名格式错误,只能包含字母、数字、中文、下划线、中划线、空格,长度最大为32个字符";
|
||||
String DICT_PQ_SHOW_NAME_FORMAT_ERROR = "显示名称格式错误,只能包含字母、数字、中文、下划线、中划线、空格,长度最大为32个字符";
|
||||
String SCALE_NOT_NULL = "数据精度不能为空,请检查scale参数";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user