Commit 9ce772923472a0b9fe10e2d80d6004411da96762

Authored by xiejianpeng
1 parent 2f6df64b

员工管理

src/main/java/com/zteits/oa/api/dto/asraop/param/AsraOpQueryReq.java
@@ -11,14 +11,10 @@ public class AsraOpQueryReq extends BaseRequest{ @@ -11,14 +11,10 @@ public class AsraOpQueryReq extends BaseRequest{
11 */ 11 */
12 private static final long serialVersionUID = 7249746348000980054L; 12 private static final long serialVersionUID = 7249746348000980054L;
13 13
14 -<<<<<<< Updated upstream  
15 /**主键*/ 14 /**主键*/
16 private Long id; 15 private Long id;
17 16
18 - /**登录工号*/  
19 -=======  
20 /**当前登录人的登录工号*/ 17 /**当前登录人的登录工号*/
21 ->>>>>>> Stashed changes  
22 private String loginCode; 18 private String loginCode;
23 19
24 /**登录密码*/ 20 /**登录密码*/
src/main/java/com/zteits/oa/api/service/report/query/AsraOpQueryService.java
@@ -32,7 +32,6 @@ public interface AsraOpQueryService { @@ -32,7 +32,6 @@ public interface AsraOpQueryService {
32 * 2018年7月30日 wangfs.<br/> 32 * 2018年7月30日 wangfs.<br/>
33 */ 33 */
34 BizResult<PageBean<AsraOpDTO>> queryAsraOpForPage(AsraOpQueryReq asraOpQueryReq); 34 BizResult<PageBean<AsraOpDTO>> queryAsraOpForPage(AsraOpQueryReq asraOpQueryReq);
35 -<<<<<<< Updated upstream:src/main/java/com/zteits/oa/api/service/report/query/AsraOpRueryService.java  
36 /** 35 /**
37 * 获取员工信息.<br/> 36 * 获取员工信息.<br/>
38 * @param asraOpQueryRe 37 * @param asraOpQueryRe
@@ -41,7 +40,6 @@ public interface AsraOpQueryService { @@ -41,7 +40,6 @@ public interface AsraOpQueryService {
41 */ 40 */
42 BizResult<AsraOpDTO> queryAsraOp(AsraOpQueryReq asraOpQueryRe); 41 BizResult<AsraOpDTO> queryAsraOp(AsraOpQueryReq asraOpQueryRe);
43 42
44 -=======  
45 43
46 /** 44 /**
47 * 根据登录工号查询员工信息 45 * 根据登录工号查询员工信息
@@ -52,5 +50,4 @@ public interface AsraOpQueryService { @@ -52,5 +50,4 @@ public interface AsraOpQueryService {
52 * 50 *
53 */ 51 */
54 BizResult<AsraOpDTO> queryAsraOpByLoginCode(AsraOpQueryReq asraOpQueryReq); 52 BizResult<AsraOpDTO> queryAsraOpByLoginCode(AsraOpQueryReq asraOpQueryReq);
55 ->>>>>>> Stashed changes:src/main/java/com/zteits/oa/api/service/report/query/AsraOpQueryService.java  
56 } 53 }
src/main/java/com/zteits/oa/report/dao/AsraOpDao.java
@@ -15,8 +15,7 @@ public interface AsraOpDao { @@ -15,8 +15,7 @@ public interface AsraOpDao {
15 * 2018年7月30日 wangfs.<br/> 15 * 2018年7月30日 wangfs.<br/>
16 */ 16 */
17 PageInfo<AsraOp> queryAsraOpForPage(AsraOpQueryReq asraOpQueryReq); 17 PageInfo<AsraOp> queryAsraOpForPage(AsraOpQueryReq asraOpQueryReq);
18 -<<<<<<< Updated upstream  
19 - 18 +
20 /** 19 /**
21 * 获取员工信息.<br/> 20 * 获取员工信息.<br/>
22 * @param asraOpQueryRe 21 * @param asraOpQueryRe
@@ -24,7 +23,6 @@ public interface AsraOpDao { @@ -24,7 +23,6 @@ public interface AsraOpDao {
24 * 2018年7月31日 wangfs.<br/> 23 * 2018年7月31日 wangfs.<br/>
25 */ 24 */
26 AsraOp queryAsraOp(AsraOpQueryReq asraOpQueryRe); 25 AsraOp queryAsraOp(AsraOpQueryReq asraOpQueryRe);
27 -=======  
28 26
29 /** 27 /**
30 * 根据登录工号查询员工信息 28 * 根据登录工号查询员工信息
@@ -35,5 +33,4 @@ public interface AsraOpDao { @@ -35,5 +33,4 @@ public interface AsraOpDao {
35 * 33 *
36 */ 34 */
37 AsraOp queryAsraOpByLoginCode(String loginCode); 35 AsraOp queryAsraOpByLoginCode(String loginCode);
38 ->>>>>>> Stashed changes  
39 } 36 }
src/main/java/com/zteits/oa/report/dao/impl/AsraOpDaoImpl.java
@@ -23,11 +23,7 @@ public class AsraOpDaoImpl implements AsraOpDao { @@ -23,11 +23,7 @@ public class AsraOpDaoImpl implements AsraOpDao {
23 23
24 @Autowired 24 @Autowired
25 private AsraOpSmapper asraOpSmapper; 25 private AsraOpSmapper asraOpSmapper;
26 -<<<<<<< Updated upstream  
27 -  
28 -=======  
29 26
30 ->>>>>>> Stashed changes  
31 @Autowired 27 @Autowired
32 private AsraOpMapper asraOpMapper; 28 private AsraOpMapper asraOpMapper;
33 /** 29 /**
src/main/java/com/zteits/oa/report/web/OAuthController.java
@@ -3,6 +3,7 @@ package com.zteits.oa.report.web; @@ -3,6 +3,7 @@ package com.zteits.oa.report.web;
3 import javax.servlet.http.HttpServletRequest; 3 import javax.servlet.http.HttpServletRequest;
4 import javax.servlet.http.HttpSession; 4 import javax.servlet.http.HttpSession;
5 5
  6 +import com.zteits.oa.api.service.report.query.AsraOpQueryService;
6 import org.slf4j.Logger; 7 import org.slf4j.Logger;
7 import org.slf4j.LoggerFactory; 8 import org.slf4j.LoggerFactory;
8 import org.springframework.beans.factory.annotation.Autowired; 9 import org.springframework.beans.factory.annotation.Autowired;
@@ -19,7 +20,6 @@ import com.zteits.oa.api.dto.asraop.AsraOpDTO; @@ -19,7 +20,6 @@ import com.zteits.oa.api.dto.asraop.AsraOpDTO;
19 import com.zteits.oa.api.dto.asraop.LoginOathRes; 20 import com.zteits.oa.api.dto.asraop.LoginOathRes;
20 import com.zteits.oa.api.dto.asraop.param.AsraOpQueryReq; 21 import com.zteits.oa.api.dto.asraop.param.AsraOpQueryReq;
21 import com.zteits.oa.api.dto.asraop.param.LoginOauthReq; 22 import com.zteits.oa.api.dto.asraop.param.LoginOauthReq;
22 -import com.zteits.oa.api.service.report.query.AsraOpRueryService;  
23 import com.zteits.oa.util.MD5Utils; 23 import com.zteits.oa.util.MD5Utils;
24 24
25 import io.swagger.annotations.Api; 25 import io.swagger.annotations.Api;
@@ -32,7 +32,7 @@ public class OAuthController { @@ -32,7 +32,7 @@ public class OAuthController {
32 private static final Logger logger = LoggerFactory.getLogger(OAuthController.class); 32 private static final Logger logger = LoggerFactory.getLogger(OAuthController.class);
33 33
34 @Autowired 34 @Autowired
35 - private AsraOpRueryService asraOpRueryService; 35 + private AsraOpQueryService asraOpQueryService;
36 36
37 @Autowired 37 @Autowired
38 private HttpServletRequest request; 38 private HttpServletRequest request;
@@ -63,7 +63,7 @@ public class OAuthController { @@ -63,7 +63,7 @@ public class OAuthController {
63 boolean isCheckSuccess = false; 63 boolean isCheckSuccess = false;
64 //1.判断登录账号/密码 64 //1.判断登录账号/密码
65 asraOpQueryRe.setLoginCode(loginCode); 65 asraOpQueryRe.setLoginCode(loginCode);
66 - BizResult<AsraOpDTO> asraOpReult = asraOpRueryService.queryAsraOp(asraOpQueryRe); 66 + BizResult<AsraOpDTO> asraOpReult = asraOpQueryService.queryAsraOp(asraOpQueryRe);
67 if(asraOpReult != null && asraOpReult.getData() != null){ 67 if(asraOpReult != null && asraOpReult.getData() != null){
68 asraOpDTO = asraOpReult.getData(); 68 asraOpDTO = asraOpReult.getData();
69 if(StringUtils.isEmpty(asraOpDTO.getLoginCode())){ 69 if(StringUtils.isEmpty(asraOpDTO.getLoginCode())){