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
02fd1d30
Commit
02fd1d30
authored
Jul 01, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature_0711' into developer
parents
55e730ae
12935ae8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
12 deletions
+25
-12
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+11
-4
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+7
-1
MemberUnionidRelatedMapper.xml
.../src/main/resources/mapper/MemberUnionidRelatedMapper.xml
+1
-1
StaffDepartmentRelatedMapper.xml
...rc/main/resources/mapper/StaffDepartmentRelatedMapper.xml
+1
-1
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+2
-2
TabHaobanExternalClerkRelatedMapper.xml
.../resources/mapper/TabHaobanExternalClerkRelatedMapper.xml
+1
-1
TabHaobanStaffClerkRelationMapper.xml
...in/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
+1
-1
WxApplicationMapper.xml
...service/src/main/resources/mapper/WxApplicationMapper.xml
+1
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
02fd1d30
...
...
@@ -1988,13 +1988,20 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
ServiceResponse
serviceResponse
=
new
ServiceResponse
();
if
(
wxEnterpriseDTO
==
null
)
{
serviceResponse
.
setCode
(
HaoBanErrCodeCommon
.
ERR_0
.
getCode
());
serviceResponse
.
setMessage
(
"企微不存在"
);
serviceResponse
.
setMessage
(
"企微应用不存在"
);
return
serviceResponse
;
}
TabHaobanWxApplication
tabHaobanWxApplication
=
wxApplicationMapper
.
selectByWxEnterpriseIdAndApplicationType
(
wxEnterpriseId
,
3
);
if
(
tabHaobanWxApplication
==
null
)
{
serviceResponse
.
setCode
(
HaoBanErrCodeCommon
.
ERR_0
.
getCode
());
serviceResponse
.
setMessage
(
"企微代开发应用不存在"
);
return
serviceResponse
;
}
if
(
RedisUtil
.
isLocked
(
lockKey
))
{
log
.
info
(
"redis锁,lockKey:{}"
,
lockKey
);
String
corpName
=
wxEnterpriseDTO
.
getCorpName
();
String
corpName
=
tabHaobanWxApplication
.
getCorpid
();
serviceResponse
.
setCode
(
HaoBanErrCodeCommon
.
ERR_0
.
getCode
());
serviceResponse
.
setMessage
(
corpName
+
"已经在转换中,请勿重复操作!"
);
return
serviceResponse
;
...
...
@@ -2007,7 +2014,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
return
serviceResponse
;
}
String
corpid
=
wxEnterpriseDTO
.
getCorpid
();
String
corpid
=
tabHaobanWxApplication
.
getCorpid
();
RedisUtil
.
lock
(
lockKey
,
2L
,
TimeUnit
.
HOURS
,
0L
);
...
...
@@ -2094,7 +2101,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
private
void
updateUseridFlagById
(
String
wxEnterpriseId
,
String
corpid
)
{
String
serviceCorpid
=
config
.
getCorpid
();
String
openCorpid
=
qywxUserApiService
.
toOpenCorpid
(
corpid
,
serviceCorpid
);
TabHaobanWxApplication
tabHaobanWxApplication
=
wxApplicationMapper
.
selectBy
CorpId
(
corpi
d
,
3
);
TabHaobanWxApplication
tabHaobanWxApplication
=
wxApplicationMapper
.
selectBy
WxEnterpriseIdAndApplicationType
(
wxEnterpriseI
d
,
3
);
if
(
tabHaobanWxApplication
==
null
)
{
log
.
info
(
"代开发应用不存在:{}"
,
corpid
);
return
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
02fd1d30
...
...
@@ -101,7 +101,13 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
haobanWxApplication
.
setPermanentCode
(
permanentCode
);
haobanWxApplication
.
setIsCustomizedApp
(
isCustomizedApp
);
if
(
isCustomizedApp
!=
null
&&
isCustomizedApp
==
1
)
{
haobanWxApplication
.
setApplicationType
(
3
);
if
(
siteId
.
equals
(
qywxMemberSuite
))
{
//会员小程序代开发
haobanWxApplication
.
setApplicationType
(
4
);
}
else
{
//好办助手-企业代开发
haobanWxApplication
.
setApplicationType
(
3
);
}
}
haobanWxApplication
.
setWxEnterpriseId
(
wxEnterpriseId
);
wxApplicationService
.
insert
(
haobanWxApplication
);
...
...
haoban-manage3-service/src/main/resources/mapper/MemberUnionidRelatedMapper.xml
View file @
02fd1d30
...
...
@@ -255,7 +255,7 @@
<update
id=
"updateUserIdByWxEnterpriseId"
>
UPDATE tab_haoban_member_unionid_related a
LEFT JOIN tab_haoban_external_clerk_related b ON a.member_unionid_related_id = b.member_unionid_related_id
SET a.wx_user_id = b.wx_user_id,update_time= now()
SET a.wx_user_id = b.wx_user_id,
a.
update_time= now()
WHERE
a.wx_enterprise_id = #{wxEnterpriseId}
AND b.status_flag IN ( 1, 3, 4 )
...
...
haoban-manage3-service/src/main/resources/mapper/StaffDepartmentRelatedMapper.xml
View file @
02fd1d30
...
...
@@ -351,7 +351,7 @@
<update
id=
"updateUserIdByWxEnterpriseId"
parameterType=
"java.lang.String"
>
UPDATE tab_haoban_staff_department_related a
LEFT JOIN tab_haoban_staff b ON a.staff_id = b.staff_id
SET a.wx_user_id = b.wx_user_id,update_time= now()
SET a.wx_user_id = b.wx_user_id,
a.
update_time= now()
WHERE
a.wx_enterprise_id = #{wxEnterpriseId}
AND a.status_flag = 1 and b.status_flag = 1;
...
...
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
02fd1d30
...
...
@@ -511,8 +511,8 @@
<select
id=
"listByWxEnterpriseId"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from
where
tab_haoban_staff
wx_enterprise_id = #{wxEnterpriseId}
from tab_haoban_staff
w
here w
x_enterprise_id = #{wxEnterpriseId}
and status_flag = 1
</select>
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanExternalClerkRelatedMapper.xml
View file @
02fd1d30
...
...
@@ -686,7 +686,7 @@
<update
id=
"updateUserIdByWxEnterpriseId"
>
UPDATE tab_haoban_external_clerk_related a
LEFT JOIN tab_haoban_staff b ON a.staff_id = b.staff_id
SET a.wx_user_id = b.wx_user_id,update_time= now()
SET a.wx_user_id = b.wx_user_id,
a.
update_time= now()
WHERE
a.wx_enterprise_id = #{wxEnterpriseId}
AND a.status_flag IN ( 1, 3, 4 );
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
View file @
02fd1d30
...
...
@@ -443,7 +443,7 @@
<update
id=
"updateUserIdByWxEnterpriseId"
parameterType=
"java.lang.String"
>
UPDATE tab_haoban_staff_clerk_relation a
LEFT JOIN tab_haoban_staff b ON a.staff_id = b.staff_id
SET a.wx_user_id = b.wx_user_id,update_time= now()
SET a.wx_user_id = b.wx_user_id,
a.
update_time= now()
WHERE
a.wx_enterprise_id = #{wxEnterpriseId}
AND a.status_flag = 1 and b.status_flag = 1
...
...
haoban-manage3-service/src/main/resources/mapper/WxApplicationMapper.xml
View file @
02fd1d30
...
...
@@ -205,7 +205,7 @@
<update
id=
"updateCorpidById"
>
update tab_haoban_wx_application
set corpid = #{corp
I
d},
set corpid = #{corp
i
d},
update_time = now()
where wx_application_id = #{wxApplicationId}
and status_flag = 1
...
...
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