|
@@ -155,10 +155,10 @@ public class RepairFeeServiceImpl extends BaseServiceImpl<RepairFeeMapper, Repai
|
|
|
@Override
|
|
|
public List<RepairReportFee> getMonthReport(RepairFeeDTO repairApplicationFormDTO, Integer searchYear, LocalDate startMonth, LocalDate endMonth) {
|
|
|
|
|
|
- List<Map<String, LocalDateTime>> monthStartAndEndList = new ArrayList<Map<String, LocalDateTime>>();
|
|
|
+ List<Map<String, LocalDateTime>> monthStartAndEndList = new ArrayList<>();
|
|
|
LocalDateTime searchStartTime = null;
|
|
|
LocalDateTime searchEndTime = null;
|
|
|
- if (searchYear != null) {
|
|
|
+ /*if (searchYear != null) {
|
|
|
LocalDate localDate = LocalDate.now();
|
|
|
int year = localDate.getYear();
|
|
|
// 如2021-10-15号码,则month=10,需要计算到11月份,需要加1
|
|
@@ -171,11 +171,11 @@ public class RepairFeeServiceImpl extends BaseServiceImpl<RepairFeeMapper, Repai
|
|
|
// 当前年份只统计到当前月,历史年份统计全年
|
|
|
searchStartTime = DateUtils.getFirstDayOfThisYear(year);
|
|
|
searchEndTime = DateUtils.getLastDayOfMonth(year, month);
|
|
|
- } else {
|
|
|
+ } else {*/
|
|
|
monthStartAndEndList = DateUtils.getMonthStartAndEndByYear(startMonth, endMonth);
|
|
|
searchStartTime = DateUtils.getFirstDayOfMonth(startMonth);
|
|
|
searchEndTime = DateUtils.getLastDayOfMonth(endMonth);
|
|
|
- }
|
|
|
+ //}
|
|
|
|
|
|
repairApplicationFormDTO.setSearchStartTime(searchStartTime);
|
|
|
repairApplicationFormDTO.setSearchEndTime(searchEndTime);
|