Explorar el Código

refactor(marketing): 为 Promotion 实体类的 isAllDevice 和 isAllGoods 字段添加默认值

hechunping hace 4 meses
padre
commit
3cc94b8e2d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/main/java/com/xynet/marketing/entity/Promotion.java

+ 2 - 2
src/main/java/com/xynet/marketing/entity/Promotion.java

@@ -48,9 +48,9 @@ public class Promotion {
 
     private Integer userLimitNum;
 
-    private Boolean isAllDevice;
+    private Boolean isAllDevice = true;
 
-    private Boolean isAllGoods;
+    private Boolean isAllGoods = true;
 
     private LocalDateTime createTime;