OrderReportService.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package com.goafanti.order.service;
  2. import java.util.Set;
  3. import org.apache.poi.xssf.usermodel.XSSFWorkbook;
  4. import com.goafanti.common.model.TOrderMonthReport;
  5. import com.goafanti.core.mybatis.page.Pagination;
  6. import com.goafanti.order.bo.OrderReportBo;
  7. public interface OrderReportService {
  8. /**
  9. * 每月定时统计订单
  10. * @return
  11. */
  12. int insertOrderStatisticsByMonthTask();
  13. /**
  14. * 获得订单数据统计
  15. * @param orderReportBo
  16. * @return
  17. */
  18. Pagination<OrderReportBo> getOrderReportData(OrderReportBo orderReportBo, Integer pageNo, Integer pageSize);
  19. /**
  20. * 导出订单数据
  21. * @param orderReportBo
  22. * @return
  23. */
  24. XSSFWorkbook exportMonthData(OrderReportBo orderReportBo,String date);
  25. /**
  26. * 检查这个数据是否存在
  27. * @param bos
  28. * @param existRows
  29. */
  30. void checkOrderReport(Set<OrderReportBo> bos, Set<Integer> existRows,Set<Integer> fiterRows);
  31. /**
  32. * 保存导入的数据
  33. * @param bos
  34. * @return
  35. */
  36. int saveUploadData(Set<OrderReportBo> bos);
  37. /**
  38. * 定时更新年报表
  39. * @param d
  40. * @return
  41. */
  42. int updateYearReportData();
  43. /**
  44. * 每年定时统计去年订单
  45. * @return
  46. */
  47. int saveLastYearReportData();
  48. /**
  49. * 统计今年订单
  50. * @return
  51. */
  52. int saveYearReportData();
  53. /**
  54. * 手动修改统计数据
  55. * @param id
  56. * @return
  57. */
  58. int updateMonthDataById(TOrderMonthReport report);
  59. }