|
@@ -534,8 +534,7 @@ public class FinanceReportController extends BaseController {
|
|
|
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()
|
|
|
+ new BigDecimal(map.get("price_1").toString()).doubleValue()
|
|
|
*0.4
|
|
|
: 0);
|
|
|
}else {
|
|
@@ -543,7 +542,7 @@ public class FinanceReportController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- map.put("sum_price_3", new BigDecimal(map.get("sum_price_1").toString()).doubleValue()+new BigDecimal(map.get("sum_price_2").toString()).doubleValue());
|
|
|
+ map.put("sum_price_3", new BigDecimal(map.get("price").toString()).doubleValue()+new BigDecimal(map.get("price_1").toString()).doubleValue());
|
|
|
|
|
|
}
|
|
|
|
|
@@ -566,7 +565,7 @@ public class FinanceReportController extends BaseController {
|
|
|
public void export5( HttpServletRequest request, HttpServletResponse response) {
|
|
|
ServletOutputStream os = null;
|
|
|
try {
|
|
|
- String libName="小塾币使用情况-结算(旧模式)";
|
|
|
+ String libName="塾币模式结算表";
|
|
|
os = response.getOutputStream(); //获得输出流
|
|
|
response.reset(); //清空输出流
|
|
|
String fileName = new String(libName.getBytes("gb2312"), "ISO8859-1") +".xlsx";
|
|
@@ -640,7 +639,7 @@ public class FinanceReportController extends BaseController {
|
|
|
public void export6( HttpServletRequest request, HttpServletResponse response) {
|
|
|
ServletOutputStream os = null;
|
|
|
try {
|
|
|
- String libName="小塾币使用情况-结算(新模式)";
|
|
|
+ String libName="端口模式结算表";
|
|
|
os = response.getOutputStream(); //获得输出流
|
|
|
response.reset(); //清空输出流
|
|
|
String fileName = new String(libName.getBytes("gb2312"), "ISO8859-1") +".xlsx";
|
|
@@ -733,7 +732,7 @@ public class FinanceReportController extends BaseController {
|
|
|
map.put("price_1", "0");
|
|
|
}
|
|
|
}
|
|
|
- map.put("sum_price_3", new BigDecimal(map.get("sum_price_1").toString()).doubleValue()+new BigDecimal(map.get("sum_price_2").toString()).doubleValue());
|
|
|
+ map.put("sum_price_3", new BigDecimal(map.get("price").toString()).doubleValue()+new BigDecimal(map.get("price_1").toString()).doubleValue());
|
|
|
}
|
|
|
|
|
|
List<ExcelColumn> myColumns3 = new ArrayList<ExcelColumn>();
|
|
@@ -745,17 +744,14 @@ public class FinanceReportController extends BaseController {
|
|
|
myColumns3.add(new ExcelColumn("套餐名称", "meal_type", 20));
|
|
|
myColumns3.add(new ExcelColumn("服务包名称", "sign_type", 20));
|
|
|
|
|
|
- myColumns3.add(new ExcelColumn("服务包/月金额", "price", 20));
|
|
|
myColumns3.add(new ExcelColumn("服务包/结算月份", "count_1_m", 20));
|
|
|
+ myColumns3.add(new ExcelColumn("服务包结算金额", "price", 20));
|
|
|
|
|
|
- myColumns3.add(new ExcelColumn("服务包应结算金额", "sum_price_1", 20));
|
|
|
-
|
|
|
- myColumns3.add(new ExcelColumn("加油包/月金额", "price_1", 20));
|
|
|
myColumns3.add(new ExcelColumn("加油包/结算月份", "count_2_m", 20));
|
|
|
myColumns3.add(new ExcelColumn("加油包/结算数量", "count_2", 20));
|
|
|
+ myColumns3.add(new ExcelColumn("加油包结算金额", "price_1", 20));
|
|
|
|
|
|
- myColumns3.add(new ExcelColumn("加油包应结算金额", "sum_price_2", 20));
|
|
|
- myColumns3.add(new ExcelColumn("总应结算金额", "sum_price_3", 20));
|
|
|
+ myColumns3.add(new ExcelColumn("总结算金额", "sum_price_3", 20));
|
|
|
|
|
|
CustomizeToExcel.downFile(myColumns3, list, os);
|
|
|
}catch (IOException e) {
|