package com.thhy.usercore.modules.sys.syslog.service.impl; import com.thhy.usercore.modules.sys.syslog.entity.LogDto; import com.thhy.usercore.modules.sys.syslog.entity.LogVo; import com.thhy.usercore.modules.sys.syslog.entity.SysLogs; import com.thhy.usercore.modules.sys.syslog.mapper.SysLogsMapper; import com.thhy.usercore.modules.sys.syslog.service.ISysLogsService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.io.Serializable; import java.util.List; /** *

* 服务实现类 *

* * @author zhang_xiao_bo * @since 2022-04-01 */ @Service public class SysLogsServiceImpl implements ISysLogsService { @Autowired private SysLogsMapper sysLogsMapper; public SysLogs get(Serializable id){ return sysLogsMapper.queryById(id); } public List findList(LogDto logDto){ return sysLogsMapper.findList(logDto); } /*public int insert(SysLogs sysLogs){ return sysLogsMapper.insert(sysLogs); }*/ public int update(SysLogs sysLogs){ return sysLogsMapper.update(sysLogs); } /** * 逻辑删除 * @param id */ public int deletelogic(Serializable id){ return sysLogsMapper.deletelogic(id); } /** * 物理删除 * @param id */ public int delete(Serializable id){ return sysLogsMapper.deleteById(id); } }