Skip to content

Commit 861477c

Browse files
song-cc-rockfit2-zhao
authored andcommitted
fix: Import length check
1 parent 6896803 commit 861477c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/crm/src/main/java/cn/cordys/crm/system/excel/listener/CustomFieldCheckEventListener.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
import java.util.function.Function;
2020
import java.util.stream.Collectors;
2121

22+
/**
23+
* @author song-cc-rock
24+
*/
2225
public class CustomFieldCheckEventListener extends AnalysisEventListener<Map<Integer, String>> {
2326

2427
private final Map<String, BaseField> fieldMap;
@@ -68,7 +71,7 @@ public CustomFieldCheckEventListener(List<BaseField> fields, String source, Stri
6871
fieldLenLimit.put(field.getName(), 255);
6972
}
7073
if (Strings.CS.equals(field.getType(), FieldType.TEXTAREA.name())) {
71-
fieldLenLimit.put(field.getName(), 1000);
74+
fieldLenLimit.put(field.getName(), 3000);
7275
}
7376
});
7477
this.fieldMap = fields.stream().collect(Collectors.toMap(BaseField::getName, v -> v));

0 commit comments

Comments
 (0)