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.ForwardMainVO;
import com.unis.detectionnum.common.vo.ForwardPeopleVO;
import com.unis.detectionnum.server.domain.ForwardDomain;
import com.unis.detectionnum.server.service.ForwardService;

/** 
 * @ClassName: ForwardServiceImpl 
 * @Description: 前传规则service实现类
 * @author LiuFeng 
 * @date 2019年10月9日 下午4:06:59  
 */
@Service
public class ForwardServiceImpl implements ForwardService{

	@Autowired
	private ForwardDomain forwardDomain;

	/**
	 * <p>Title: saveForwardMain</p> 
	 * <p>Description: </p> 
	 * @param forwardMainVO
	 * @return 
	 * @see com.unis.detectionnum.server.service.ForwardService#saveForwardMain(com.unis.detectionnum.common.vo.ForwardMainVO) 
	 */
	@Override
	public String saveForwardMain(ForwardMainVO forwardMainVO) {
		
		return forwardDomain.saveForwardMain(forwardMainVO);
	}

	/**
	 * <p>Title: updateForwardMain</p> 
	 * <p>Description: </p> 
	 * @param forwardMainVO 
	 * @see com.unis.detectionnum.server.service.ForwardService#updateForwardMain(com.unis.detectionnum.common.vo.ForwardMainVO) 
	 */
	@Override
	public void updateForwardMain(ForwardMainVO forwardMainVO) {
		
		forwardDomain.updateForwardMain(forwardMainVO);
	}

	/**
	 * <p>Title: deleteForwardMain</p> 
	 * <p>Description: </p> 
	 * @param forwardNo 
	 * @see com.unis.detectionnum.server.service.ForwardService#deleteForwardMain(java.lang.String) 
	 */
	@Override
	public void deleteForwardMain(String forwardNo) {
		
		forwardDomain.deleteForwardMain(forwardNo);
	}

	/**
	 * <p>Title: forwardMainPageList</p> 
	 * <p>Description: </p> 
	 * @param pageNum
	 * @param pageSize
	 * @param forwardMainVO
	 * @return 
	 * @see com.unis.detectionnum.server.service.ForwardService#forwardMainPageList(java.lang.Integer, java.lang.Integer, com.unis.detectionnum.common.vo.ForwardMainVO) 
	 */
	@Override
	public PageInfo<ForwardMainVO> forwardMainPageList(Integer pageNum, Integer pageSize, ForwardMainVO forwardMainVO) {
		
		return forwardDomain.forwardMainPageList(pageNum,pageSize,forwardMainVO);
	}

	/**
	 * <p>Title: saveForwardPeople</p> 
	 * <p>Description: </p> 
	 * @param forwardPeopleVO
	 * @return 
	 * @see com.unis.detectionnum.server.service.ForwardService#saveForwardPeople(com.unis.detectionnum.common.vo.ForwardPeopleVO) 
	 */
	@Override
	public String saveForwardPeople(ForwardPeopleVO forwardPeopleVO) {
		
		return forwardDomain.saveForwardPeople(forwardPeopleVO);
	}

	/**
	 * <p>Title: updateForwardPeople</p> 
	 * <p>Description: </p> 
	 * @param forwardPeopleVO
	 * @return 
	 * @see com.unis.detectionnum.server.service.ForwardService#updateForwardPeople(com.unis.detectionnum.common.vo.ForwardPeopleVO) 
	 */
	@Override
	public void updateForwardPeople(ForwardPeopleVO forwardPeopleVO) {
		
		forwardDomain.updateForwardPeople(forwardPeopleVO);
	}

}
