1b9e8898
王富生
提交
|
1
2
3
4
|
package com.zteits.oa.report.biz;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
|
900781d3
王富生
提交
|
5
|
import org.springframework.beans.BeanUtils;
|
1b9e8898
王富生
提交
|
6
7
8
9
10
11
12
13
14
|
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.zteits.oa.api.base.bean.BizResult;
import com.zteits.oa.api.base.bean.PageBean;
import com.zteits.oa.api.dto.asraop.AsraOpDTO;
import com.zteits.oa.api.dto.asraop.param.AsraOpQueryReq;
|
2f6df64b
xiejianpeng
员工管理
|
15
|
import com.zteits.oa.api.service.report.query.AsraOpQueryService;
|
1b9e8898
王富生
提交
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
import com.zteits.oa.report.dao.AsraOpDao;
import com.zteits.oa.report.domain.AsraOp;
import com.zteits.oa.util.pagepaper.PageBeanUtil;
/**
* 工时系统操作员实现类.<br/>
*
* Copyright: Copyright (c) 2017 ZTE-ITS
*
* @ClassName: AmountUtils.java
* @Description:
* @version: v1.0.0
* @author: wangfs
* @date: 2018年7月30日
* Modification History:
* Date Author Version Description
*---------------------------------------------------------*
* 2018年7月30日 wangfs v1.0.0 创建
*/
@Service("")
|
2f6df64b
xiejianpeng
员工管理
|
35
|
public class AsraOpQueryServiceImpl implements AsraOpQueryService {
|
1b9e8898
王富生
提交
|
36
|
|
2f6df64b
xiejianpeng
员工管理
|
37
|
private static final Logger logger = LoggerFactory.getLogger(AsraOpQueryServiceImpl.class);
|
1b9e8898
王富生
提交
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
@Autowired
private AsraOpDao asraOpDao;
/**
* 分页查询工时系统员工信息.<br/>
* @param asraOpQueryReq
* @return
* 2018年7月30日 wangfs.<br/>
*/
@Override
public BizResult<PageBean<AsraOpDTO>> queryAsraOpForPage(AsraOpQueryReq asraOpQueryReq) {
logger.info("---begin查询分页员工信息..入参={}",JSONObject.toJSON(asraOpQueryReq));
PageBean<AsraOpDTO> pageBean = new PageBean<AsraOpDTO>();
PageInfo<AsraOp> pageInfo = asraOpDao.queryAsraOpForPage(asraOpQueryReq);
PageBeanUtil.copyProperties(pageInfo, pageBean, AsraOpDTO.class);
logger.info("---end查询分页员工信息..");
return new BizResult<PageBean<AsraOpDTO>>(pageBean);
}
|
900781d3
王富生
提交
|
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/**
* 获取员工信息.<br/>
* @param asraOpQueryRe
* @return
* 2018年7月31日 wangfs.<br/>
*/
@Override
public BizResult<AsraOpDTO> queryAsraOp(AsraOpQueryReq asraOpQueryRe) {
AsraOpDTO asraOpDTO = new AsraOpDTO();
AsraOp queryAsraOp = asraOpDao.queryAsraOp(asraOpQueryRe);
if(queryAsraOp != null){
BeanUtils.copyProperties(queryAsraOp, asraOpDTO);
}
return new BizResult<AsraOpDTO>(asraOpDTO);
}
|
1b9e8898
王富生
提交
|
70
|
|
2f6df64b
xiejianpeng
员工管理
|
71
72
73
74
75
76
77
78
79
|
@Override
public BizResult<AsraOpDTO> queryAsraOpByLoginCode(AsraOpQueryReq asraOpQueryReq) {
AsraOpDTO asraOpDTO = new AsraOpDTO();
AsraOp asraOp = asraOpDao.queryAsraOpByLoginCode(asraOpQueryReq.getLoginCode());
BeanUtils.copyProperties(asraOp,asraOpDTO);
return new BizResult<>(asraOpDTO);
}
|
1b9e8898
王富生
提交
|
80
|
}
|