package com.unis.detectionnum.server.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageInfo;
import com.unis.detectionnum.common.vo.AlarmGenerateMainVO;
import com.unis.detectionnum.server.domain.AlarmGenerateDomain;
import com.unis.detectionnum.server.service.AlarmGenerateService;

/** 
 * @ClassName: AlarmGenerateServiceImpl 
 * @Description: 告警规则管理service实现类 
 * @author LiuFeng 
 * @date 2019年9月29日 上午9:31:38  
 */
@Service
public class AlarmGenerateServiceImpl implements AlarmGenerateService{

	@Autowired
	private AlarmGenerateDomain alarmGenerateDomain;
	/**
	 * <p>Title: saveAlarmGenerateMain</p> 
	 * <p>Description:告警规则保存 </p> 
	 * @param alarmGenerateMainVO
	 * @return 
	 * @see com.unis.detectionnum.server.service.AlarmGenerateService#saveAlarmGenerateMain(com.unis.detectionnum.common.vo.AlarmGenerateMainVO) 
	 */
	@Override
	public String saveAlarmGenerateMain(AlarmGenerateMainVO alarmGenerateMainVO) {
		
		return alarmGenerateDomain.saveAlarmGenerateMain(alarmGenerateMainVO);
	}
	/**
	 * <p>Title: updateAlarmGenerateMain</p> 
	 * <p>Description: </p> 
	 * @param alarmGenerateMainVO 
	 * @see com.unis.detectionnum.server.service.AlarmGenerateService#updateAlarmGenerateMain(com.unis.detectionnum.common.vo.AlarmGenerateMainVO) 
	 */
	@Override
	public void updateAlarmGenerateMain(AlarmGenerateMainVO alarmGenerateMainVO) {
		
		alarmGenerateDomain.updateAlarmGenerateMain(alarmGenerateMainVO);
	}
	/**
	 * <p>Title: deleteAlarmGenerateMain</p> 
	 * <p>Description: </p> 
	 * @param generateNo 
	 * @see com.unis.detectionnum.server.service.AlarmGenerateService#deleteAlarmGenerateMain(java.lang.String) 
	 */
	@Override
	public void deleteAlarmGenerateMain(String generateNo) {
		
		alarmGenerateDomain.deleteAlarmGenerateMain(generateNo);
	}
	/**
	 * <p>Title: alarmGenerateMainPageList</p> 
	 * <p>Description: </p> 
	 * @param pageNum
	 * @param pageSize
	 * @param alarmGenerateMainVO
	 * @return 
	 * @see com.unis.detectionnum.server.service.AlarmGenerateService#alarmGenerateMainPageList(java.lang.Integer, java.lang.Integer, com.unis.detectionnum.common.vo.AlarmGenerateMainVO) 
	 */
	@Override
	public PageInfo<AlarmGenerateMainVO> alarmGenerateMainPageList(Integer pageNum, Integer pageSize,
			AlarmGenerateMainVO alarmGenerateMainVO) {
		
		return alarmGenerateDomain.alarmGenerateMainPageList(pageNum,pageSize,alarmGenerateMainVO);
	}

}
