com.base4j.mvc.sys.service.impl.SysLogServiceImpl Maven / Gradle / Ivy
package com.base4j.mvc.sys.service.impl;
import com.base4j.mvc.base.service.impl.BaseServiceImpl;
import com.base4j.mvc.sys.entity.SysLog;
import com.base4j.mvc.sys.mapper.SysLogMapper;
import com.base4j.mvc.sys.service.SysLogService;
import com.github.pagehelper.ISelect;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;
@Service
public class SysLogServiceImpl extends BaseServiceImpl implements SysLogService {
@Autowired
private SysLogMapper sysLogMapper;
@Override
public Page selectExtendPageByParam(int pageNo, int pageLimit, final Map params) {
Page page = PageHelper.startPage(pageNo, pageLimit).doSelectPage(new ISelect() {
@Override
public void doSelect() {
sysLogMapper.selectExtendPageByParam(params);
}
});
return page;
}
}