package com.yssh.service.impl;
|
|
import java.util.List;
|
|
import org.springframework.stereotype.Service;
|
|
import com.yssh.dao.AlertConfigMapper;
|
import com.yssh.entity.AlertConfig;
|
import com.yssh.service.IAlertConfigService;
|
|
import javax.annotation.Resource;
|
|
@Service
|
public class AlertConfigServiceImpl implements IAlertConfigService {
|
@Resource
|
private AlertConfigMapper alertConfigMapper;
|
|
@Override
|
public List<AlertConfig> getAll() {
|
return alertConfigMapper.getAll();
|
}
|
|
@Override
|
public List<AlertConfig> query(Integer id) {
|
return alertConfigMapper.query(id);
|
}
|
|
@Override
|
public int update(AlertConfig config) {
|
return alertConfigMapper.update(config);
|
}
|
|
public int insert(AlertConfig config) {
|
return alertConfigMapper.insert(config);
|
}
|
|
@Override
|
public int delete(Integer id) {
|
return alertConfigMapper.delete(id);
|
}
|
}
|