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
13d057a5
Commit
13d057a5
authored
Jan 10, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:bug修改
parent
da9bb241
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
23 deletions
+49
-23
WxApplicationMapper.java
...haoban/manage/service/dao/mapper/WxApplicationMapper.java
+5
-3
WxApplicationService.java
...c/haoban/manage/service/service/WxApplicationService.java
+21
-2
WxApplicationServiceImpl.java
...manage/service/service/impl/WxApplicationServiceImpl.java
+7
-3
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+1
-1
WxApplicationApiServiceImpl.java
...service/service/out/impl/WxApplicationApiServiceImpl.java
+6
-10
QywxClerkSyncOperation.java
...ic/haoban/manage/service/task/QywxClerkSyncOperation.java
+1
-1
WxApplicationMapper.xml
...service/src/main/resources/mapper/WxApplicationMapper.xml
+8
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/WxApplicationMapper.java
View file @
13d057a5
...
@@ -17,15 +17,16 @@ public interface WxApplicationMapper {
...
@@ -17,15 +17,16 @@ public interface WxApplicationMapper {
TabHaobanWxApplication
selectByWxEnterpriseIdAndApplicationType
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
TabHaobanWxApplication
selectByWxEnterpriseIdAndApplicationType
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"applicationType"
)
int
applicationType
);
@Param
(
"applicationType"
)
int
applicationType
);
int
cancelWxApplication
(
@Param
(
"
wxEnterpriseId"
)
String
wxEnterprise
Id
,
@Param
(
"suiteId"
)
String
suiteId
);
int
cancelWxApplication
(
@Param
(
"
corpId"
)
String
corp
Id
,
@Param
(
"suiteId"
)
String
suiteId
);
/**
/**
* 选择通过公司id
* 选择通过公司id
*
*
* @param corpid corpid
* @param corpid corpid
* @return {@link TabHaobanWxApplication }
* @param applicationType 应用程序类型
* @return {@link TabHaobanWxApplication}
* @author mozhu
* @author mozhu
* @date 2021-12-21 22:00:54
* @date 2021-12-21 22:00:54
*/
*/
TabHaobanWxApplication
selectByCorpId
(
@Param
(
"corpid"
)
String
corpid
);
TabHaobanWxApplication
selectByCorpId
(
@Param
(
"corpid"
)
String
corpid
,
@Param
(
"applicationType"
)
Integer
applicationType
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/WxApplicationService.java
View file @
13d057a5
...
@@ -12,7 +12,26 @@ public interface WxApplicationService {
...
@@ -12,7 +12,26 @@ public interface WxApplicationService {
TabHaobanWxApplication
selectByWxEnterpriseIdAndApplicationType
(
String
wxEnterpriseId
,
int
applicationType
);
TabHaobanWxApplication
selectByWxEnterpriseIdAndApplicationType
(
String
wxEnterpriseId
,
int
applicationType
);
int
cancalWxApplication
(
String
wxEnterpriseId
,
String
suiteId
);
int
cancalWxApplication
(
String
corpId
,
String
suiteId
);
/**
* 选择通过公司id
*
* @param corpid corpid
* @return {@link TabHaobanWxApplication }
* @author mozhu
* @date 2022-01-10 14:28:09
*/
TabHaobanWxApplication
selectByCorpId
(
String
corpid
);
TabHaobanWxApplication
selectByCorpId
(
String
corpid
);
/**
* 选择通过公司id和应用程序类型
*
* @param corpId 公司标识
* @param applicationType 应用程序类型
* @return {@link TabHaobanWxApplication }
* @author mozhu
* @date 2022-01-10 14:28:03
*/
TabHaobanWxApplication
selectByCorpIdAndApplicationType
(
String
corpId
,
int
applicationType
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxApplicationServiceImpl.java
View file @
13d057a5
...
@@ -45,14 +45,18 @@ public class WxApplicationServiceImpl implements WxApplicationService {
...
@@ -45,14 +45,18 @@ public class WxApplicationServiceImpl implements WxApplicationService {
}
}
@Override
@Override
public
int
cancalWxApplication
(
String
wxEnterprise
Id
,
String
suiteId
)
{
public
int
cancalWxApplication
(
String
corp
Id
,
String
suiteId
)
{
return
this
.
mapper
.
cancelWxApplication
(
wxEnterprise
Id
,
suiteId
);
return
this
.
mapper
.
cancelWxApplication
(
corp
Id
,
suiteId
);
}
}
@Override
@Override
public
TabHaobanWxApplication
selectByCorpId
(
String
corpid
)
{
public
TabHaobanWxApplication
selectByCorpId
(
String
corpid
)
{
return
mapper
.
selectByCorpId
(
corpid
);
return
mapper
.
selectByCorpId
(
corpid
,
null
);
}
}
@Override
public
TabHaobanWxApplication
selectByCorpIdAndApplicationType
(
String
corpId
,
int
applicationType
)
{
return
mapper
.
selectByCorpId
(
corpId
,
applicationType
);
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
13d057a5
...
@@ -736,7 +736,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -736,7 +736,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
public
MemberUnionidRelatedDTO
getMemberUnionidRelatedDTONew
(
MemberUnionidRelatedDTO
dto
)
{
public
MemberUnionidRelatedDTO
getMemberUnionidRelatedDTONew
(
MemberUnionidRelatedDTO
dto
)
{
log
.
info
(
"【新增外部联系人回调】dto={}"
,
JSON
.
toJSONString
(
dto
));
log
.
info
(
"【新增外部联系人回调】dto={}"
,
JSON
.
toJSONString
(
dto
));
String
corpId
=
dto
.
getCorpid
();
String
corpId
=
dto
.
getCorpid
();
TabHaobanWxApplication
tabHaobanWxApplication
=
wxApplicationMapper
.
selectByCorpId
(
corpId
);
TabHaobanWxApplication
tabHaobanWxApplication
=
wxApplicationMapper
.
selectByCorpId
(
corpId
,
null
);
if
(
tabHaobanWxApplication
==
null
)
{
if
(
tabHaobanWxApplication
==
null
)
{
log
.
info
(
"查询tab_haoban_wx_application为空:{}"
,
corpId
);
log
.
info
(
"查询tab_haoban_wx_application为空:{}"
,
corpId
);
return
null
;
return
null
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxApplicationApiServiceImpl.java
View file @
13d057a5
...
@@ -17,14 +17,12 @@ import org.springframework.stereotype.Service;
...
@@ -17,14 +17,12 @@ import org.springframework.stereotype.Service;
* Created by tgs on 2020/2/22.
* Created by tgs on 2020/2/22.
*/
*/
@Service
(
"wxApplicationApiService"
)
@Service
(
"wxApplicationApiService"
)
public
class
WxApplicationApiServiceImpl
implements
WxApplicationApiService
{
public
class
WxApplicationApiServiceImpl
implements
WxApplicationApiService
{
private
static
final
Logger
log
=
LogManager
.
getLogger
(
WxApplicationApiServiceImpl
.
class
);
private
static
final
Logger
log
=
LogManager
.
getLogger
(
WxApplicationApiServiceImpl
.
class
);
@Autowired
@Autowired
private
WxApplicationService
wxApplicationService
;
private
WxApplicationService
wxApplicationService
;
@Autowired
@Autowired
private
WxEnterpriseApiService
wxEnterpriseApiService
;
@Autowired
private
WxEnterpriseService
wxEnterpriseService
;
private
WxEnterpriseService
wxEnterpriseService
;
@Override
@Override
...
@@ -35,14 +33,12 @@ public class WxApplicationApiServiceImpl implements WxApplicationApiService{
...
@@ -35,14 +33,12 @@ public class WxApplicationApiServiceImpl implements WxApplicationApiService{
@Override
@Override
public
void
cancelSuite
(
String
corpId
,
String
suiteId
)
{
public
void
cancelSuite
(
String
corpId
,
String
suiteId
)
{
WxEnterpriseDTO
enterprise
=
this
.
wxEnterpriseApiService
.
getEnterpriseBycorpId
(
corpId
);
int
i
=
this
.
wxApplicationService
.
cancalWxApplication
(
corpId
,
suiteId
);
if
(
enterprise
!=
null
){
int
i
=
this
.
wxApplicationService
.
cancalWxApplication
(
enterprise
.
getWxEnterpriseId
(),
suiteId
);
log
.
info
(
"取消授权结果:{}"
,
i
);
log
.
info
(
"取消授权结果:{}"
,
i
);
TabHaobanWxApplication
wxApplication
=
this
.
wxApplicationService
.
selectByWxEnterpriseIdAndApplicationType
(
enterprise
.
getWxEnterpriseId
()
,
2
);
TabHaobanWxApplication
wxApplication
=
this
.
wxApplicationService
.
selectByCorpIdAndApplicationType
(
corpId
,
2
);
if
(
wxApplication
==
null
)
{
//如果取消好办小程序应用授权,临时解除绑定
if
(
wxApplication
!=
null
)
{
this
.
wxEnterpriseService
.
unbind
(
enterprise
.
getWxEnterpriseId
());
//如果取消好办小程序应用授权,临时解除绑定
}
this
.
wxEnterpriseService
.
unbind
(
wxApplication
.
getWxEnterpriseId
());
}
}
log
.
info
(
"企业未绑定过,{}"
,
corpId
);
log
.
info
(
"企业未绑定过,{}"
,
corpId
);
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/QywxClerkSyncOperation.java
View file @
13d057a5
...
@@ -126,7 +126,7 @@ public class QywxClerkSyncOperation implements BaseSyncOperation {
...
@@ -126,7 +126,7 @@ public class QywxClerkSyncOperation implements BaseSyncOperation {
dealSyncOperationApiService
.
cleanDiffrence
(
wxEnterpriseId
,
taskId
);
dealSyncOperationApiService
.
cleanDiffrence
(
wxEnterpriseId
,
taskId
);
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseApiService
.
getOne
(
wxEnterpriseId
);
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseApiService
.
getOne
(
wxEnterpriseId
);
String
corpid
=
wxEnterpriseDTO
.
getCorpid
();
String
corpid
=
wxEnterpriseDTO
.
getCorpid
();
TabHaobanWxApplication
tabHaobanWxApplication
=
wxApplicationMapper
.
selectByCorpId
(
corpid
);
TabHaobanWxApplication
tabHaobanWxApplication
=
wxApplicationMapper
.
selectByCorpId
(
corpid
,
null
);
logger
.
info
(
"同步通讯录完成,批量处理wx_user_id,corpid:{}"
,
corpid
);
logger
.
info
(
"同步通讯录完成,批量处理wx_user_id,corpid:{}"
,
corpid
);
if
(
corpid
.
length
()
>
20
)
{
if
(
corpid
.
length
()
>
20
)
{
//批量处理wx_user_id to wx_open_user_id
//批量处理wx_user_id to wx_open_user_id
...
...
haoban-manage3-service/src/main/resources/mapper/WxApplicationMapper.xml
View file @
13d057a5
...
@@ -185,16 +185,20 @@
...
@@ -185,16 +185,20 @@
<update
id=
"cancelWxApplication"
>
<update
id=
"cancelWxApplication"
>
update tab_haoban_wx_application
update tab_haoban_wx_application
set status_flag = 0
set status_flag = 0
where
wx_enterprise_id = #{wxEnterprise
Id}
where
corpid = #{corp
Id}
and site_id = #{suiteId}
and site_id = #{suiteId}
and status_flag = 1
and status_flag = 1
</update>
</update>
<select
id=
"selectByCorpId"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
<select
id=
"selectByCorpId"
resultMap=
"BaseResultMap"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_haoban_wx_application
from tab_haoban_wx_application
where corpid = #{corpid,jdbcType=VARCHAR} and status_flag = 1 limit 1
where corpid = #{corpid,jdbcType=VARCHAR} and status_flag = 1
<if
test=
"applicationType != null "
>
and application_type = #{applicationType}
</if>
limit 1
</select>
</select>
</mapper>
</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