SysOpAdviceRelDaoImpl.java
1.71 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
package com.zteits.sys.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.sys.dao.SysOpAdviceRelDao;
import com.zteits.sys.domain.SysOpAdviceRel;
import com.zteits.sys.domain.SysOpAdviceRelExample;
import com.zteits.sys.mapper.SysOpAdviceRelMapper;
/**
* 职工订制消息类型关系接口
* Copyright: Copyright (c) 2017 zteits
*
* @ClassName: SysOpAdviceRelDaoImpl.java
* @Description:
* @version: v1.0.0
* @author: wangfei
* @date: 2018年8月13日 下午4:44:57
* Modification History:
* Date Author Version Description
* ---------------------------------------------------------*
* 2018年8月13日 wangfei v1.0.0 创建
*/
@Component
public class SysOpAdviceRelDaoImpl implements SysOpAdviceRelDao {
@Autowired
private SysOpAdviceRelMapper sysOpAdviceRelMapper;
@Override
public List<SysOpAdviceRel> querySysOpAdviceRel() {
// TODO Auto-generated method stub
return null;
}
@Override
public Integer updateSysOpAdviceRel(List<SysOpAdviceRel> sysOpAdviceRelList) {
// TODO Auto-generated method stub
return null;
}
@Override
public List<SysOpAdviceRel> querySysOpIdsByAdviceType(Integer adviceType) {
SysOpAdviceRelExample example = new SysOpAdviceRelExample();
example.createCriteria().andDataStateEqualTo(DataStatusEnum.DATA_STATUS_VALID.value())
.andAdviceTypeEqualTo(adviceType);
List<SysOpAdviceRel> list = sysOpAdviceRelMapper.selectByExample(example);
return list;
}
}