|
@@ -433,14 +433,47 @@ public class FinanceReportController extends BaseController {
|
|
|
Page<Map<String,Object>> page = financeService.balanceConsumeDetailList_New(params, initPage(pageNo, pageSize));
|
|
|
List<Map<String,Object>> list=page.getContent();
|
|
|
for (Map<String, Object> map : list) {
|
|
|
+ map.put("price_1", "700");
|
|
|
+ map.put("sum_price_1", "0");
|
|
|
+ map.put("sum_price_2", "0");
|
|
|
+ map.put("sum_price_3", "0");
|
|
|
+
|
|
|
if(map.containsKey("type")) {
|
|
|
if(map.get("type")==null || Integer.parseInt(map.get("type").toString())!=5){
|
|
|
map.put("external_unit_name", map.get("unit_name"));
|
|
|
map.put("unit_name", "");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ map.put("count_1_m", "");
|
|
|
+ map.put("count_2_m", "");
|
|
|
+
|
|
|
+ if(map.containsKey("count_1")) {
|
|
|
+ if(Integer.parseInt(map.get("count_1").toString())>0) {
|
|
|
+ map.put("count_1_m", map.get("balance_month") );
|
|
|
+ map.put("sum_price_1", map.get("price")!=null && StringUtils.isNotEmpty(map.get("price").toString()) ?
|
|
|
+ new BigDecimal(map.get("price").toString()).doubleValue()*
|
|
|
+ 0.4
|
|
|
+ : 0);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(map.containsKey("count_2")) {
|
|
|
+ if(Integer.parseInt(map.get("count_2").toString())>0) {
|
|
|
+ map.put("count_2_m", map.get("balance_month") );
|
|
|
+ map.put("sum_price_2", map.get("price_1")!=null && StringUtils.isNotEmpty(map.get("price_1").toString()) ?
|
|
|
+ new BigDecimal(map.get("price_1").toString()).doubleValue()*
|
|
|
+ new BigDecimal(map.get("count_2").toString()).intValue()
|
|
|
+ *0.4
|
|
|
+ : 0);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ map.put("sum_price_3", new BigDecimal(map.get("sum_price_1").toString()).doubleValue()+new BigDecimal(map.get("sum_price_2").toString()).doubleValue());
|
|
|
+
|
|
|
}
|
|
|
|
|
|
+
|
|
|
sp.setRowCnt((int) page.getTotalElements());
|
|
|
model.addAttribute("list",list);
|
|
|
model.addAttribute("listNavigatHtml", sp.getSysPaginHtml());
|
|
@@ -619,9 +652,7 @@ public class FinanceReportController extends BaseController {
|
|
|
myColumns3.add(new ExcelColumn("月份", "balance_month", 20));
|
|
|
myColumns3.add(new ExcelColumn("商户账号", "pos_code", 20));
|
|
|
myColumns3.add(new ExcelColumn("商户编码", "org_code", 20));
|
|
|
- myColumns3.add(new ExcelColumn("商户级别", "level_name", 20));
|
|
|
myColumns3.add(new ExcelColumn("签约商户", "unit_name", 20));
|
|
|
- myColumns3.add(new ExcelColumn("非签约商户", "external_unit_name", 20));
|
|
|
|
|
|
myColumns3.add(new ExcelColumn("套餐名称", "meal_type", 20));
|
|
|
myColumns3.add(new ExcelColumn("服务包名称", "sign_type", 20));
|