StatisticsPageController.swift 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // StatisticsPageController.swift
  3. // JiaPeiManage
  4. //
  5. // Created by Ning.ge on 2023/6/26.
  6. //
  7. import UIKit
  8. import RxSwift
  9. import RxCocoa
  10. final class StatisticsPageController: BaseViewController {
  11. // MARK: 服务属性
  12. private let statisticsService: StatisticsServiceType = StatisticsService(networking: StatisticsNetworking())
  13. override func viewDidLoad() {
  14. super.viewDidLoad()
  15. self.statisticsService.everyDayStuCountRequest(city: LocalManager.userInfo.city!, schoolId: LocalManager.userInfo.schoolId, startDate: "2023-06-25", endDate: "2023-06-26").subscribe(onSuccess: { stuCountDataModel in
  16. // self.rows.removeAll()
  17. // self.traineeDataModel = traineeDataModel
  18. // self.rows += traineeDataModel.rows!
  19. print("everyDayStuCountRequest成功 %@",stuCountDataModel)
  20. // self.hideLoadAnimation()
  21. // self.tableView.reloadData()
  22. // self.stopRefresh()
  23. }, onError: { error in
  24. // self.stopRefresh()
  25. })
  26. .disposed(by: disposeBag)
  27. }
  28. }