소스 검색

站点金额为0不导入

xiao547607 4 년 전
부모
커밋
304a9f2d35
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      web/src/main/java/com/jpsoft/bus/modules/bus/controller/PriceInfoController.java

+ 4 - 0
web/src/main/java/com/jpsoft/bus/modules/bus/controller/PriceInfoController.java

@@ -377,6 +377,10 @@ public class PriceInfoController {
                         PriceInfo pi = priceInfoService.findByStartStationAndEndStation(startInfo.getId(),endInfo.getId());
 
                         String price = (String)poiUtils.getCellValue(sheetIndex,rowIndex,startIndex).toString().replace(" ","");
+                        if("0".equals(price)){
+                            //金额为0不保存
+                            continue;
+                        }
 
                         if(pi == null){
                             pi = new PriceInfo();