{
if(splitdf_arr[i].startsWith("Test"))
continue;
Map splitMap=new HashMap();
splitMap.put("pro_types",od.getPro_types());
splitMap.put("item_index",splitdf_arr[i]);
CalculateDetail splitcd=calculateDetailMapper.getCalcDetByProType(splitMap);
//拆分项系数赋给 增项
cdetail.add(splitcd);
}
cinfo.put(item_index,cdetial);
}
//判断特殊项 并赋系数和权重
if(od.getSpecial_item()!=null&&od.getSpecial_item()!="")
{
Map specialmap=new HashMap();
specialmap.put("item_index",od.getSpecial_item());
CalculateDetail specialcd=calculateDetailMapper.getCalcDetByProType(specialmap);
//获取特殊权重
Float spe_qtty=od.getSpecial_qtty();
if(spe_qtty==null)
spe_qtty=(float) 0.0;
//subtotal+=spe_qtty*specialcd.getRate();
//获取优惠后的系数
specialcd.setRate(ProjectHelper.getSpecialRate(specialcd.getRate(),dis_type,dis_rate));
//特殊权重
specialcd.setQtty(spe_qtty);
//放入特殊项
cdetail.add(specialcd);
}
//total+=subtotal;
}
java.text.DecimalFormat nf=new java.text.DecimalFormat("#.00");
sum.setSummone(Double.parseDouble(nf.format(sum.getSummone())));
od.getCalcSum().clear();
od.getCalcSum().add(sum);
map.clear();
//合同总概算
map.put("con_id", od.getCon_id());
map.put("pro_types", od.getPro_types());
summary_budget sb=calculateDetailMapper.getSummaryByPt(map);
ProjectHelper.getTotalHumamMoney(od,calculateDetailMapper);//设置 合同总金额
//记录计算信息
for(CalcSum csum:od.getCalcSum())
{
csum.setPt(od.getPro_types());
od.getCalcSum().set(0, csum);
calculateSumMapper.insertCalcSum(csum);
//外包类
if("out".equals(od.getCalc_name()))
{
Map typeMap=new HashMap();
typeMap.put("pro_types", od.getPro_types());
typeMap.put("wb_type", od.getCalc_name());
proTypesMapper.updateTypeStatus(typeMap);
}
}
/**
* 计算
*/
String jsonStr=JSONArray.fromObject(cdetail).toString();
//把计算细节写入表
CalculateDetail calculateDetail=new CalculateDetail();
calculateDetail.setPt(od.getPro_types());
calculateDetail.setJson_detail(jsonStr);
calculateDetail.setCalc_type(od.getCalc_type());
calculateDetailMapper.insertCalcuDetail(calculateDetail);
/**
*
//拆分
String splitdf=(String)apIt_json.get("splitdf");
String item_index=(String)apIt_json.get("item_index");
//System.out.println(splitdf);
if(splitdf!=null&&splitdf!="")
{
String []splitdf_arr=append_df.split(",");
//获取设计任务 Ap_it拆分
for(int i=0;i {
if(spplitdf_arr[i].startsWith("Test"))
continue;
CalculateDetail splitcd=calculateDetailMapper.getCalcDetByProType(splitdf_arr[i]);
//补上增项
splitcd.setFather(item_index);
//拆分项系数赋给 增项
cdetail.add(splitcd);
}
}
// System.out.println();
*
*/
return cdetail;
}
}
总结:以上是编辑:【零度失忆】整理及AI智能原创关于《江苏二级建造师增项详情信息
》优质内容解答希望能帮助到您。