|
@@ -527,8 +527,11 @@ public class ExcelUtil {
|
|
|
order.setOrderAddressTel(userTel.trim());
|
|
|
|
|
|
order.setOrderProductBarCode(OrderProductBarCodeValue);
|
|
|
- String orderNum = getValue(temp.getCell(numColumnIndex));
|
|
|
+ String orderNum = getValue(temp.getCell(numColumnIndex)).trim();
|
|
|
String orderRemark = getValue(temp.getCell(remarkColumnIndex));
|
|
|
+ if(orderNum != null && !"".equals(orderNum)){
|
|
|
+ orderNum = orderNum.replaceAll("\\r|\\r|\\n","");
|
|
|
+ }
|
|
|
if(orderNum == null || "".equals(orderNum) || Integer.valueOf(orderNum) == 0){
|
|
|
order.setReturnStatus("error");
|
|
|
order.setReturnMsg("数量不正确");
|