package com.zteits.park.dao.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.zteits.clouds.api.apibase.constants.DataStatusEnum; import com.zteits.park.dao.FreeBerthStatisticRuleDao; import com.zteits.park.domain.TpPFreeberthStatisticRule; import com.zteits.park.domain.TpPFreeberthStatisticRuleExample; import com.zteits.park.mapper.TpPFreeberthStatisticRuleMapper; @Component public class FreeBerthStatisticRuleDaoImpl implements FreeBerthStatisticRuleDao { @Autowired private TpPFreeberthStatisticRuleMapper statisticRuleMapper; @Override public List getFreeStatisticRule(String plNo) { TpPFreeberthStatisticRuleExample example = new TpPFreeberthStatisticRuleExample(); example.createCriteria() .andDataStateEqualTo(DataStatusEnum.DATA_STATUS_VALID.value()) .andPlNoEqualTo(plNo); return statisticRuleMapper.selectByExampleWithBLOBs(example ); } }