From 9525ae797e3977a20cd0c67bb0c636aee090a4a7 Mon Sep 17 00:00:00 2001 From: kerry Date: Tue, 11 May 2021 11:59:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AD=94=E6=B3=95=E6=95=B0=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/mainframe/adaptve/config/ReuseNotifyInfo.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/designer-form/src/main/java/com/fr/design/mainframe/adaptve/config/ReuseNotifyInfo.java b/designer-form/src/main/java/com/fr/design/mainframe/adaptve/config/ReuseNotifyInfo.java index 01dc7bbb8..17aa1a631 100644 --- a/designer-form/src/main/java/com/fr/design/mainframe/adaptve/config/ReuseNotifyInfo.java +++ b/designer-form/src/main/java/com/fr/design/mainframe/adaptve/config/ReuseNotifyInfo.java @@ -4,6 +4,8 @@ package com.fr.design.mainframe.adaptve.config; * Created by kerry on 5/7/21 */ public class ReuseNotifyInfo { + private static final int CELL_STYLE_MODIFY_MAX_NUMBER = 3; + private static final int CELL_IMAGE_VALUE_MODIFY_MAX_NUMBER = 1; private int cellStyleModifiedNumber = 0; private int cellImageValueNumber = 0; @@ -17,7 +19,8 @@ public class ReuseNotifyInfo { } public boolean matchCondition() { - return cellStyleModifiedNumber >= 3 || cellImageValueNumber >= 1; + return cellStyleModifiedNumber >= CELL_STYLE_MODIFY_MAX_NUMBER + || cellImageValueNumber >= CELL_IMAGE_VALUE_MODIFY_MAX_NUMBER; } public void reset() {