package com.yssh.service; import java.util.List; import com.yssh.entity.AlertConfig; import org.springframework.stereotype.Service; import com.yssh.mapper.AlertConfigMapper; import javax.annotation.Resource; @Service public class AlertConfigService { @Resource private AlertConfigMapper alertConfigMapper; public List getAll() { return alertConfigMapper.getAll(); } public List query(Integer id) { return alertConfigMapper.query(id); } public int update(AlertConfig config) { return alertConfigMapper.update(config); } public int insert(AlertConfig config) { return alertConfigMapper.insert(config); } public int delete(Integer id) { return alertConfigMapper.delete(id); } }