fix
parent
14297b68f0
commit
e09fea0d76
|
@ -63,7 +63,7 @@ public class ExcelUtils {
|
||||||
// }
|
// }
|
||||||
if (row != null) {
|
if (row != null) {
|
||||||
StringBuilder info = new StringBuilder();
|
StringBuilder info = new StringBuilder();
|
||||||
int colnum = row.getLastCellNum();
|
int colnum = row2.getLastCellNum();
|
||||||
for (int j = 1; j < colnum; j++) {
|
for (int j = 1; j < colnum; j++) {
|
||||||
int cellFormatValue = (int) getCellFormatValue(row1.getCell(j));
|
int cellFormatValue = (int) getCellFormatValue(row1.getCell(j));
|
||||||
if (cellFormatValue == 3){
|
if (cellFormatValue == 3){
|
||||||
|
@ -87,18 +87,22 @@ public class ExcelUtils {
|
||||||
info.append("\t").append(cellData);
|
info.append("\t").append(cellData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}else{
|
||||||
if (getCellFormatValue(row1.getCell(j)).toString().isEmpty()){
|
if (getCellFormatValue(row1.getCell(j)).toString().isEmpty()){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
//文件名
|
//文件名
|
||||||
cellData = getCellFormatValue(cell);
|
cellData = getCellFormatValue(cell);
|
||||||
|
if ("".equals(cellData.toString())){
|
||||||
|
cellData = getIn(row2.getCell(j).toString());
|
||||||
|
}
|
||||||
if (info.length() == 0){
|
if (info.length() == 0){
|
||||||
info = info.append(cellData);
|
info = info.append(cellData);
|
||||||
}else{
|
}else{
|
||||||
info.append("\t").append(cellData);
|
info.append("\t").append(cellData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
out.write(info.toString());
|
out.write(info.toString());
|
||||||
out.write("\r\n");
|
out.write("\r\n");
|
||||||
}
|
}
|
||||||
|
@ -114,6 +118,7 @@ public class ExcelUtils {
|
||||||
str = "false";
|
str = "false";
|
||||||
break;
|
break;
|
||||||
case "int":
|
case "int":
|
||||||
|
case "float":
|
||||||
str = "0";
|
str = "0";
|
||||||
break;
|
break;
|
||||||
case "string":
|
case "string":
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
package network.client;
|
package network.client;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.google.protobuf.GeneratedMessage;
|
|
||||||
import com.google.protobuf.GeneratedMessageLite;
|
|
||||||
import com.google.protobuf.MessageLite;
|
import com.google.protobuf.MessageLite;
|
||||||
import com.ljsd.jieling.netty.cocdex.PacketNetData;
|
import com.ljsd.jieling.netty.cocdex.PacketNetData;
|
||||||
import com.ljsd.jieling.netty.cocdex.Tea;
|
import com.ljsd.jieling.netty.cocdex.Tea;
|
||||||
|
|
Loading…
Reference in New Issue