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
1
Merge Requests
1
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
0a330f58
Commit
0a330f58
authored
Jun 08, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
许可账号总数实时统计
parent
7c9db5db
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
LicenceOrderApiServiceImpl.java
.../service/out/impl/licence/LicenceOrderApiServiceImpl.java
+5
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/licence/LicenceOrderApiServiceImpl.java
View file @
0a330f58
...
...
@@ -364,6 +364,8 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService {
StaffActiveDataDTO
activeDataDTO
=
wxEnterpriseActiveDataService
.
getWxEnterpriseActiveDataByWxEnterpriseId
(
order
.
getWxEnterpriseId
());
if
(
null
==
activeDataDTO
)
{
logger
.
info
(
"查询不到企业微信id->{}的许可账号统计信息!"
,
order
.
getWxEnterpriseId
());
//只需处理新购订单
if
(
order
.
getOrderType
()
==
1
){
//新增一条记录,默认未激活
TabHaobanWxEnterpriseActiveData
activeData
=
new
TabHaobanWxEnterpriseActiveData
();
activeData
.
setId
(
UniqueIdUtils
.
uniqueLong
());
...
...
@@ -376,6 +378,7 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService {
activeData
.
setTransfer
(
0
);
activeData
.
setMerged
(
0
);
wxEnterpriseActiveDataService
.
insert
(
activeData
);
}
}
else
{
Integer
purchased
=
activeDataDTO
.
getPurchased
();
purchased
+=
order
.
getExternalContactCount
();
...
...
@@ -396,6 +399,7 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService {
//记录退款时间
licenceOrderService
.
saveCallBackTime
(
order
.
getOrderId
(),
3
,
date
);
wxRefund
(
order
.
getOrderId
());
if
(
order
.
getOrderType
()
==
1
){
//实时统计购买企业微信许可总数
StaffActiveDataDTO
activeDataDTO
=
wxEnterpriseActiveDataService
.
getWxEnterpriseActiveDataByWxEnterpriseId
(
order
.
getWxEnterpriseId
());
if
(
null
==
activeDataDTO
)
{
...
...
@@ -406,7 +410,7 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService {
activeDataDTO
.
setPurchased
(
0
>
purchased
?
0
:
purchased
);
wxEnterpriseActiveDataService
.
updateByStaffActiveDataDTO
(
activeDataDTO
);
}
}
}
else
if
(
orderStatus
==
2
)
{
licenceOrderService
.
updateLicenceOrderType
(
order
.
getOrderId
(),
5
,
order
.
getEnterpriseId
(),
order
.
getWxEnterpriseId
(),
"系统"
,
0
);
//记录退款时间
...
...
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