|
@@ -454,8 +454,7 @@ public class ExcelUtil {
|
|
//String userTel = getValue(temp.getCell(telColumnIndex)).trim(); // 读取tel
|
|
//String userTel = getValue(temp.getCell(telColumnIndex)).trim(); // 读取tel
|
|
Cell telCell = temp.getCell(telColumnIndex);
|
|
Cell telCell = temp.getCell(telColumnIndex);
|
|
String userTel = String.valueOf(getExcelCell(telCell));
|
|
String userTel = String.valueOf(getExcelCell(telCell));
|
|
- String OrderProductBarCodeValue = map.get(getValue(temp.getCell(productColumnIndex))); // 读取对应的产品id
|
|
|
|
-
|
|
|
|
|
|
+ String OrderProductBarCodeValue = map.get(getValue(temp.getCell(productColumnIndex)).trim()); // 读取对应的产品id
|
|
if(StringUtils.isEmpty(nameValue) && StringUtils.isEmpty(userTel) && StringUtils.isEmpty(OrderProductBarCodeValue)){
|
|
if(StringUtils.isEmpty(nameValue) && StringUtils.isEmpty(userTel) && StringUtils.isEmpty(OrderProductBarCodeValue)){
|
|
errorNum ++;
|
|
errorNum ++;
|
|
if(errorNum > 3){
|
|
if(errorNum > 3){
|
|
@@ -780,7 +779,7 @@ public class ExcelUtil {
|
|
}
|
|
}
|
|
|
|
|
|
public static void main(String[] args) throws IOException {
|
|
public static void main(String[] args) throws IOException {
|
|
- String[] add = splitAddress("北京 西城区 兴盛街2号华荣公寓A401");
|
|
|
|
|
|
+ String[] add = splitAddress("福建省南平市延平区新建路锦绣家园128号3棟1102室");
|
|
if (add == null) {
|
|
if (add == null) {
|
|
System.out.println("切割失败...");
|
|
System.out.println("切割失败...");
|
|
}
|
|
}
|