|
@@ -24,8 +24,8 @@ public class SettlementService {
|
|
public void save(MultipartFile file,String id){
|
|
public void save(MultipartFile file,String id){
|
|
try {
|
|
try {
|
|
List<Settlement> settlementList = getSettlement(file,id);
|
|
List<Settlement> settlementList = getSettlement(file,id);
|
|
- for (int i = 0; i < settlementList.size(); i++) {
|
|
|
|
- settlementMapper.sava(settlementList.get(i));
|
|
|
|
|
|
+ for (Settlement settlement:settlementList){
|
|
|
|
+ settlementMapper.sava(settlement);
|
|
}
|
|
}
|
|
}catch (Exception c){
|
|
}catch (Exception c){
|
|
c.printStackTrace();
|
|
c.printStackTrace();
|
|
@@ -60,7 +60,7 @@ public class SettlementService {
|
|
return getTotality(builtMap,builtTotal,divisiontotal,wordtotal,otherTotal,feescount,id);
|
|
return getTotality(builtMap,builtTotal,divisiontotal,wordtotal,otherTotal,feescount,id);
|
|
}
|
|
}
|
|
/*
|
|
/*
|
|
- 获取工程竣工数据
|
|
|
|
|
|
+ 获取《工程项目竣工结算汇总表》匹配数据
|
|
*/
|
|
*/
|
|
public Map<String,Object[]> getCompletionWorks(ImportExcel importExcel){
|
|
public Map<String,Object[]> getCompletionWorks(ImportExcel importExcel){
|
|
Map<String,Object[]> map = new LinkedHashMap<String, Object[]>();
|
|
Map<String,Object[]> map = new LinkedHashMap<String, Object[]>();
|
|
@@ -157,7 +157,7 @@ public class SettlementService {
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
/*
|
|
/*
|
|
- 结算汇总
|
|
|
|
|
|
+ 结算汇总数据比对方法
|
|
*/
|
|
*/
|
|
public List<Settlement> getTotality(Map<String,Object[]> builtMap,double builtTotal,double[] divisiontotal,double wordtotal,double otherTotal,double feescount,String id){
|
|
public List<Settlement> getTotality(Map<String,Object[]> builtMap,double builtTotal,double[] divisiontotal,double wordtotal,double otherTotal,double feescount,String id){
|
|
List<Settlement> list = new ArrayList<Settlement>();
|
|
List<Settlement> list = new ArrayList<Settlement>();
|