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
01aa04b7
Commit
01aa04b7
authored
Nov 30, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
群事件通知
parent
8b51a7f2
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
6 deletions
+57
-6
Manage3Constants.java
...com/gic/haoban/manage/api/constants/Manage3Constants.java
+3
-0
GroupChatApiService.java
...c/haoban/manage/api/service/chat/GroupChatApiService.java
+17
-0
StaffMapper.java
...com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
+5
-6
GroupChatApiServiceImpl.java
...ervice/service/out/impl/chat/GroupChatApiServiceImpl.java
+21
-0
dubbo-haoban-manage-service.xml
...ervice/src/main/resources/dubbo-haoban-manage-service.xml
+4
-0
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+7
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/constants/Manage3Constants.java
View file @
01aa04b7
...
...
@@ -18,6 +18,9 @@ public class Manage3Constants {
* 链接前缀
*/
public
static
final
String
DT
=
"DT"
;
// 群活码
public
static
final
String
QHM
=
"QHM"
;
/**
* 企微最大分页
*/
...
...
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/chat/GroupChatApiService.java
0 → 100644
View file @
01aa04b7
package
com
.
gic
.
haoban
.
manage
.
api
.
service
.
chat
;
import
com.gic.haoban.manage.api.dto.chat.ChatEventDTO
;
public
interface
GroupChatApiService
{
/**
*
* @Title: qwEventNotice
* @Description: 企微事件通知
* @author xugh
* @param dto
* @throws
*/
public
void
qwEventNotice
(
ChatEventDTO
dto
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
View file @
01aa04b7
...
...
@@ -137,13 +137,11 @@ public interface StaffMapper {
/**
* 绑定的员工列表(暂时取100条,后续和前端一起改为分页接口)
*
* @param storeIds 存储id
* @param wxEnterpriseId wx企业标识
* @return {@link List }<{@link StaffDTO }>
* @author mozhu
* @date 2022-10-21 00:26:47
*/
List
<
StaffDTO
>
listBindStoreIds
(
@Param
(
"storeIds"
)
List
<
String
>
storeIds
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
List
<
TabHaobanStaff
>
listAllByPage
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"startItem"
)
int
startItem
,
@Param
(
"pageSize"
)
int
pageSize
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/chat/GroupChatApiServiceImpl.java
0 → 100644
View file @
01aa04b7
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
out
.
impl
.
chat
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.stereotype.Service
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.haoban.manage.api.dto.chat.ChatEventDTO
;
import
com.gic.haoban.manage.api.service.chat.GroupChatApiService
;
@Service
public
class
GroupChatApiServiceImpl
implements
GroupChatApiService
{
private
static
final
Logger
logger
=
LogManager
.
getLogger
(
GroupChatApiService
.
class
);
@Override
public
void
qwEventNotice
(
ChatEventDTO
dto
)
{
logger
.
info
(
"群事件,params={}"
,
JSON
.
toJSONString
(
dto
));
}
}
haoban-manage3-service/src/main/resources/dubbo-haoban-manage-service.xml
View file @
01aa04b7
...
...
@@ -22,6 +22,7 @@
<constructor-arg
index=
"0"
value=
"haoban-manage-service"
/>
</bean>
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.chat.GroupChatApiService"
ref=
"groupChatApiService"
timeout=
"10000"
/>
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.HaobanCommonMQApiService"
ref=
"haobanCommonMQApiService"
timeout=
"10000"
/>
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.hm.WxUserAddLogApiService"
ref=
"wxUserAddLogApiService"
timeout=
"10000"
/>
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.KeyDataApiService"
ref=
"keyDataApiService"
timeout=
"10000"
/>
...
...
@@ -194,6 +195,8 @@
<dubbo:reference
interface=
"com.gic.member.api.service.MemberEntranceApiService"
id=
"memberEntranceApiService"
timeout=
"10000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.haoban.app.customer.service.api.service.ManageSettingApiService"
id=
"manageSettingApiService"
timeout=
"10000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.wechat.api.service.qywx.QywxChatApiService"
id=
"qywxChatApiService"
timeout=
"10000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.member.tag.api.service.MemberTagGroupApiService"
id=
"memberTagGroupApiService"
timeout=
"10000"
retries=
"0"
/>
</beans>
\ No newline at end of file
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
01aa04b7
...
...
@@ -516,4 +516,10 @@
limit 100
</select>
<select
id=
"listAllByPage"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_staff where wx_enterprise_id = #{wxEnterpriseId} and status_flag = 1 order by staff_id
limit ${startItem},${pageSize}
</select>
</mapper>
\ No newline at end of file
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