Procházet zdrojové kódy

update 优化 实体类统一使用包装类型

疯狂的狮子Li před 1 rokem
rodič
revize
52295bdc20

+ 1 - 1
ruoyi-api/ruoyi-api-workflow/src/main/java/org/dromara/workflow/api/event/ProcessEvent.java

@@ -63,7 +63,7 @@ public class ProcessEvent extends RemoteApplicationEvent {
     /**
      * 当为true时为申请人节点办理
      */
-    private boolean submit;
+    private Boolean submit;
 
     public ProcessEvent() {
         super(new Object(), SpringUtils.getApplicationName(), DEFAULT_DESTINATION_FACTORY.getDestination(null));

+ 3 - 3
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/domain/vo/MetaVo.java

@@ -31,7 +31,7 @@ public class MetaVo implements Serializable {
     /**
      * 设置为true,则不会被 <keep-alive>缓存
      */
-    private boolean noCache;
+    private Boolean noCache;
 
     /**
      * 内链地址(http(s)://开头)
@@ -43,7 +43,7 @@ public class MetaVo implements Serializable {
         this.icon = icon;
     }
 
-    public MetaVo(String title, String icon, boolean noCache) {
+    public MetaVo(String title, String icon, Boolean noCache) {
         this.title = title;
         this.icon = icon;
         this.noCache = noCache;
@@ -55,7 +55,7 @@ public class MetaVo implements Serializable {
         this.link = link;
     }
 
-    public MetaVo(String title, String icon, boolean noCache, String link) {
+    public MetaVo(String title, String icon, Boolean noCache, String link) {
         this.title = title;
         this.icon = icon;
         this.noCache = noCache;

+ 1 - 1
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/domain/vo/RouterVo.java

@@ -32,7 +32,7 @@ public class RouterVo implements Serializable {
     /**
      * 是否隐藏路由,当设置 true 的时候该路由不会再侧边栏出现
      */
-    private boolean hidden;
+    private Boolean hidden;
 
     /**
      * 重定向地址,当设置 noRedirect 的时候该路由在面包屑导航中不可被点击

+ 2 - 2
ruoyi-modules/ruoyi-workflow/src/main/java/org/dromara/workflow/domain/vo/ButtonPermissionVo.java

@@ -30,12 +30,12 @@ public class ButtonPermissionVo implements Serializable {
     /**
      * 是否显示
      */
-    private boolean show;
+    private Boolean show;
 
     public ButtonPermissionVo() {
     }
 
-    public ButtonPermissionVo(String code, boolean show) {
+    public ButtonPermissionVo(String code, Boolean show) {
         this.code = code;
         this.show = show;
     }

+ 1 - 1
ruoyi-modules/ruoyi-workflow/src/main/java/org/dromara/workflow/domain/vo/FlowTaskVo.java

@@ -177,7 +177,7 @@ public class FlowTaskVo implements Serializable {
     /**
      * 是否为申请人节点
      */
-    private boolean applyNode;
+    private Boolean applyNode;
 
     /**
      * 按钮权限

+ 1 - 1
ruoyi-modules/ruoyi-workflow/src/main/java/org/dromara/workflow/service/impl/TestLeaveServiceImpl.java

@@ -159,7 +159,7 @@ public class TestLeaveServiceImpl implements ITestLeaveService {
                 // 办理意见
                 String message = Convert.toStr(params.get("message"));
             }
-            if (processEvent.isSubmit()) {
+            if (processEvent.getSubmit()) {
                 testLeave.setStatus(BusinessStatusEnum.WAITING.getStatus());
             }
             baseMapper.updateById(testLeave);