Blame view

parking-module-park/src/main/java/com/zteits/park/dao/impl/FreeBerthStatisticRuleDaoImpl.java 1001 Bytes
9af4a544   王彪总   新项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  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<TpPFreeberthStatisticRule> getFreeStatisticRule(String plNo) {
  		TpPFreeberthStatisticRuleExample example = new TpPFreeberthStatisticRuleExample();
  		example.createCriteria()
  		.andDataStateEqualTo(DataStatusEnum.DATA_STATUS_VALID.value())
  		.andPlNoEqualTo(plNo);
  		return statisticRuleMapper.selectByExampleWithBLOBs(example );
  	}
  
  }