Blame view

parking-module-pay/src/main/java/com/zteits/pay/dao/impl/TdCCouponRuleCustidCarnumRelDaoImpl.java 1.46 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
  package com.zteits.pay.dao.impl;
  
  import com.zteits.pay.domain.*;
  import com.zteits.pay.mapper.TdCCouponRuleCustidCarnumRelMapper;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.stereotype.Component;
  
  import java.util.List;
  
  @Component
  public class TdCCouponRuleCustidCarnumRelDaoImpl {
  
  	@Autowired
  	private TdCCouponRuleCustidCarnumRelMapper tdCCouponRuleCustidCarnumRelMapper;
  
  	public List<TdCCouponRuleCustidCarnumRel> getListByCardNo(String cardNo){
  		TdCCouponRuleCustidCarnumRelExample example = new TdCCouponRuleCustidCarnumRelExample();
  		example.createCriteria().andCardNoEqualTo(cardNo);
  		return tdCCouponRuleCustidCarnumRelMapper.selectByExample(example);
  	}
  
  	public List<TdCCouponRuleCustidCarnumRel> getList(TdCCouponRuleCustidCarnumRel rel){
  		TdCCouponRuleCustidCarnumRelExample example = new TdCCouponRuleCustidCarnumRelExample();
  		example.createCriteria()
  				.andCardNoEqualTo(rel.getCardNo())
  				.andCustIdEqualTo(rel.getCustId());
  		return tdCCouponRuleCustidCarnumRelMapper.selectByExample(example);
  	}
  
  	public int delTdCCouponRuleCustidCarnumRel(List iDs) {
  		TdCCouponRuleCustidCarnumRelExample example = new TdCCouponRuleCustidCarnumRelExample();
  		example.createCriteria().andIdIn(iDs);
  		return tdCCouponRuleCustidCarnumRelMapper.deleteByExample(example);
  	}
  
  	public Integer insertTdCCouponRuleCustidCarnumRel(TdCCouponRuleCustidCarnumRel rel) {
  		return tdCCouponRuleCustidCarnumRelMapper.insertSelective(rel);
  	}
  
  }