Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
af1db22b
Commit
af1db22b
authored
May 27, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微管理员控制
parent
2bed7bca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
25 deletions
+33
-25
ApplicationController.java
...c/haoban/manage/web/controller/ApplicationController.java
+0
-23
StaffController.java
...com/gic/haoban/manage/web/controller/StaffController.java
+32
-2
spring-interceptor.xml
...anage3-web/src/main/webapp/WEB-INF/spring-interceptor.xml
+1
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/ApplicationController.java
View file @
af1db22b
...
@@ -285,29 +285,6 @@ public class ApplicationController extends WebBaseController {
...
@@ -285,29 +285,6 @@ public class ApplicationController extends WebBaseController {
}
}
/**
/**
* 通讯录同步
*
* @return
*/
@RequestMapping
(
"sync-qywx"
)
public
Object
syncQywx
()
{
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
WxEnterpriseDTO
enterpriseDTO
=
this
.
wxEnterpriseApiService
.
getOne
(
wxEnterpriseId
);
if
(
enterpriseDTO
!=
null
)
{
String
taskId
=
dealSyncOperationApiService
.
createQywxTask
(
wxEnterpriseId
,
"后门同步企业微信架构"
,
login
.
getClerkId
(),
"后门同步企业微信架构"
);
if
(
StringUtils
.
isBlank
(
taskId
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
false
);
}
String
ret
=
dealSyncOperationApiService
.
dealQywxDepartment
(
taskId
,
wxEnterpriseId
);
if
(
null
!=
ret
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
ret
,
null
,
null
);
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
/**
* 初始化应用
* 初始化应用
*
*
* @param wxEnterpriseId
* @param wxEnterpriseId
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/StaffController.java
View file @
af1db22b
...
@@ -24,8 +24,6 @@ import com.gic.haoban.manage.api.enums.ChannelCodeEnum;
...
@@ -24,8 +24,6 @@ import com.gic.haoban.manage.api.enums.ChannelCodeEnum;
import
com.gic.haoban.manage.api.service.*
;
import
com.gic.haoban.manage.api.service.*
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.qo.StaffEditJsonQO
;
import
com.gic.haoban.manage.web.qo.StaffEditJsonQO
;
import
com.gic.haoban.manage.web.vo.AdminRoleVO
;
import
com.gic.haoban.manage.web.vo.AdminVO
;
import
com.gic.haoban.manage.web.vo.ClerkInfoVo
;
import
com.gic.haoban.manage.web.vo.ClerkInfoVo
;
import
com.gic.haoban.manage.web.vo.StaffExportVO
;
import
com.gic.haoban.manage.web.vo.StaffExportVO
;
import
com.gic.haoban.manage.web.vo.StaffVO
;
import
com.gic.haoban.manage.web.vo.StaffVO
;
...
@@ -79,6 +77,8 @@ public class StaffController extends WebBaseController {
...
@@ -79,6 +77,8 @@ public class StaffController extends WebBaseController {
private
QywxSuiteApiService
qywxSuiteApiService
;
private
QywxSuiteApiService
qywxSuiteApiService
;
@Autowired
@Autowired
private
HaobanUserApiService
haobanUserApiService
;
private
HaobanUserApiService
haobanUserApiService
;
@Autowired
private
DealSyncOperationApiService
dealSyncOperationApiService
;
@RequestMapping
(
"set-default-gicenterprise"
)
@RequestMapping
(
"set-default-gicenterprise"
)
...
@@ -464,6 +464,9 @@ public class StaffController extends WebBaseController {
...
@@ -464,6 +464,9 @@ public class StaffController extends WebBaseController {
*/
*/
@RequestMapping
(
"staff-export"
)
@RequestMapping
(
"staff-export"
)
public
HaobanResponse
staffExport
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
departmentId
,
Integer
activeFlag
,
Integer
relationFlag
,
String
keyWord
,
BasePageInfo
pageInfo
)
{
public
HaobanResponse
staffExport
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
departmentId
,
Integer
activeFlag
,
Integer
relationFlag
,
String
keyWord
,
BasePageInfo
pageInfo
)
{
if
(!
isAdmin
())
{
return
this
.
resultResponse
(
HaoBanErrCode
.
ERR_10030
)
;
}
List
<
String
>
departmentIdSet
=
new
ArrayList
<>();
List
<
String
>
departmentIdSet
=
new
ArrayList
<>();
departmentIdSet
.
add
(
departmentId
);
departmentIdSet
.
add
(
departmentId
);
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
...
@@ -559,6 +562,33 @@ public class StaffController extends WebBaseController {
...
@@ -559,6 +562,33 @@ public class StaffController extends WebBaseController {
}
}
}
}
/**
* 通讯录同步
*
* @return
*/
@RequestMapping
(
"sync-qywx"
)
public
Object
syncQywx
()
{
if
(!
isAdmin
())
{
return
this
.
resultResponse
(
HaoBanErrCode
.
ERR_10030
)
;
}
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
WxEnterpriseDTO
enterpriseDTO
=
this
.
wxEnterpriseApiService
.
getOne
(
wxEnterpriseId
);
if
(
enterpriseDTO
!=
null
)
{
String
taskId
=
dealSyncOperationApiService
.
createQywxTask
(
wxEnterpriseId
,
"后门同步企业微信架构"
,
login
.
getClerkId
(),
"后门同步企业微信架构"
);
if
(
StringUtils
.
isBlank
(
taskId
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
false
);
}
String
ret
=
dealSyncOperationApiService
.
dealQywxDepartment
(
taskId
,
wxEnterpriseId
);
if
(
null
!=
ret
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
ret
,
null
,
null
);
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
private
boolean
isAdmin
(){
private
boolean
isAdmin
(){
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
String
staffId
=
login
.
getStaffId
()
;
String
staffId
=
login
.
getStaffId
()
;
...
...
haoban-manage3-web/src/main/webapp/WEB-INF/spring-interceptor.xml
View file @
af1db22b
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
<mvc:exclude-mapping
path=
"/upload-file-voice"
/>
<mvc:exclude-mapping
path=
"/upload-file-voice"
/>
<mvc:exclude-mapping
path=
"/get-login-qrcode"
/>
<mvc:exclude-mapping
path=
"/get-login-qrcode"
/>
<mvc:exclude-mapping
path=
"/gic-login-check"
/>
<mvc:exclude-mapping
path=
"/gic-login-check"
/>
<mvc:exclude-mapping
path=
"/staff-export"
/>
<bean
class=
"com.gic.web.common.inteceptor.RightInterceptor"
/>
<bean
class=
"com.gic.web.common.inteceptor.RightInterceptor"
/>
</mvc:interceptor>
</mvc:interceptor>
</mvc:interceptors>
</mvc:interceptors>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment