Commit 221207e944dc73c74f16e56ef19945a9b3bcc000

Authored by zlz
1 parent 26ae0113

改正:时刻表上传,公里数重复计算

src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
@@ -945,8 +945,8 @@ public class TrafficManageServiceImpl implements TrafficManageService{ @@ -945,8 +945,8 @@ public class TrafficManageServiceImpl implements TrafficManageService{
945 DecimalFormat df = new DecimalFormat("######0.000"); 945 DecimalFormat df = new DecimalFormat("######0.000");
946 try { 946 try {
947 String[] idArray = ids.split(","); 947 String[] idArray = ids.split(",");
948 - StringBuffer sBufferA ,sBufferB = null,sBufferC = null;  
949 - double zlc = 0.0f,yylc = 0.0f,singleLc,emptyLc;// 总里程、营运里程、单程、空放里程 948 + StringBuffer sBufferA ,sBufferB ,sBufferC;
  949 + double zlc,yylc,singleLc,emptyLc;// 总里程、营运里程、单程、空放里程
950 String bcType,sxx;// 班次类型、上下行 950 String bcType,sxx;// 班次类型、上下行
951 // 上传的时刻表集合 951 // 上传的时刻表集合
952 List<TTInfo> ttinfoList = new ArrayList<>(); 952 List<TTInfo> ttinfoList = new ArrayList<>();
@@ -963,6 +963,8 @@ public class TrafficManageServiceImpl implements TrafficManageService{ @@ -963,6 +963,8 @@ public class TrafficManageServiceImpl implements TrafficManageService{
963 if(ttInfo == null) 963 if(ttInfo == null)
964 continue; 964 continue;
965 ttinfoList.add(ttInfo); // 保存时刻表 965 ttinfoList.add(ttInfo); // 保存时刻表
  966 + zlc = 0.0f;
  967 + yylc = 0.0f;
966 // 获得时刻表 968 // 获得时刻表
967 param = new HashMap(); 969 param = new HashMap();
968 param.put("ttinfo.id_eq", ttInfo.getId()); 970 param.put("ttinfo.id_eq", ttInfo.getId());