WuYeService.java 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. package com.bofeng.service;
  2. import com.bofeng.dao.QzTaskDao;
  3. import com.bofeng.entity.UserHelpAnaly;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.stereotype.Service;
  6. import org.springframework.transaction.annotation.Transactional;
  7. import java.util.List;
  8. @Service
  9. @Transactional(readOnly = true)
  10. public class WuYeService {
  11. @Autowired
  12. private QzTaskDao qzTaskDao;
  13. public UserHelpAnaly queryUserHelpAnaly(String queryDate) {
  14. UserHelpAnaly userHelpAnaly = new UserHelpAnaly();
  15. List<Long> lstAnaly = qzTaskDao.queryUserHelpAnaly(queryDate);
  16. if (lstAnaly != null && lstAnaly.size() == 6) {
  17. userHelpAnaly.setTodayAdd(lstAnaly.get(0));
  18. userHelpAnaly.setTodayDo(lstAnaly.get(1));
  19. userHelpAnaly.setTodayDonot(lstAnaly.get(2));
  20. userHelpAnaly.setMonthAdd(lstAnaly.get(3));
  21. userHelpAnaly.setMonthDo(lstAnaly.get(4));
  22. userHelpAnaly.setMonthDonot(lstAnaly.get(5));
  23. }
  24. return userHelpAnaly;
  25. }
  26. }