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
252adb44
Commit
252adb44
authored
Mar 25, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5280410b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
2 deletions
+23
-2
WxEnterpriseMapper.java
.../haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
+3
-0
WxEnterpriseService.java
...ic/haoban/manage/service/service/WxEnterpriseService.java
+2
-0
WxEnterpriseServiceImpl.java
.../manage/service/service/impl/WxEnterpriseServiceImpl.java
+9
-0
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+1
-1
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+1
-1
WxEnterpriseMapper.xml
...-service/src/main/resources/mapper/WxEnterpriseMapper.xml
+7
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
View file @
252adb44
...
...
@@ -31,4 +31,6 @@ public interface WxEnterpriseMapper {
List
<
TabHaobanWxEnterprise
>
listAll
();
List
<
TabHaobanWxEnterprise
>
listByIds
(
@Param
(
"enterpriseIds"
)
Set
<
String
>
enterpriseIds
);
List
<
TabHaobanWxEnterprise
>
getEnterpriseBycorpIdNoStatus
(
@Param
(
"corpId"
)
String
corpId
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/WxEnterpriseService.java
View file @
252adb44
...
...
@@ -26,4 +26,6 @@ public interface WxEnterpriseService {
void
update
(
WxEnterpriseDTO
enterpriseDTO
);
int
delete
(
String
wxEnterpriseId
);
TabHaobanWxEnterprise
getEnterpriseBycorpIdNoStatus
(
String
corpid
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseServiceImpl.java
View file @
252adb44
...
...
@@ -69,4 +69,13 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
return
this
.
mapper
.
updateByPrimaryKeySelective
(
enterprise
);
}
@Override
public
TabHaobanWxEnterprise
getEnterpriseBycorpIdNoStatus
(
String
corpId
)
{
List
<
TabHaobanWxEnterprise
>
list
=
this
.
mapper
.
getEnterpriseBycorpIdNoStatus
(
corpId
);
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
return
list
.
get
(
0
);
}
return
null
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
252adb44
...
...
@@ -88,7 +88,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
}
dto
.
setWxEnterpriseId
(
wxEnterprise
.
getWxEnterpriseId
());
dto
.
setUnionid
(
unionId
);
this
.
getExternalUserUnionid
(
dto
);
//
this.getExternalUserUnionid(dto);
return
memberUnionRelatedService
.
addMemberUnionidRelated
(
dto
);
}
@Override
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
252adb44
...
...
@@ -56,7 +56,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
public
void
callbackReviceEnterprise
(
QywxCorpInfoSimpleDTO
dto
)
{
log
.
info
(
"企业微信授权信息:{}"
,
JSON
.
toJSONString
(
dto
));
WxEnterpriseDTO
wxDTO
=
EntityUtil
.
changeEntityByJSON
(
WxEnterpriseDTO
.
class
,
dto
);
TabHaobanWxEnterprise
enterprise
=
this
.
wxEnterpriseService
.
get
DelEnterpriseBycorpId
(
dto
.
getCorpid
());
TabHaobanWxEnterprise
enterprise
=
this
.
wxEnterpriseService
.
get
EnterpriseBycorpIdNoStatus
(
dto
.
getCorpid
());
String
wxEnterpriseId
=
""
;
if
(
enterprise
!=
null
){
wxEnterpriseId
=
enterprise
.
getWxEnterpriseId
();
...
...
haoban-manage3-service/src/main/resources/mapper/WxEnterpriseMapper.xml
View file @
252adb44
...
...
@@ -408,4 +408,10 @@
</if>
</select>
<select
id=
"getEnterpriseBycorpIdNoStatus"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_wx_enterprise
where corpid= #{corpId}
</select>
</mapper>
\ No newline at end of file
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