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
22f92c0f
Commit
22f92c0f
authored
Dec 27, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微错误记录
parent
24a4089e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
4 deletions
+32
-4
GroupChatDTO.java
...java/com/gic/haoban/manage/api/dto/chat/GroupChatDTO.java
+9
-0
GroupChatMapper.java
...aoban/manage/service/dao/mapper/chat/GroupChatMapper.java
+3
-1
GroupChatServiceImpl.java
...anage/service/service/chat/impl/GroupChatServiceImpl.java
+9
-1
GroupChatMapper.xml
...ervice/src/main/resources/mapper/chat/GroupChatMapper.xml
+11
-2
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/chat/GroupChatDTO.java
View file @
22f92c0f
...
@@ -67,6 +67,15 @@ public class GroupChatDTO implements Serializable {
...
@@ -67,6 +67,15 @@ public class GroupChatDTO implements Serializable {
private
int
ownerAddFlag
=
1
;
private
int
ownerAddFlag
=
1
;
// 活码加人状态1正常 2已满不可以加人>200
// 活码加人状态1正常 2已满不可以加人>200
private
int
hmAddStatus
;
private
int
hmAddStatus
;
private
String
chatRemark
;
public
String
getChatRemark
()
{
return
chatRemark
;
}
public
void
setChatRemark
(
String
chatRemark
)
{
this
.
chatRemark
=
chatRemark
;
}
public
int
getHmAddStatus
()
{
public
int
getHmAddStatus
()
{
return
hmAddStatus
;
return
hmAddStatus
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/chat/GroupChatMapper.java
View file @
22f92c0f
...
@@ -20,7 +20,9 @@ import com.gic.haoban.manage.service.entity.chat.TabGroupChat;
...
@@ -20,7 +20,9 @@ import com.gic.haoban.manage.service.entity.chat.TabGroupChat;
* @CopyRight
* @CopyRight
*/
*/
public
interface
GroupChatMapper
{
public
interface
GroupChatMapper
{
public
int
updateChatErrorRemark
(
Long
groupChatId
,
String
chatRemark
)
;
public
int
getCountByStaffId
(
String
staffId
);
public
int
getCountByStaffId
(
String
staffId
);
public
int
insert
(
TabGroupChat
chat
);
public
int
insert
(
TabGroupChat
chat
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatServiceImpl.java
View file @
22f92c0f
...
@@ -586,6 +586,14 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -586,6 +586,14 @@ public class GroupChatServiceImpl implements GroupChatService {
logger
.
info
(
"从企微获取群详情{}={}"
,
chat
.
getWxChatId
(),
JSON
.
toJSON
(
detailResp
));
logger
.
info
(
"从企微获取群详情{}={}"
,
chat
.
getWxChatId
(),
JSON
.
toJSON
(
detailResp
));
if
(!
detailResp
.
isSuccess
())
{
if
(!
detailResp
.
isSuccess
())
{
logger
.
info
(
"从企微获取群详情失败"
);
logger
.
info
(
"从企微获取群详情失败"
);
String
code
=
detailResp
.
getCode
();
String
msg
=
detailResp
.
getMessage
();
if
(
code
.
equals
(
"701008"
))
{
msg
=
"该群主未激活账号许可,无法获取群详情"
;
}
else
{
msg
=
"企微返回错误,错误码"
+
code
;
}
this
.
groupChatMapper
.
updateChatErrorRemark
(
groupChatId
,
msg
);
return
;
return
;
}
}
GroupChatDetailDTO
detail
=
detailResp
.
getResult
();
GroupChatDetailDTO
detail
=
detailResp
.
getResult
();
...
@@ -696,7 +704,7 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -696,7 +704,7 @@ public class GroupChatServiceImpl implements GroupChatService {
}
}
Integer
oldAdminFlag
=
hbUser
.
getAdminFlag
();
Integer
oldAdminFlag
=
hbUser
.
getAdminFlag
();
hbUser
.
setAdminFlag
(
0
);
hbUser
.
setAdminFlag
(
0
);
if
(
null
==
hbUser
.
getUserType
())
{
if
(
null
==
hbUser
.
getUserType
())
{
hbUser
.
setUserType
(
qwUser
.
getType
());
hbUser
.
setUserType
(
qwUser
.
getType
());
}
}
if
(
qwUser
.
getUserid
().
equals
(
owner
))
{
if
(
qwUser
.
getUserid
().
equals
(
owner
))
{
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatMapper.xml
View file @
22f92c0f
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
<result
column=
"off_time"
property=
"offTime"
/>
<result
column=
"off_time"
property=
"offTime"
/>
<result
column=
"original_staff_id"
property=
"originalStaffId"
/>
<result
column=
"original_staff_id"
property=
"originalStaffId"
/>
<result
column=
"hm_add_status"
property=
"hmAddStatus"
/>
<result
column=
"hm_add_status"
property=
"hmAddStatus"
/>
<result
column=
"chat_remark"
property=
"chatRemark"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
group_chat_id,
group_chat_id,
...
@@ -49,7 +50,7 @@
...
@@ -49,7 +50,7 @@
quit_count,
quit_count,
quit_member_count,
quit_member_count,
enterprise_id,
enterprise_id,
gic_flag , init_flag , wx_chat_id_dk , off_time, original_staff_id , hm_add_status
gic_flag , init_flag , wx_chat_id_dk , off_time, original_staff_id , hm_add_status
, chat_remark
</sql>
</sql>
<!-- ===================== 新增 ======================== -->
<!-- ===================== 新增 ======================== -->
<insert
id=
"insert"
<insert
id=
"insert"
...
@@ -116,11 +117,17 @@
...
@@ -116,11 +117,17 @@
update_time=now(),
update_time=now(),
gic_flag=#{gicFlag},
gic_flag=#{gicFlag},
original_staff_id = #{originalStaffId} ,
original_staff_id = #{originalStaffId} ,
init_flag = 1
init_flag = 1 ,
chat_remark = null
where group_chat_id = #{groupChatId}
where group_chat_id = #{groupChatId}
]]>
]]>
</update>
</update>
<update
id=
"updateChatErrorRemark"
>
update tab_haoban_group_chat set
chat_remark = #{chatRemark} , init_flag = 2 , update_time = now()
where group_chat_id = #{groupChatId}
</update>
<update
id=
"updateData"
>
<update
id=
"updateData"
>
update tab_haoban_group_chat set
update tab_haoban_group_chat set
...
@@ -229,6 +236,8 @@
...
@@ -229,6 +236,8 @@
<select
id=
"list"
resultType=
"com.gic.haoban.manage.api.dto.chat.GroupChatDTO"
parameterType=
"com.gic.haoban.manage.api.dto.qdto.chat.GroupChatSearchQDTO"
>
<select
id=
"list"
resultType=
"com.gic.haoban.manage.api.dto.chat.GroupChatDTO"
parameterType=
"com.gic.haoban.manage.api.dto.qdto.chat.GroupChatSearchQDTO"
>
select
select
a.remark chatRemark ,
a.init_flag initFlag ,
b.staff_name staffName ,
b.staff_name staffName ,
b.head_img staffImage ,
b.head_img staffImage ,
b.open_concat_flag openConcatFlag ,
b.open_concat_flag openConcatFlag ,
...
...
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