package com.yc.education.service.impl; import com.github.pagehelper.PageHelper; import com.yc.education.mapper.LabelbookMapper; import com.yc.education.model.Labelbook; import com.yc.education.service.LabelbookService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * @author caolong * @version 1.0.0 * @Details * @ClassName LabelbookServiceImpl * @Description TODO * @createTime 2019-09-10 17:32:00 */ @Service public class LabelbookServiceImpl extends BaseService implements LabelbookService { @Autowired private LabelbookMapper labelbookMapper; @Override public List LABELBOOK_LIST_USERID(int userid, String starttime) { return labelbookMapper.labelBoolList(userid, starttime); } @Override public List LABERL_LIST(int page, int rows) { try { PageHelper.startPage(page, rows); return labelbookMapper.labelLists(); } catch (Exception e) { e.printStackTrace(); } return null; } @Override public Labelbook LABELBOOK_BY_NUM(String labelnumnum) { return labelbookMapper.labelListsByNum(labelnumnum); } }