Commit e2c54698 by 熊付

【计数法】

1 parent 3744e87c
......@@ -139,6 +139,24 @@ public class ContractServiceImpl implements ContractService {
head_title_key.put("mainten_pay_date","mainten_pay_date");
head_title_key.put("goods_acceptanc_date", "goods_acceptanc_date");
}
private static Map<String,String> num_key = new HashMap<String,String>();
{
num_key.put("contract_amount","###############.00");
head_title_key.put("stop_amount","###############.00");
head_title_key.put("bad_amount","###############.00");
head_title_key.put("exemptions_amount","###############.00");
head_title_key.put("deduct_amount","###############.00");
head_title_key.put("total_reback_amount","###############.00");
head_title_key.put("contract_remain","###############.00");
head_title_key.put("total_receive_amount","###############.00");
head_title_key.put("total_amount_remain","###############.00");
head_title_key.put("advance_pay","###############.00");
head_title_key.put("arrive_pay","###############.00");
head_title_key.put("acceptanc_pay","###############.00");
head_title_key.put("mainten_pay","###############.00");
}
@Autowired
ContractMapper contractMapper;
@Autowired
......@@ -897,11 +915,17 @@ public class ContractServiceImpl implements ContractService {
colList.add(excelExportEntity);
Object title_name = null;
Object title_key = null;
String numkey = null;
for(String clo : cloumns) {
title_name = head_title_name.get(clo);
title_key = head_title_key.get(clo);
numkey = num_key.get(clo);
if(title_name != null) {
excelExportEntity = new ExcelExportEntity(head_title_name.get(clo), head_title_key.get(clo));
if(StringUtils.isNotBlank(numkey)) {
excelExportEntity.setNumFormat(numkey);
excelExportEntity.setType(10);
}
colList.add(excelExportEntity);
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!