|
@@ -91,8 +91,7 @@ public class DeviceChargingHistoryServiceImpl extends ServiceImpl<DeviceCharging
|
|
|
//查询数据
|
|
|
List<String> attrNames = Arrays.asList(
|
|
|
LambdaUtils.getUnderlineCaseName(DeviceChargingHistory::getMercId),
|
|
|
- "DATE_FORMAT(" + LambdaUtils.getUnderlineCaseName(DeviceChargingHistory::getCreateTime) + ", '%Y-%m')",
|
|
|
- LambdaUtils.getUnderlineCaseName(DeviceChargingHistory::getMercId)
|
|
|
+ "DATE_FORMAT(" + LambdaUtils.getUnderlineCaseName(DeviceChargingHistory::getCreateTime) + ", '%Y-%m')"
|
|
|
);
|
|
|
List<String> selectNames = Arrays.asList(
|
|
|
attrNames.get(0),
|
|
@@ -140,7 +139,7 @@ public class DeviceChargingHistoryServiceImpl extends ServiceImpl<DeviceCharging
|
|
|
return null;
|
|
|
}
|
|
|
return Beans.copy(MoonCountData.class, data);
|
|
|
- });
|
|
|
+ }).builder();
|
|
|
//下载文件
|
|
|
InputStream inputStream = IoUtils.inputStream(path).get();
|
|
|
response.setHeader("Content-Disposition", "attachment; filename=" + "设备管理费月统计数据.xlsx");
|