| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.yssh.dao.AlertConfigMapper; |
| | | import com.yssh.dao.DictRecordMapper; |
| | | import com.yssh.dao.SuYuanMapper; |
| | | import com.yssh.entity.AlertConfig; |
| | | import com.yssh.service.IAlertConfigService; |
| | | import com.yssh.service.ICommonService; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @Service |
| | | public class AlertConfigServiceImpl implements IAlertConfigService { |
| | | |
| | | protected final Log logger = LogFactory.getLog(this.getClass()); |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private AlertConfigMapper alertConfigMapper; |
| | | |
| | | @Autowired |
| | | private ICommonService commonService; |
| | | |
| | | @Autowired |
| | | private SuYuanMapper suYuanMapper; |
| | | |
| | | @Autowired |
| | | private DictRecordMapper dictRecordMapper; |
| | | |
| | | @Override |
| | | @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); |
| | | } |
| | | |
| | | } |