SmsTemplateConfigRltParkingDaoImpl.java
3.25 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package com.zteits.park.dao.impl;
import org.apache.commons.lang3.StringUtils;
import com.zteits.clouds.api.dto.park.dto.SmsTemplateConfigRltParkingDTO;
import com.zteits.clouds.api.dto.park.param.SmsTemplateConfigRltParkingRequest;
import com.zteits.park.dao.SmsTemplateConfigRltParkingDao;
import com.zteits.park.domain.SmsTemplateConfigRltParking;
import com.zteits.park.domain.SmsTemplateConfigRltParkingExample;
import com.zteits.park.mapper.SmsTemplateConfigRltParkingMapper;
import com.zteits.park.mapper.smapper.SmsTemplateConfigRltParkingSMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* Copyright: Copyright (c) 2019 ZTE-ITS
*
* @Description:
* @ProjectName: zteits-clouds
* @Package: com.zteits.park.dao.impl
* @ClassName: SmsTemplateConfigRltParkingDaoImpl
* Modification History:
* Date Author Version Description
* ---------------------------------------------------------*
* 2021/12/24 wb v1.0.0 创建
*/
@Component
public class SmsTemplateConfigRltParkingDaoImpl implements SmsTemplateConfigRltParkingDao {
@Autowired
private SmsTemplateConfigRltParkingMapper smsTemplateConfigRltParkingMapper;
@Autowired
private SmsTemplateConfigRltParkingSMapper smsTemplateConfigRltParkingSMapper;
@Override
public int saveSmsTemplateConfigRltParking(SmsTemplateConfigRltParking smsTemplateConfigRltParking) {
return smsTemplateConfigRltParkingMapper.insertSelective(smsTemplateConfigRltParking);
}
@Override
public int updateByExampleSelective(SmsTemplateConfigRltParking record, SmsTemplateConfigRltParkingExample example) {
return 0;
}
@Override
public int updateByPrimaryKeySelective(SmsTemplateConfigRltParking record) {
return 0;
}
@Override
public List<SmsTemplateConfigRltParking> selectByExample(SmsTemplateConfigRltParkingExample example) {
return smsTemplateConfigRltParkingMapper.selectByExample(example);
}
@Override
public SmsTemplateConfigRltParking queryByPrimaryKey(Long id) {
return null;
}
@Override
public List<SmsTemplateConfigRltParking> querySmsTemplateConfigRltParking(SmsTemplateConfigRltParkingRequest request) {
SmsTemplateConfigRltParkingExample smsTemplateConfigRltParkingExample = new SmsTemplateConfigRltParkingExample();
SmsTemplateConfigRltParkingExample.Criteria criteria = smsTemplateConfigRltParkingExample.createCriteria();
if(StringUtils.isNotEmpty(request.getSmsId())){
criteria.andSmsIdEqualTo(request.getSmsId());
}
return smsTemplateConfigRltParkingMapper.selectByExample(smsTemplateConfigRltParkingExample);
}
@Override
public int batchDeleteSmsTemplateConfigRltParkingByPrimaryKey(List<Long> ids, String opId, String opName) {
return 0;
}
@Override
public int deleteByExample(SmsTemplateConfigRltParkingExample example) {
return smsTemplateConfigRltParkingMapper.deleteByExample(example);
}
@Override
public SmsTemplateConfigRltParkingDTO selectByPlNo(SmsTemplateConfigRltParkingRequest request) {
return smsTemplateConfigRltParkingSMapper.selectByPlNo(request);
}
}