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
7c9db5db
Commit
7c9db5db
authored
Jun 08, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
许可账号总数实时统计
parent
8ed958a7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
14 deletions
+27
-14
WxEnterpriseActiveDataService.java
...manage/service/service/WxEnterpriseActiveDataService.java
+3
-0
WxEnterpriseActiveDataServiceImpl.java
...rvice/service/impl/WxEnterpriseActiveDataServiceImpl.java
+9
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+15
-14
LicenceOrderApiServiceImpl.java
.../service/out/impl/licence/LicenceOrderApiServiceImpl.java
+0
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/WxEnterpriseActiveDataService.java
View file @
7c9db5db
package
com
.
gic
.
haoban
.
manage
.
service
.
service
;
import
com.gic.haoban.manage.api.dto.StaffActiveDataDTO
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxEnterpriseActiveData
;
/**
* @description: 通讯录数据总览内部service
...
...
@@ -19,4 +20,6 @@ public interface WxEnterpriseActiveDataService {
StaffActiveDataDTO
getWxEnterpriseActiveDataByWxEnterpriseId
(
String
wxEnterpriseId
);
void
updateByStaffActiveDataDTO
(
StaffActiveDataDTO
dto
);
void
insert
(
TabHaobanWxEnterpriseActiveData
data
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseActiveDataServiceImpl.java
View file @
7c9db5db
...
...
@@ -133,4 +133,13 @@ public class WxEnterpriseActiveDataServiceImpl implements WxEnterpriseActiveData
TabHaobanWxEnterpriseActiveData
tabHaobanWxEnterpriseActiveData
=
EntityUtil
.
changeEntityByJSON
(
TabHaobanWxEnterpriseActiveData
.
class
,
dto
);
tabHaobanWxEnterpriseActiveDataMapper
.
updateActiveDataByWxEnterpriseId
(
tabHaobanWxEnterpriseActiveData
);
}
@Override
public
void
insert
(
TabHaobanWxEnterpriseActiveData
data
)
{
if
(
null
==
data
){
log
.
info
(
"新增许可账号统计参数不能为空!"
);
return
;
}
tabHaobanWxEnterpriseActiveDataMapper
.
insert
(
data
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
7c9db5db
...
...
@@ -1169,21 +1169,22 @@ public class StaffApiServiceImpl implements StaffApiService {
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
--;
logger
.
info
(
"查询不到企业微信id->{}的许可账号统计信息!"
,
wxEnterprise
.
getWxEnterpriseId
());
}
else
{
//已使用的加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
);
}
activeDataDTO
.
setUsed
(
used
);
activeDataDTO
.
setInactive
(
inactive
);
activeDataDTO
.
setActivated
(
activated
);
wxEnterpriseActiveDataService
.
updateByStaffActiveDataDTO
(
activeDataDTO
);
}
return
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
.
success
(
true
);
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/licence/LicenceOrderApiServiceImpl.java
View file @
7c9db5db
This diff is collapsed.
Click to expand it.
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