package com.moon.server.service.sys; import com.moon.server.entity.sys.ResOpEntity; import com.moon.server.helper.StringHelper; import com.moon.server.mapper.sys.ResOpMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.sql.Timestamp; import java.util.List; /** * 资源操作表 * @author sws * @date 2022-09-28 */ @Service public class ResOpService implements ResOpMapper { @Autowired ResOpMapper resOpMapper; @Override public Integer selectCount(String name, Integer type, Timestamp start, Timestamp end) { name = StringHelper.getLikeUpperStr(name); return resOpMapper.selectCount(name, type, start, end); } @Override public List selectByPage(String name, Integer type, Timestamp start, Timestamp end, Integer limit, Integer offset) { name = StringHelper.getLikeUpperStr(name); return resOpMapper.selectByPage(name, type, start, end, limit, offset); } @Override public Integer insertResOp(ResOpEntity resOpEntity) { return resOpMapper.insertResOp(resOpEntity); } @Override public Integer insertResOps(List resOpEntity) { return resOpMapper.insertResOps(resOpEntity); } @Override public Integer deleteResOp(int id) { return resOpMapper.deleteResOp(id); } @Override public Integer deleteResOps(List ids) { return resOpMapper.deleteResOps(ids); } @Override public Integer updateResOp(ResOpEntity resOpEntity) { return resOpMapper.updateResOp(resOpEntity); } @Override public ResOpEntity selectResOp(int id) { return resOpMapper.selectResOp(id); } @Override public List selectResOpAll() { return resOpMapper.selectResOpAll(); } }