Commit eadf40abda06cfed25f2a4c30e7cbc660dd1421e

Authored by zlz
1 parent 9ae68afc

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

src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
... ... @@ -945,8 +945,8 @@ public class TrafficManageServiceImpl implements TrafficManageService{
945 945 DecimalFormat df = new DecimalFormat("######0.000");
946 946 try {
947 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 950 String bcType,sxx;// 班次类型、上下行
951 951 // 上传的时刻表集合
952 952 List<TTInfo> ttinfoList = new ArrayList<>();
... ... @@ -963,6 +963,8 @@ public class TrafficManageServiceImpl implements TrafficManageService{
963 963 if(ttInfo == null)
964 964 continue;
965 965 ttinfoList.add(ttInfo); // 保存时刻表
  966 + zlc = 0.0f;
  967 + yylc = 0.0f;
966 968 // 获得时刻表
967 969 param = new HashMap();
968 970 param.put("ttinfo.id_eq", ttInfo.getId());
... ...