LabelbookServiceImpl.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package com.yc.education.service.impl;
  2. import com.github.pagehelper.PageHelper;
  3. import com.yc.education.mapper.LabelbookMapper;
  4. import com.yc.education.model.Labelbook;
  5. import com.yc.education.service.LabelbookService;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.stereotype.Service;
  8. import java.util.List;
  9. /**
  10. * @author caolong
  11. * @version 1.0.0
  12. * @Details
  13. * @ClassName LabelbookServiceImpl
  14. * @Description TODO
  15. * @createTime 2019-09-10 17:32:00
  16. */
  17. @Service
  18. public class LabelbookServiceImpl extends BaseService<Labelbook> implements LabelbookService {
  19. @Autowired
  20. private LabelbookMapper labelbookMapper;
  21. @Override
  22. public List<Labelbook> LABELBOOK_LIST_USERID(int userid, String starttime) {
  23. return labelbookMapper.labelBoolList(userid, starttime);
  24. }
  25. @Override
  26. public List<Labelbook> LABERL_LIST(int page, int rows) {
  27. try {
  28. PageHelper.startPage(page, rows);
  29. return labelbookMapper.labelLists();
  30. } catch (Exception e) {
  31. e.printStackTrace();
  32. }
  33. return null;
  34. }
  35. @Override
  36. public Labelbook LABELBOOK_BY_NUM(String labelnumnum) {
  37. return labelbookMapper.labelListsByNum(labelnumnum);
  38. }
  39. }