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
53b38e53
Commit
53b38e53
authored
Apr 19, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自建
parent
0ee65315
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
8 deletions
+23
-8
WxEnterpriseQwDTO.java
...java/com/gic/haoban/manage/api/dto/WxEnterpriseQwDTO.java
+10
-0
TabHaobanWxEnterprise.java
...c/haoban/manage/service/entity/TabHaobanWxEnterprise.java
+9
-0
GroupChatDataServiceImpl.java
...e/service/service/chat/impl/GroupChatDataServiceImpl.java
+2
-7
WxEnterpriseMapper.xml
...-service/src/main/resources/mapper/WxEnterpriseMapper.xml
+2
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/WxEnterpriseQwDTO.java
View file @
53b38e53
...
@@ -16,6 +16,16 @@ public class WxEnterpriseQwDTO implements Serializable {
...
@@ -16,6 +16,16 @@ public class WxEnterpriseQwDTO implements Serializable {
private
String
thirdCorpid
;
private
String
thirdCorpid
;
private
String
selfSecret
;
private
String
selfSecret
;
// 自建请求地址
private
String
urlHost
;
public
String
getUrlHost
()
{
return
urlHost
;
}
public
void
setUrlHost
(
String
urlHost
)
{
this
.
urlHost
=
urlHost
;
}
public
String
getSelfSecret
()
{
public
String
getSelfSecret
()
{
return
selfSecret
;
return
selfSecret
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/TabHaobanWxEnterprise.java
View file @
53b38e53
...
@@ -92,6 +92,15 @@ public class TabHaobanWxEnterprise implements Serializable {
...
@@ -92,6 +92,15 @@ public class TabHaobanWxEnterprise implements Serializable {
private
String
wxCorpid
;
private
String
wxCorpid
;
private
String
openCorpid
;
private
String
openCorpid
;
private
String
wxaAppid
;
private
String
wxaAppid
;
private
String
urlHost
;
public
String
getUrlHost
()
{
return
urlHost
;
}
public
void
setUrlHost
(
String
urlHost
)
{
this
.
urlHost
=
urlHost
;
}
public
String
getWxaAppid
()
{
public
String
getWxaAppid
()
{
return
wxaAppid
;
return
wxaAppid
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatDataServiceImpl.java
View file @
53b38e53
...
@@ -32,6 +32,7 @@ import com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise;
...
@@ -32,6 +32,7 @@ import com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise;
import
com.gic.haoban.manage.service.entity.chat.TabGroupChatData
;
import
com.gic.haoban.manage.service.entity.chat.TabGroupChatData
;
import
com.gic.haoban.manage.service.service.WxEnterpriseService
;
import
com.gic.haoban.manage.service.service.WxEnterpriseService
;
import
com.gic.haoban.manage.service.service.chat.GroupChatDataService
;
import
com.gic.haoban.manage.service.service.chat.GroupChatDataService
;
import
com.gic.haoban.manage.service.util.QwUtils
;
import
com.gic.wechat.api.dto.qywx.chat.GroupChatQwDataDTO
;
import
com.gic.wechat.api.dto.qywx.chat.GroupChatQwDataDTO
;
import
com.gic.wechat.api.dto.qywx.chat.GroupChatQwDataItemDTO
;
import
com.gic.wechat.api.dto.qywx.chat.GroupChatQwDataItemDTO
;
import
com.gic.wechat.api.service.qywx.QywxChatApiService
;
import
com.gic.wechat.api.service.qywx.QywxChatApiService
;
...
@@ -128,13 +129,7 @@ public class GroupChatDataServiceImpl implements GroupChatDataService {
...
@@ -128,13 +129,7 @@ public class GroupChatDataServiceImpl implements GroupChatDataService {
Date
date
=
DateUtil
.
addDay
(
DateUtil
.
getStartTimeOfDay
(),
-
1
);
Date
date
=
DateUtil
.
addDay
(
DateUtil
.
getStartTimeOfDay
(),
-
1
);
Long
time
=
date
.
getTime
()
/
1000
;
Long
time
=
date
.
getTime
()
/
1000
;
ServiceResponse
<
List
<
GroupChatQwDataDTO
>>
resp
=
null
;
ServiceResponse
<
List
<
GroupChatQwDataDTO
>>
resp
=
this
.
qywxChatApiService
.
statistic
(
qwDTO
.
getThirdCorpid
(),
QwUtils
.
getSecret
(
qwDTO
,
config
.
getWxSuiteid
()),
userIdList
,
time
,
time
,
qwDTO
.
isSelf
()
,
qwDTO
.
getUrlHost
());
if
(
qwDTO
.
isSelf
())
{
resp
=
this
.
qywxChatApiService
.
statisticSelf
(
qwDTO
.
getThirdCorpid
(),
qwDTO
.
getSelfSecret
(),
userIdList
,
time
,
time
);
}
else
{
resp
=
this
.
qywxChatApiService
.
statistic
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
userIdList
,
time
,
time
);
}
List
<
GroupChatQwDataDTO
>
dataList
=
resp
.
getResult
();
List
<
GroupChatQwDataDTO
>
dataList
=
resp
.
getResult
();
if
(
CollectionUtils
.
isEmpty
(
dataList
))
{
if
(
CollectionUtils
.
isEmpty
(
dataList
))
{
if
(
list
.
size
()
<
pageSize
)
{
if
(
list
.
size
()
<
pageSize
)
{
...
...
haoban-manage3-service/src/main/resources/mapper/WxEnterpriseMapper.xml
View file @
53b38e53
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
<result
column=
"wx_corpid"
property=
"wxCorpid"
/>
<result
column=
"wx_corpid"
property=
"wxCorpid"
/>
<result
column=
"open_corpid"
property=
"openCorpid"
/>
<result
column=
"open_corpid"
property=
"openCorpid"
/>
<result
column=
"wxa_appid"
property=
"wxaAppid"
/>
<result
column=
"wxa_appid"
property=
"wxaAppid"
/>
<result
column=
"url_host"
property=
"urlHost"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
...
@@ -51,7 +52,7 @@
...
@@ -51,7 +52,7 @@
corp_user_max, corp_full_name, subject_type, verified_end_time, corp_wxqrcode, corp_scale,
corp_user_max, corp_full_name, subject_type, verified_end_time, corp_wxqrcode, corp_scale,
corp_industry, corp_sub_industry, location, auth_info, agent, agentid, appid, name,
corp_industry, corp_sub_industry, location, auth_info, agent, agentid, appid, name,
square_logo_url, round_logo_url, level, bind_flag, status_flag, create_time, update_time,contact_flag,wx_secret_key,wx_secret_key_last_time,member_secret_last_time,contact_secret_last_time
square_logo_url, round_logo_url, level, bind_flag, status_flag, create_time, update_time,contact_flag,wx_secret_key,wx_secret_key_last_time,member_secret_last_time,contact_secret_last_time
,member_secret,contact_secret,agree_external_userid_flag,agree_external_userid_time,external_flag,userid_flag ,wx_security_type , wx_corpid , open_corpid , auto_active_flag , wxa_appid
,member_secret,contact_secret,agree_external_userid_flag,agree_external_userid_time,external_flag,userid_flag ,wx_security_type , wx_corpid , open_corpid , auto_active_flag , wxa_appid
, url_host
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
select
...
...
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