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

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

import com.unis.detectionnum.common.vo.ScanRuleVO;
import com.unis.detectionnum.server.domain.ScanRuleDomain;
import com.unis.detectionnum.server.service.ScanRuleService;

/** 
 * @ClassName: ScanRuleServiceImpl 
 * @Description: TODO 
 * @author LiuFeng 
 * @date 2019年10月29日 下午4:06:19  
 */
@Service
public class ScanRuleServiceImpl implements ScanRuleService{

	@Autowired
	private ScanRuleDomain scanRuleDomain;
	/**
	 * <p>Title: saveOrUpdateScanRule</p> 
	 * <p>Description: </p> 
	 * @param scanRuleVO
	 * @return 
	 * @see com.unis.detectionnum.server.service.ScanRuleService#saveOrUpdateScanRule(com.unis.detectionnum.common.vo.ScanRuleVO) 
	 */
	@Override
	public int saveOrUpdateScanRule(ScanRuleVO scanRuleVO) {
		
		return scanRuleDomain.saveOrUpdateScanRule(scanRuleVO);
	}

	/**
	 * <p>Title: getScanRuleInfo</p> 
	 * <p>Description: </p> 
	 * @param sbCode
	 * @return 
	 * @see com.unis.detectionnum.server.service.ScanRuleService#getScanRuleInfo(java.lang.String) 
	 */
	@Override
	public ScanRuleVO getScanRuleInfo(String sbCode) {
		// TODO Auto-generated method stub
		return scanRuleDomain.getScanRuleInfo(sbCode);
	}

	/**
	 * <p>Title: getScanRuleIsOut</p>
	 * <p>Description: </p>
	 * @param sbCode
	 * @return
	 * @see com.unis.detectionnum.server.service.ScanRuleService#getScanRuleInfo(java.lang.String)
	 */
	@Override
	public ScanRuleVO getScanRuleIsOut(String sbCode) {
		// TODO Auto-generated method stub
		return scanRuleDomain.getScanRuleIsOut(sbCode);
	}
}
