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
8ed958a7
Commit
8ed958a7
authored
Jun 07, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动激活许可账号处理
parent
3f5c0614
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletions
+31
-1
WxEnterpriseActiveDataService.java
...manage/service/service/WxEnterpriseActiveDataService.java
+2
-0
WxEnterpriseActiveDataServiceImpl.java
...rvice/service/impl/WxEnterpriseActiveDataServiceImpl.java
+9
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+20
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/WxEnterpriseActiveDataService.java
View file @
8ed958a7
...
@@ -17,4 +17,6 @@ public interface WxEnterpriseActiveDataService {
...
@@ -17,4 +17,6 @@ public interface WxEnterpriseActiveDataService {
Integer
saveOrUpdate
(
String
wxEnterpriseId
);
Integer
saveOrUpdate
(
String
wxEnterpriseId
);
StaffActiveDataDTO
getWxEnterpriseActiveDataByWxEnterpriseId
(
String
wxEnterpriseId
);
StaffActiveDataDTO
getWxEnterpriseActiveDataByWxEnterpriseId
(
String
wxEnterpriseId
);
void
updateByStaffActiveDataDTO
(
StaffActiveDataDTO
dto
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseActiveDataServiceImpl.java
View file @
8ed958a7
...
@@ -124,4 +124,13 @@ public class WxEnterpriseActiveDataServiceImpl implements WxEnterpriseActiveData
...
@@ -124,4 +124,13 @@ public class WxEnterpriseActiveDataServiceImpl implements WxEnterpriseActiveData
staffActiveDataDTO
.
setExpiring
(
expiringNum
);
staffActiveDataDTO
.
setExpiring
(
expiringNum
);
return
staffActiveDataDTO
;
return
staffActiveDataDTO
;
}
}
@Override
public
void
updateByStaffActiveDataDTO
(
StaffActiveDataDTO
dto
)
{
if
(
null
==
dto
){
return
;
}
TabHaobanWxEnterpriseActiveData
tabHaobanWxEnterpriseActiveData
=
EntityUtil
.
changeEntityByJSON
(
TabHaobanWxEnterpriseActiveData
.
class
,
dto
);
tabHaobanWxEnterpriseActiveDataMapper
.
updateActiveDataByWxEnterpriseId
(
tabHaobanWxEnterpriseActiveData
);
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
8ed958a7
...
@@ -119,6 +119,8 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -119,6 +119,8 @@ public class StaffApiServiceImpl implements StaffApiService {
private
DealSyncOperationApiService
dealSyncOperationApiService
;
private
DealSyncOperationApiService
dealSyncOperationApiService
;
@Autowired
@Autowired
private
ExternalClerkRelatedService
externalClerkRelatedService
;
private
ExternalClerkRelatedService
externalClerkRelatedService
;
@Autowired
private
WxEnterpriseActiveDataService
wxEnterpriseActiveDataService
;
@Override
@Override
public
StaffDTO
selectById
(
String
staffId
)
{
public
StaffDTO
selectById
(
String
staffId
)
{
...
@@ -1132,7 +1134,7 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -1132,7 +1134,7 @@ public class StaffApiServiceImpl implements StaffApiService {
if
(
StrUtil
.
isBlank
(
params
))
{
if
(
StrUtil
.
isBlank
(
params
))
{
return
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
.
success
(
false
);
return
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
.
success
(
false
);
}
}
//1、解析参数 2、刷新企业微信群列表 3、更新成员信息
//1、解析参数 2、刷新企业微信群列表 3、更新成员信息
4、实时统计许可总数
JSONObject
object
=
JSONObject
.
parseObject
(
params
,
JSONObject
.
class
);
JSONObject
object
=
JSONObject
.
parseObject
(
params
,
JSONObject
.
class
);
String
infoType
=
object
.
getString
(
"infoType"
);
String
infoType
=
object
.
getString
(
"infoType"
);
String
authCorpId
=
object
.
getString
(
"authCorpId"
);
String
authCorpId
=
object
.
getString
(
"authCorpId"
);
...
@@ -1165,6 +1167,23 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -1165,6 +1167,23 @@ public class StaffApiServiceImpl implements StaffApiService {
String
staffId
=
staff
.
getStaffId
();
String
staffId
=
staff
.
getStaffId
();
groupChatService
.
initStaffGroupChat
(
staffId
);
groupChatService
.
initStaffGroupChat
(
staffId
);
staffMapper
.
updateActiveStatusById
(
staffId
,
timeStampDate
,
expireTimeDate
,
activeCode
);
staffMapper
.
updateActiveStatusById
(
staffId
,
timeStampDate
,
expireTimeDate
,
activeCode
);
StaffActiveDataDTO
activeDataDTO
=
wxEnterpriseActiveDataService
.
getWxEnterpriseActiveDataByWxEnterpriseId
(
wxEnterprise
.
getWxEnterpriseId
());
if
(
null
==
activeDataDTO
){
logger
.
info
(
"查询不到企业的许可账号统计信息!"
);
}
//已使用的加1,已激活的加1,未激活的减1
Integer
used
=
activeDataDTO
.
getUsed
();
Integer
inactive
=
activeDataDTO
.
getInactive
();
Integer
activated
=
activeDataDTO
.
getActivated
();
used
++;
activated
++;
if
(
null
!=
inactive
&&
inactive
>
0
){
inactive
--;
}
activeDataDTO
.
setUsed
(
used
);
activeDataDTO
.
setInactive
(
inactive
);
activeDataDTO
.
setActivated
(
activated
);
wxEnterpriseActiveDataService
.
updateByStaffActiveDataDTO
(
activeDataDTO
);
}
}
return
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
.
success
(
true
);
return
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
.
success
(
true
);
}
}
...
...
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