SysOpProjectDaoImpl.java
1.39 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
package com.zteits.sys.dao.impl;
import java.util.List;
import com.zteits.clouds.api.apibase.constants.DataStatusEnum;
import com.zteits.clouds.api.dto.sys.param.SysOpProjectQueryByLoginCodeQueryReq;
import com.zteits.sys.dao.SysOpProjectDao;
import com.zteits.sys.domain.SysOpProject;
import com.zteits.sys.domain.SysOpProjectExample;
import com.zteits.sys.mapper.SysOpProjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* Copyright: Copyright (c) 2018 zteits
*
* @ClassName: com.zteits.sys.dao.impl
* @Description:
* @version: v1.0.0
* @author: atao
* @date: 2018/11/19 3:54 PM
* Modification History:
* Date Author Version Description
* ---------------------------------------------------------*
* 2018/11/19 atao v1.0.0 创建
*/
@Component
public class SysOpProjectDaoImpl implements SysOpProjectDao {
@Autowired
private SysOpProjectMapper sysOpProjectMapper;
@Override
public List<SysOpProject> querySysOpProjectByLoginCode(SysOpProjectQueryByLoginCodeQueryReq req) {
SysOpProjectExample example = new SysOpProjectExample();
example.createCriteria().andLoginCodeEqualTo(req.getLogindCode()).andDataStateEqualTo(
DataStatusEnum.DATA_STATUS_VALID.value());
return sysOpProjectMapper.selectByExample(example);
}
}