|
@ -18,6 +18,7 @@ import com.qs.serve.modules.tbs.mapper.TbsScheduleItemBudgetMapper; |
|
|
import java.time.LocalDate; |
|
|
import java.time.LocalDate; |
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
import java.util.Arrays; |
|
|
import java.util.Arrays; |
|
|
|
|
|
import java.util.Comparator; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
import java.util.stream.Collectors; |
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
@ -250,6 +251,7 @@ public class TbsScheduleItemBudgetServiceImpl extends ServiceImpl<TbsScheduleIte |
|
|
withAmount.setCenterId(budget.getCenterId()); |
|
|
withAmount.setCenterId(budget.getCenterId()); |
|
|
withAmount.setCenterName(budget.getCenterName()); |
|
|
withAmount.setCenterName(budget.getCenterName()); |
|
|
withAmount.setCenterType(budget.getCenterType()); |
|
|
withAmount.setCenterType(budget.getCenterType()); |
|
|
|
|
|
withAmount.setScheduleName(budget.getScheduleName()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -302,6 +304,12 @@ public class TbsScheduleItemBudgetServiceImpl extends ServiceImpl<TbsScheduleIte |
|
|
result.add(withAmount); |
|
|
result.add(withAmount); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
result.sort( |
|
|
|
|
|
Comparator.comparing(TbsBudgetWithAmount::getCenterName) |
|
|
|
|
|
.thenComparing(TbsBudgetWithAmount::getScheduleName) |
|
|
|
|
|
.thenComparing(TbsBudgetWithAmount::getBudgetName) |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|