ソースを参照

Merge remote-tracking branch 'jueyue/master'

4.1.3.A
dpxiaofei 9年前
コミット
43a9acd955
2個のファイルの変更40行の追加4行の削除
  1. +4
    -2
      easypoi-base/src/main/java/org/jeecgframework/poi/util/PoiMergeCellUtil.java
  2. +36
    -2
      pom.xml

+ 4
- 2
easypoi-base/src/main/java/org/jeecgframework/poi/util/PoiMergeCellUtil.java ファイルの表示

@@ -166,8 +166,7 @@ public final class PoiMergeCellUtil {
// 存在依赖关系
if (mergeEntity.getText().equals(text)) {
for (int i = 0; i < delys.length; i++) {
if (!getCellNotNullText(cell, delys[i], rowNum).equals(
mergeEntity.getRelyList().get(i))) {
if (mergeEntity.getRelyList().get(i) ==null || !mergeEntity.getRelyList().get(i).equals(getCellNotNullText(cell, delys[i], rowNum))) {
return false;
}
}
@@ -185,6 +184,9 @@ public final class PoiMergeCellUtil {
* @return
*/
private static String getCellNotNullText(Cell cell, int index, int rowNum) {
if(cell == null || cell.getRow() == null){
return null;
}
if(cell.getRow().getCell(index) != null && StringUtils.isNotEmpty(cell.getRow().getCell(index).getStringCellValue())){
return cell.getRow().getCell(index).getStringCellValue();
}


+ 36
- 2
pom.xml ファイルの表示

@@ -137,7 +137,7 @@
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!-- PDF -->
<dependency>
<groupId>com.itextpdf</groupId>
@@ -150,7 +150,6 @@
<groupId>com.itextpdf</groupId>
<artifactId>itext-asian</artifactId>
<version>5.2.0</version>
<optional>true</optional>
</dependency>
<dependency>
@@ -176,6 +175,27 @@
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.5</version>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
@@ -186,6 +206,20 @@
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>


読み込み中…
キャンセル
保存