TdCCustSignDaoImpl.java
1.24 KB
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
41
42
43
44
45
46
package com.zteits.pay.dao.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.zteits.pay.dao.TdCCustSignDao;
import com.zteits.pay.domain.TdCCustSign;
import com.zteits.pay.domain.TdCCustSignDO;
import com.zteits.pay.mapper.TdCCustSignMapper;
import com.zteits.pay.mapper.smapper.TdCCustSignSMapper;
@Component
public class TdCCustSignDaoImpl implements TdCCustSignDao{
@Autowired
private TdCCustSignSMapper tdCCustSignSMapper;
@Autowired
private TdCCustSignMapper tdCCustSignMapper;
@Override
public int getCustSignState(TdCCustSign tdCCustSign) {
return tdCCustSignSMapper.getCustSignState(tdCCustSign);
}
@Override
public int saveCustSign(TdCCustSign tdCCustSign) {
return tdCCustSignMapper.insertSelective(tdCCustSign);
}
@Override
public TdCCustSignDO queryCustSignOld(TdCCustSign tdCCustSign) {
TdCCustSignDO tdCCustSignDO = tdCCustSignSMapper.queryCustSignOld(tdCCustSign);
if(tdCCustSignDO == null){
TdCCustSignDO custSignDO = new TdCCustSignDO();
custSignDO.setSignScore(0);
custSignDO.setContinueSignNum(0);
custSignDO.setTotalScore(0);
custSignDO.setTotalSignNum(0);
return custSignDO;
}else{
return tdCCustSignDO;
}
}
}