|
@@ -1,11 +1,14 @@
|
|
|
package com.bz.smart_city.entity.pay;
|
|
|
|
|
|
+import com.bz.smart_city.commom.util.jsonSerializer.BigDecimalJsonSerializer;
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
+import java.io.Serializable;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.math.BigInteger;
|
|
|
import java.time.LocalDateTime;
|
|
@@ -15,7 +18,10 @@ import java.time.LocalDateTime;
|
|
|
*/
|
|
|
@Data
|
|
|
@ApiModel(value = "阀控规则")
|
|
|
-public class PayControlRule {
|
|
|
+public class PayControlRule implements Serializable {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 7661014970061287332L;
|
|
|
+
|
|
|
@ApiModelProperty(example="1",notes = "主键ID,自动生成",position = 1)
|
|
|
private BigInteger id;
|
|
|
|
|
@@ -35,6 +41,7 @@ public class PayControlRule {
|
|
|
private String operatorString;
|
|
|
|
|
|
@ApiModelProperty(example="1",notes = "条件值",position = 20)
|
|
|
+ @JsonSerialize(using = BigDecimalJsonSerializer.class)
|
|
|
private BigDecimal value;
|
|
|
|
|
|
@ApiModelProperty(example="0",notes = "执行动作,0关阀 1开阀",position = 30)
|