|
@@ -1320,16 +1320,16 @@ public class HouseOrderController implements HouseOrderAPI {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public CommonResult queryExport(HttpServletResponse response, int adminId, String keyWord, String houseType, String orderStatus, String payPriceStartTime, String payPriceEndTime, String refundStartTime, String refundEndTime, String cancelStartTime, String cancelEndTime, String liveStartTime, String liveEndTime, String leaveStartTime, String leaveEndTime) {
|
|
|
|
|
- PermissionSetting permissionSetting = permissionSettingService.getById(adminId);
|
|
|
|
|
- if (ObjectUtils.isEmpty(permissionSetting)) {
|
|
|
|
|
- return CommonResult.fail("非法进入");
|
|
|
|
|
- }
|
|
|
|
|
-// 判断该用户是否拥有权限
|
|
|
|
|
- String houseTypeManagement = permissionSetting.getHouseOrderManagement();
|
|
|
|
|
- if (!"0".equals(houseTypeManagement) && !houseTypeManagement.contains("9")) {
|
|
|
|
|
- return CommonResult.fail("此账号暂无该权限");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ public void queryExport(HttpServletResponse response, int adminId, String keyWord, String houseType, String orderStatus, String payPriceStartTime, String payPriceEndTime, String refundStartTime, String refundEndTime, String cancelStartTime, String cancelEndTime, String liveStartTime, String liveEndTime, String leaveStartTime, String leaveEndTime) {
|
|
|
|
|
+// PermissionSetting permissionSetting = permissionSettingService.getById(adminId);
|
|
|
|
|
+// if (ObjectUtils.isEmpty(permissionSetting)) {
|
|
|
|
|
+// return CommonResult.fail("非法进入");
|
|
|
|
|
+// }
|
|
|
|
|
+//// 判断该用户是否拥有权限
|
|
|
|
|
+// String houseTypeManagement = permissionSetting.getHouseOrderManagement();
|
|
|
|
|
+// if (!"0".equals(houseTypeManagement) && !houseTypeManagement.contains("9")) {
|
|
|
|
|
+// return CommonResult.fail("此账号暂无该权限");
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
List<QueryExportVo> vos = houseOrderService.queryExport(keyWord, houseType, orderStatus, payPriceStartTime, payPriceEndTime, refundStartTime, refundEndTime, cancelStartTime, cancelEndTime, liveStartTime, liveEndTime, leaveStartTime, leaveEndTime);
|
|
List<QueryExportVo> vos = houseOrderService.queryExport(keyWord, houseType, orderStatus, payPriceStartTime, payPriceEndTime, refundStartTime, refundEndTime, cancelStartTime, cancelEndTime, liveStartTime, liveEndTime, leaveStartTime, leaveEndTime);
|
|
|
|
|
|
|
@@ -1420,7 +1420,7 @@ public class HouseOrderController implements HouseOrderAPI {
|
|
|
// 将工作簿写入文件
|
|
// 将工作簿写入文件
|
|
|
ExcelUtils2.excelDownload(workbook, "订单表.xlsx", response);
|
|
ExcelUtils2.excelDownload(workbook, "订单表.xlsx", response);
|
|
|
|
|
|
|
|
- return CommonResult.ok();
|
|
|
|
|
|
|
+// return CommonResult.ok();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -1455,21 +1455,21 @@ public class HouseOrderController implements HouseOrderAPI {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public CommonResult reportStatisticsExport(HttpServletResponse response, String permissionSettingId, String state, String keyWord, String startTime, String endTime) {
|
|
|
|
|
- PermissionSetting permissionSetting = permissionSettingService.getById(permissionSettingId);
|
|
|
|
|
- if (ObjectUtils.isEmpty(permissionSetting)) {
|
|
|
|
|
- return CommonResult.fail("非法进入");
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-// 判断该用户是否拥有权限
|
|
|
|
|
- String reportManagement = permissionSetting.getReportManagement();
|
|
|
|
|
- if (!"0".equals(reportManagement) && !reportManagement.contains("2")) {
|
|
|
|
|
- return CommonResult.fail("此账号暂无该权限");
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (ObjectUtils.isEmpty(state)) {
|
|
|
|
|
- return CommonResult.fail("参数异常");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ public void reportStatisticsExport(HttpServletResponse response, String permissionSettingId, String state, String keyWord, String startTime, String endTime) {
|
|
|
|
|
+// PermissionSetting permissionSetting = permissionSettingService.getById(permissionSettingId);
|
|
|
|
|
+// if (ObjectUtils.isEmpty(permissionSetting)) {
|
|
|
|
|
+// return CommonResult.fail("非法进入");
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+//// 判断该用户是否拥有权限
|
|
|
|
|
+// String reportManagement = permissionSetting.getReportManagement();
|
|
|
|
|
+// if (!"0".equals(reportManagement) && !reportManagement.contains("2")) {
|
|
|
|
|
+// return CommonResult.fail("此账号暂无该权限");
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// if (ObjectUtils.isEmpty(state)) {
|
|
|
|
|
+// return CommonResult.fail("参数异常");
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
String s = "";
|
|
String s = "";
|
|
|
if ("1".equals(state)) {
|
|
if ("1".equals(state)) {
|
|
@@ -1500,7 +1500,7 @@ public class HouseOrderController implements HouseOrderAPI {
|
|
|
Row dataRow1 = sheet.createRow(i + 1);
|
|
Row dataRow1 = sheet.createRow(i + 1);
|
|
|
|
|
|
|
|
dataRow1.createCell(0).setCellValue(i + 1);
|
|
dataRow1.createCell(0).setCellValue(i + 1);
|
|
|
- dataRow1.createCell(1).setCellValue(vo.getOrderStatus());
|
|
|
|
|
|
|
+ dataRow1.createCell(1).setCellValue(vo.getOrderNumber());
|
|
|
dataRow1.createCell(2).setCellValue(vo.getLiveName());
|
|
dataRow1.createCell(2).setCellValue(vo.getLiveName());
|
|
|
// 房型是房间名称加房间类型
|
|
// 房型是房间名称加房间类型
|
|
|
String roomName = vo.getRoomName();
|
|
String roomName = vo.getRoomName();
|
|
@@ -1547,7 +1547,7 @@ public class HouseOrderController implements HouseOrderAPI {
|
|
|
// 将工作簿写入文件
|
|
// 将工作簿写入文件
|
|
|
ExcelUtils2.excelDownload(workbook, "订单报表.xlsx", response);
|
|
ExcelUtils2.excelDownload(workbook, "订单报表.xlsx", response);
|
|
|
|
|
|
|
|
- return CommonResult.ok();
|
|
|
|
|
|
|
+// return CommonResult.ok();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|