|
@@ -50,6 +50,9 @@ public class TmstrainLoadingResultServiceImpl implements ITmstrainLoadingResultS
|
|
|
@Autowired
|
|
|
private TmstrainTotalResultMapper tmstrainTotalResultMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TmstrainMeasureCommissionServiceImpl tmstrainMeasureCommissionService;
|
|
|
+
|
|
|
/**
|
|
|
* 查看所有装车实绩
|
|
|
* @param map
|
|
@@ -142,6 +145,7 @@ public class TmstrainLoadingResultServiceImpl implements ITmstrainLoadingResultS
|
|
|
List<TmstrainLoadingTemp> loadingTemps=new ArrayList<>();
|
|
|
//装车实绩list
|
|
|
List<TmstrainLoadingResult> loadingResults=new ArrayList<>();
|
|
|
+ int i = 0;
|
|
|
for(Map<String,Object> map:list){
|
|
|
TmstrainLoadingTemp temp=new TmstrainLoadingTemp();
|
|
|
TmstrainLoadingResult result=new TmstrainLoadingResult();
|
|
@@ -192,6 +196,7 @@ public class TmstrainLoadingResultServiceImpl implements ITmstrainLoadingResultS
|
|
|
}
|
|
|
loadingTemps.add(temp);
|
|
|
loadingResults.add(result);
|
|
|
+ i += addTotalResult(maxId);
|
|
|
}
|
|
|
//批量插入
|
|
|
tmstrainLoadingTempMapper.batchInsert(loadingTemps);
|
|
@@ -228,8 +233,15 @@ public class TmstrainLoadingResultServiceImpl implements ITmstrainLoadingResultS
|
|
|
count += tmstrainLoadingResultMapper.updateByPrimaryKeySelective(tmstrainLoadingResult);
|
|
|
}
|
|
|
//全部补录成功,发送计量委托
|
|
|
- if(resultIdList.size()-count==0)
|
|
|
+ if(resultIdList.size()-count==0){
|
|
|
System.out.println("发送计量委托");
|
|
|
+ Map<String, Object> map1 = new HashMap<>();
|
|
|
+ map1.put("resultIdList",resultIdList);
|
|
|
+ int i = tmstrainMeasureCommissionService.batchSendMeasureCommission(map1);
|
|
|
+ if(i==-1){
|
|
|
+ return i;
|
|
|
+ }
|
|
|
+ }
|
|
|
return count;
|
|
|
}
|
|
|
|