|
|
@ -96,10 +96,9 @@ public abstract class AbstractWriteHolder extends AbstractHolder implements Writ |
|
|
|
public AbstractWriteHolder(WriteBasicParameter writeBasicParameter, AbstractWriteHolder parentAbstractWriteHolder, |
|
|
|
public AbstractWriteHolder(WriteBasicParameter writeBasicParameter, AbstractWriteHolder parentAbstractWriteHolder, |
|
|
|
Boolean convertAllField) { |
|
|
|
Boolean convertAllField) { |
|
|
|
super(writeBasicParameter, parentAbstractWriteHolder); |
|
|
|
super(writeBasicParameter, parentAbstractWriteHolder); |
|
|
|
|
|
|
|
|
|
|
|
if (writeBasicParameter.getUse1904windowing() == null) { |
|
|
|
if (writeBasicParameter.getUse1904windowing() == null) { |
|
|
|
if (parentAbstractWriteHolder == null) { |
|
|
|
if (parentAbstractWriteHolder != null) { |
|
|
|
getGlobalConfiguration().setUse1904windowing(Boolean.FALSE); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
getGlobalConfiguration() |
|
|
|
getGlobalConfiguration() |
|
|
|
.setUse1904windowing(parentAbstractWriteHolder.getGlobalConfiguration().getUse1904windowing()); |
|
|
|
.setUse1904windowing(parentAbstractWriteHolder.getGlobalConfiguration().getUse1904windowing()); |
|
|
|
} |
|
|
|
} |
|
|
@ -210,7 +209,6 @@ public abstract class AbstractWriteHolder extends AbstractHolder implements Writ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected void initAnnotationConfig(List<WriteHandler> handlerList, WriteBasicParameter writeBasicParameter) { |
|
|
|
protected void initAnnotationConfig(List<WriteHandler> handlerList, WriteBasicParameter writeBasicParameter) { |
|
|
|
if (!HeadKindEnum.CLASS.equals(getExcelWriteHeadProperty().getHeadKind())) { |
|
|
|
if (!HeadKindEnum.CLASS.equals(getExcelWriteHeadProperty().getHeadKind())) { |
|
|
|
return; |
|
|
|
return; |
|
|
@ -310,7 +308,6 @@ public abstract class AbstractWriteHolder extends AbstractHolder implements Writ |
|
|
|
handlerList.add(columnWidthStyleStrategy); |
|
|
|
handlerList.add(columnWidthStyleStrategy); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected Map<Class<? extends WriteHandler>, List<WriteHandler>> sortAndClearUpAllHandler( |
|
|
|
protected Map<Class<? extends WriteHandler>, List<WriteHandler>> sortAndClearUpAllHandler( |
|
|
|
List<WriteHandler> handlerList, Map<Class<? extends WriteHandler>, List<WriteHandler>> parentHandlerMap) { |
|
|
|
List<WriteHandler> handlerList, Map<Class<? extends WriteHandler>, List<WriteHandler>> parentHandlerMap) { |
|
|
|
// add
|
|
|
|
// add
|
|
|
@ -330,7 +327,7 @@ public abstract class AbstractWriteHolder extends AbstractHolder implements Writ |
|
|
|
for (WriteHandler handler : handlerList) { |
|
|
|
for (WriteHandler handler : handlerList) { |
|
|
|
int order = Integer.MIN_VALUE; |
|
|
|
int order = Integer.MIN_VALUE; |
|
|
|
if (handler instanceof Order) { |
|
|
|
if (handler instanceof Order) { |
|
|
|
order = ((Order) handler).order(); |
|
|
|
order = ((Order)handler).order(); |
|
|
|
} |
|
|
|
} |
|
|
|
if (orderExcelWriteHandlerMap.containsKey(order)) { |
|
|
|
if (orderExcelWriteHandlerMap.containsKey(order)) { |
|
|
|
orderExcelWriteHandlerMap.get(order).add(handler); |
|
|
|
orderExcelWriteHandlerMap.get(order).add(handler); |
|
|
@ -346,7 +343,7 @@ public abstract class AbstractWriteHolder extends AbstractHolder implements Writ |
|
|
|
for (Map.Entry<Integer, List<WriteHandler>> entry : orderExcelWriteHandlerMap.entrySet()) { |
|
|
|
for (Map.Entry<Integer, List<WriteHandler>> entry : orderExcelWriteHandlerMap.entrySet()) { |
|
|
|
for (WriteHandler handler : entry.getValue()) { |
|
|
|
for (WriteHandler handler : entry.getValue()) { |
|
|
|
if (handler instanceof NotRepeatExecutor) { |
|
|
|
if (handler instanceof NotRepeatExecutor) { |
|
|
|
String uniqueValue = ((NotRepeatExecutor) handler).uniqueValue(); |
|
|
|
String uniqueValue = ((NotRepeatExecutor)handler).uniqueValue(); |
|
|
|
if (alreadyExistedHandlerSet.contains(uniqueValue)) { |
|
|
|
if (alreadyExistedHandlerSet.contains(uniqueValue)) { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|