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
2c32fc6f
Commit
2c32fc6f
authored
Aug 19, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
79ee9708
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
18 deletions
+11
-18
WxEnterpriseDTO.java
...n/java/com/gic/haoban/manage/api/dto/WxEnterpriseDTO.java
+0
-9
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+5
-2
WxEnterpriseInfoController.java
...ban/manage/web/controller/WxEnterpriseInfoController.java
+6
-7
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/WxEnterpriseDTO.java
View file @
2c32fc6f
...
@@ -13,7 +13,6 @@ public class WxEnterpriseDTO implements Serializable {
...
@@ -13,7 +13,6 @@ public class WxEnterpriseDTO implements Serializable {
private
String
permanentCode
;
private
String
permanentCode
;
// 业务中请不要使用此属性
// 业务中请不要使用此属性
private
String
corpid
;
private
String
corpName
;
private
String
corpName
;
private
String
corpType
;
private
String
corpType
;
...
@@ -110,14 +109,6 @@ public class WxEnterpriseDTO implements Serializable {
...
@@ -110,14 +109,6 @@ public class WxEnterpriseDTO implements Serializable {
private
String
wxCorpid
;
private
String
wxCorpid
;
private
String
openCorpid
;
private
String
openCorpid
;
public
String
getCorpid
()
{
return
corpid
;
}
public
void
setCorpid
(
String
corpid
)
{
this
.
corpid
=
corpid
;
}
public
Integer
getWxSecurityType
()
{
public
Integer
getWxSecurityType
()
{
return
wxSecurityType
;
return
wxSecurityType
;
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
2c32fc6f
...
@@ -67,6 +67,7 @@ import com.gic.haoban.manage.web.vo.EnterpriseDetailVO;
...
@@ -67,6 +67,7 @@ import com.gic.haoban.manage.web.vo.EnterpriseDetailVO;
import
com.gic.haoban.manage.web.vo.EnterpriseSearchVO
;
import
com.gic.haoban.manage.web.vo.EnterpriseSearchVO
;
import
com.gic.haoban.manage.web.vo.SecretSettingVO
;
import
com.gic.haoban.manage.web.vo.SecretSettingVO
;
import
com.gic.haoban.manage.web.vo.StoreVo
;
import
com.gic.haoban.manage.web.vo.StoreVo
;
import
com.gic.haoban.manage.web.vo.WxEnterpriseVO
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.wechat.api.service.qywx.QywxCorpApiService
;
import
com.gic.wechat.api.service.qywx.QywxCorpApiService
;
import
com.gic.wechat.token.api.dto.QywxCorpInfoDTO
;
import
com.gic.wechat.token.api.dto.QywxCorpInfoDTO
;
...
@@ -166,7 +167,8 @@ public class WxEnterpriseController extends WebBaseController {
...
@@ -166,7 +167,8 @@ public class WxEnterpriseController extends WebBaseController {
}
}
wxEnterpriseDTO
.
setSmallVersion
(
"免费版"
);
wxEnterpriseDTO
.
setSmallVersion
(
"免费版"
);
wxEnterpriseDTO
.
setStoreTotal
(
departmentApiService
.
totalStoreCountByEnterpriseId
(
wxEnterpriseId
));
wxEnterpriseDTO
.
setStoreTotal
(
departmentApiService
.
totalStoreCountByEnterpriseId
(
wxEnterpriseId
));
wxEnterpriseDTO
.
setCorpid
(
getCorpid
(
wxEnterpriseDTO
));
WxEnterpriseVO
vo
=
com
.
gic
.
commons
.
util
.
EntityUtil
.
changeEntityNew
(
WxEnterpriseVO
.
class
,
wxEnterpriseDTO
)
;
vo
.
setCorpid
(
getCorpid
(
wxEnterpriseDTO
));
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
wxEnterpriseDTO
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
wxEnterpriseDTO
);
}
}
...
@@ -198,7 +200,8 @@ public class WxEnterpriseController extends WebBaseController {
...
@@ -198,7 +200,8 @@ public class WxEnterpriseController extends WebBaseController {
wxDTO
.
setContactFlag
(
1
);
wxDTO
.
setContactFlag
(
1
);
}
}
wxEnterpriseApiService
.
update
(
wxDTO
);
wxEnterpriseApiService
.
update
(
wxDTO
);
wxEnterpriseDTO
.
setCorpid
(
getCorpid
(
wxEnterpriseDTO
));
WxEnterpriseVO
vo
=
com
.
gic
.
commons
.
util
.
EntityUtil
.
changeEntityNew
(
WxEnterpriseVO
.
class
,
wxEnterpriseDTO
)
;
vo
.
setCorpid
(
getCorpid
(
wxEnterpriseDTO
));
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
wxEnterpriseDTO
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
wxEnterpriseDTO
);
}
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseInfoController.java
View file @
2c32fc6f
...
@@ -335,7 +335,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -335,7 +335,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
return
resultResponse
(
HaoBanErrCode
.
ERR_500001
);
return
resultResponse
(
HaoBanErrCode
.
ERR_500001
);
}
}
String
wxEnterpriseId
=
enterpriseDTO
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
enterpriseDTO
.
getWxEnterpriseId
();
logger
.
info
(
"查询到的企微ID={}
"
,
wxEnterpriseId
);
logger
.
info
(
"查询到的企微ID={}
-{}"
,
wxEnterpriseId
,
enterpriseDTO
.
getCorpName
()
);
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseApiService
.
getQwInfo
(
wxEnterpriseId
)
;
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseApiService
.
getQwInfo
(
wxEnterpriseId
)
;
MemberLoginQo
user
=
new
MemberLoginQo
();
MemberLoginQo
user
=
new
MemberLoginQo
();
if
(
StringUtils
.
isBlank
(
qo
.
getUserId
()))
{
if
(
StringUtils
.
isBlank
(
qo
.
getUserId
()))
{
...
@@ -344,14 +344,13 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -344,14 +344,13 @@ public class WxEnterpriseInfoController extends WebBaseController {
logger
.
info
(
"登录失败,从微信获取用户信息失败"
);
logger
.
info
(
"登录失败,从微信获取用户信息失败"
);
return
resultResponse
(
HaoBanErrCode
.
ERR_6
);
return
resultResponse
(
HaoBanErrCode
.
ERR_6
);
}
}
if
(!
user
.
getCorpId
().
equals
(
enterpriseDTO
.
getCorpid
())
&&
!
user
.
getCorpId
().
equals
(
enterpriseDTO
.
getOpenCorpid
()))
{
if
(!
user
.
getCorpId
().
equals
(
enterpriseDTO
.
get
Wx
Corpid
())
&&
!
user
.
getCorpId
().
equals
(
enterpriseDTO
.
getOpenCorpid
()))
{
logger
.
info
(
"corpid不一致,{},{},{}"
,
user
.
getCorpId
(),
enterpriseDTO
.
getCorpid
(),
enterpriseDTO
.
getOpenCorpid
());
logger
.
info
(
"corpid不一致,{},{},{}"
,
user
.
getCorpId
(),
enterpriseDTO
.
get
Wx
Corpid
(),
enterpriseDTO
.
getOpenCorpid
());
return
resultResponse
(
HaoBanErrCode
.
ERR_500003
,
user
.
getCorpId
());
return
resultResponse
(
HaoBanErrCode
.
ERR_500003
,
user
.
getCorpId
());
}
}
WxApplicationDTO
wxApplicationDTO
=
wxApplicationApiService
.
selectByCorpid
(
user
.
getCorpId
());
enterpriseDTO
=
wxEnterpriseApiService
.
getEnterpriseBycorpId
(
qo
.
getCorpId
());
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseApiService
.
getOne
(
wxApplicationDTO
.
getWxEnterpriseId
());
if
(
enterpriseDTO
==
null
)
{
if
(
wxEnterpriseDTO
==
null
)
{
logger
.
info
(
"该企业不存在corpid={},{}"
,
user
.
getCorpId
());
logger
.
info
(
"该企业不存在corpid={},{}"
,
user
.
getCorpId
(),
wxApplicationDTO
.
getWxEnterpriseId
());
return
resultResponse
(
HaoBanErrCode
.
ERR_400002
);
return
resultResponse
(
HaoBanErrCode
.
ERR_400002
);
}
}
}
else
{
}
else
{
...
...
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