|
|
@@ -60,10 +60,10 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
res.setData(fundManageOrderServiceImpl.updateProofreading(orderNew));
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 营销员奖金统计
|
|
|
- * @param orderNewBo
|
|
|
+ * @param bonusBo
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value="/saleBonusStatistics", method = RequestMethod.GET)
|
|
|
@@ -72,7 +72,7 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
res.setData(orderBonusServiceImpl.saleBonusStatistics(bonusBo, pageNo, pageSize));
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 财务专员发放营销员奖金
|
|
|
* @param id
|
|
|
@@ -89,7 +89,7 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 财务专员查看技术员奖金数据
|
|
|
* @param bonusBo
|
|
|
@@ -103,7 +103,7 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
res.setData(orderBonusServiceImpl.technicianBonusStatistics(bonusBo, pageNo, pageSize));
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 财务专员发放技术员的奖金操作
|
|
|
* @param id
|
|
|
@@ -115,8 +115,8 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
res.setData(orderBonusServiceImpl.updateChangeBonus(id));
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 财务专员导出营销员奖金数据
|
|
|
* @param bonusBo
|
|
|
@@ -138,20 +138,20 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
cell.setCellValue("没有营销员奖金记录");
|
|
|
}
|
|
|
String fileName = "营销员奖金统计" + new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date()) + ".xls";
|
|
|
- response.addHeader("Content-Disposition", "attachment;filename=" + new String(fileName.getBytes(),"iso-8859-1"));
|
|
|
- response.setContentType("application/octet-stream;charset=utf-8");
|
|
|
+ response.addHeader("Content-Disposition", "attachment;filename=" + new String(fileName.getBytes(),"iso-8859-1"));
|
|
|
+ response.setContentType("application/octet-stream;charset=utf-8");
|
|
|
try {
|
|
|
// 返回数据流
|
|
|
- wb.write(out);
|
|
|
+ wb.write(out);
|
|
|
out.flush();
|
|
|
out.close();
|
|
|
} finally {
|
|
|
- out.flush();
|
|
|
- out.close();
|
|
|
+ out.flush();
|
|
|
+ out.close();
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 导出技术员(咨询师)的奖金数据
|
|
|
* @param bonusBo
|
|
|
@@ -173,20 +173,20 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
cell.setCellValue("没有技术员奖金记录");
|
|
|
}
|
|
|
String fileName = "技术员奖金统计" + new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date()) + ".xls";
|
|
|
- response.addHeader("Content-Disposition", "attachment;filename=" + new String(fileName.getBytes(),"iso-8859-1"));
|
|
|
- response.setContentType("application/octet-stream;charset=utf-8");
|
|
|
+ response.addHeader("Content-Disposition", "attachment;filename=" + new String(fileName.getBytes(),"iso-8859-1"));
|
|
|
+ response.setContentType("application/octet-stream;charset=utf-8");
|
|
|
try {
|
|
|
// 返回数据流
|
|
|
- wb.write(out);
|
|
|
+ wb.write(out);
|
|
|
out.flush();
|
|
|
out.close();
|
|
|
} finally {
|
|
|
- out.flush();
|
|
|
- out.close();
|
|
|
+ out.flush();
|
|
|
+ out.close();
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 订单报表统计数据
|
|
|
* @param reportBo
|
|
|
@@ -205,7 +205,7 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
res.setData(orderReportServiceImpl.getOrderReportData(reportBo, pageNo, pageSize));
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 导出订单数据
|
|
|
* @param orderReportBo
|
|
|
@@ -221,7 +221,7 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
res.getError().add(buildError("", "没有指定订单日期"));
|
|
|
return res;
|
|
|
}
|
|
|
- String date = orderReportBo.getMonth() == orderReportBo.getMonth1() ? orderReportBo.getMonth().toString() : orderReportBo.getMonth() + "-" + orderReportBo.getMonth1();
|
|
|
+ String date = orderReportBo.getMonth() == orderReportBo.getMonth1() ? orderReportBo.getMonth().toString() : orderReportBo.getMonth() + "-" + orderReportBo.getMonth1();
|
|
|
OutputStream out = response.getOutputStream();
|
|
|
XSSFWorkbook wb = orderReportServiceImpl.exportMonthData(orderReportBo, date);
|
|
|
if(null == wb){
|
|
|
@@ -232,16 +232,16 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
cell.setCellValue("没有订单统计记录");
|
|
|
}
|
|
|
String fileName = "订单统计" + date + ".xls";
|
|
|
- response.addHeader("Content-Disposition", "attachment;filename=" + new String(fileName.getBytes(),"iso-8859-1"));
|
|
|
- response.setContentType("application/octet-stream;charset=utf-8");
|
|
|
+ response.addHeader("Content-Disposition", "attachment;filename=" + new String(fileName.getBytes(),"iso-8859-1"));
|
|
|
+ response.setContentType("application/octet-stream;charset=utf-8");
|
|
|
try {
|
|
|
// 返回数据流
|
|
|
- wb.write(out);
|
|
|
+ wb.write(out);
|
|
|
out.flush();
|
|
|
out.close();
|
|
|
} finally {
|
|
|
- out.flush();
|
|
|
- out.close();
|
|
|
+ out.flush();
|
|
|
+ out.close();
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
|
@@ -281,10 +281,10 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
res.setData(orderReportServiceImpl.saveUploadData(boSet));
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
- }
|
|
|
+ }
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 下载年度订单数据模板
|
|
|
* @param response
|
|
|
@@ -297,20 +297,20 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
OutputStream out = response.getOutputStream();
|
|
|
XSSFWorkbook wb = ExportExcelUtil.downOrderModelExcel();
|
|
|
String fileName = "导入年度销售数据模板.xls";
|
|
|
- response.addHeader("Content-Disposition", "attachment;filename=" + new String(fileName.getBytes(),"iso-8859-1"));
|
|
|
- response.setContentType("application/octet-stream;charset=utf-8");
|
|
|
+ response.addHeader("Content-Disposition", "attachment;filename=" + new String(fileName.getBytes(),"iso-8859-1"));
|
|
|
+ response.setContentType("application/octet-stream;charset=utf-8");
|
|
|
try {
|
|
|
// 返回数据流
|
|
|
- wb.write(out);
|
|
|
+ wb.write(out);
|
|
|
out.flush();
|
|
|
out.close();
|
|
|
} finally {
|
|
|
- out.flush();
|
|
|
- out.close();
|
|
|
+ out.flush();
|
|
|
+ out.close();
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 手动更新校对单量
|
|
|
* @param report
|
|
|
@@ -322,7 +322,7 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
res.setData(orderReportServiceImpl.updateMonthDataById(report));
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 营销管理员查看所有营销员奖金
|
|
|
* @param bonusBo
|
|
|
@@ -336,7 +336,7 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
res.setData(orderBonusServiceImpl.saleBonusStatistics(bonusBo, pageNo, pageSize));
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 营销管理员导出所有营销员奖金
|
|
|
* @param bonusBo
|
|
|
@@ -357,16 +357,16 @@ public class OrderBonusStatisticsApiController extends CertifyApiController {
|
|
|
cell.setCellValue("没有营销员奖金记录");
|
|
|
}
|
|
|
String fileName = "营销员奖金统计" + new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date()) + ".xls";
|
|
|
- response.addHeader("Content-Disposition", "attachment;filename=" + new String(fileName.getBytes(),"iso-8859-1"));
|
|
|
- response.setContentType("application/octet-stream;charset=utf-8");
|
|
|
+ response.addHeader("Content-Disposition", "attachment;filename=" + new String(fileName.getBytes(),"iso-8859-1"));
|
|
|
+ response.setContentType("application/octet-stream;charset=utf-8");
|
|
|
try {
|
|
|
// 返回数据流
|
|
|
- wb.write(out);
|
|
|
+ wb.write(out);
|
|
|
out.flush();
|
|
|
out.close();
|
|
|
} finally {
|
|
|
- out.flush();
|
|
|
- out.close();
|
|
|
+ out.flush();
|
|
|
+ out.close();
|
|
|
}
|
|
|
return res;
|
|
|
}
|