Commit 01aa04b7 by 徐高华

群事件通知

parent 8b51a7f2
......@@ -18,6 +18,9 @@ public class Manage3Constants {
* 链接前缀
*/
public static final String DT = "DT";
// 群活码
public static final String QHM = "QHM";
/**
* 企微最大分页
*/
......
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);
}
......@@ -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
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));
}
}
......@@ -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
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment