Blame view

parking-module-pay/src/main/java/com/zteits/pay/dao/impl/TdCCustRuleDaoImpl.java 919 Bytes
55f68655   王彪总   新项目
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
28
  package com.zteits.pay.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.pay.dao.TdCCustRuleDao;
  import com.zteits.pay.domain.TdCCustRule;
  import com.zteits.pay.domain.TdCCustRuleExample;
  import com.zteits.pay.mapper.TdCCustRuleMapper;
  @Component
  public class TdCCustRuleDaoImpl implements TdCCustRuleDao {
  
  	@Autowired
  	private TdCCustRuleMapper tdCCustRuleMapper;
  	
  	@Override
  	public List<TdCCustRule> queryRuleByCondition(TdCCustRule record) {
  		TdCCustRuleExample example = new TdCCustRuleExample();
  		Integer ruleType = record.getRuleType();
  		example.createCriteria().andDataStateEqualTo(DataStatusEnum.DATA_STATUS_VALID.value())
  			.andRuleTypeEqualTo(ruleType);
  		return tdCCustRuleMapper.selectByExampleWithBLOBs(example);
  	}
  	
  }